summaryrefslogtreecommitdiffstats
path: root/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
* examples/rgw: register boto extension for HeadBucket statsCasey Bodley2024-12-172-1/+57
| | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* Merge pull request #60942 from AliMasarweh/wip-alimasa-bucket-logging-filterAli Masarwa2024-12-172-0/+27
|\ | | | | | | | | RGW/logging: add filtering for bucket logging Reviewed-by: yuvalif<ylifshit@redhat.com>
| * RGW\logging: convert s3_filter to key_filterAli Masarwa2024-12-171-2/+14
| | | | | | | | Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
| * RGW/logging: add filtering for bucket loggingAli Masarwa2024-12-172-0/+15
| | | | | | | | Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
* | RGW/logging: add rest API to flush logging bucketAli Masarwa2024-12-172-0/+46
|/ | | | Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
* rgw/logging: add support for GetBucketLogging and PutBucketLoggingYuval Lifshitz2024-12-082-11/+149
| | | | | | | | | | | | | | | | | this is based on AWS server access logs: - https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html - https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html - https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLogging.html - https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLogging.html however, a new mode was added called "journal" where: - logs of PUT, COPY and MPU are guaranteed - we have logs of DELETE and multi-DELETE operations (not guaranteed) - log records hold only minimal amount of information Fixes: https://tracker.ceph.com/issues/984 Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* examples/rgw/boto3/README.md: update documentation for boto3 extension ↵rkhudov2024-08-291-1/+1
| | | | | | installation. Fixes: https://tracker.ceph.com/issues/67768 Signed-off-by: rkhudov <rhudov@gmail.com>
* Add new sync-policy related params to boto3 extensionSoumya Koduri2024-05-132-0/+73
| | | | Signed-off-by: Soumya Koduri <skoduri@redhat.com>
* rgw: fix spelling errorsJosh Soref2023-11-272-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * access * acquire * across * algorithm * alternatively * ambiguous * attributes * authenticated * automatically * based * between * beware * bootstrap * bucket * cache * character * check * cleanup * combinations * committed * comparison * compatibility * concurrent * conditions * conjunction * connections * considered * contains * correct * creates * crypto * dependencies * dequeued * dequeuing * derivative * described * determine * deterministic * detritus * discrepancy * display * either way * elements * entirely * entries * error * everything * expected * explicitly * extend * false * fclose * feature * following * foreign * format * forward * functionality * functions * generated * getting * gracefully * happened * hashicorp * healthcheck * hierarchy * however * http * identify * idleness * ignored * incremental * information * initialization * length * locally * macros * malformed * means * mechanism * multipart * multiple * must * namespace * necessary * nonexistent * notifications * occurred * official * outputs * outputted * overridden * ownership * parallelism * partition * passthrough * pause * penguin * perform * permission * populated * position * preferably * prefixes * presumably * previous * print * quadruple * reference * regardless * registry * renewed * request * requires * reshard * resource * result to * satisfy * secret * separate * separator * setting * shouldn't * skipping * some * somehow * something * specific * struct * succeeded * success * successful * successfully * syntax * testing * truncated * unambiguously * unittest * unmodified * unnecessary * valid_action * verifying * versioning * visible * whatever * whenever Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
* examples: fixed errors with the if-match header in the examples of rgw-cache ↵Konstantin Monakhov2023-09-103-2/+3
| | | | | | nginx configs Signed-off-by: Konstantin Monakhov <stangerkm@gmail.com>
* examples: replace example go modules with instructions to runJustin Caratzas2023-05-1010-100/+30
| | | | Signed-off-by: Justin Caratzas <jcaratza@ibm.com>
* Merge pull request #50202 from rzarzynski/wip-librbd-drop-cxx11-from-exampleIlya Dryomov2023-02-231-1/+1
|\ | | | | | | | | examples/librbd: drop -std=c++11 from CXXFLAGS Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
| * examples/librbd: drop -std=c++11 from CXXFLAGSRadoslaw Zarzynski2023-02-211-1/+1
| | | | | | | | | | | | | | | | | | In terms of `CXXFLAGS` this commit does for `examples/librbd` exactly what be838652fae1ee4683b62785192a58992a76d1fe already did to `examples/librados`. Together they cover the purpose of the long-waiting PR #44738. Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
* | examples: move rgw examples under subdirectoryCasey Bodley2023-02-1344-0/+0
|/ | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* Merge pull request #47900 from Matan-B/wip-matanb-librados-20Laura Flores2022-09-211-1/+1
|\ | | | | examples/librados: Compile with c++20 on Ubuntu
| * examples: Compile with c++20Matan Breizman2022-09-191-1/+1
| | | | | | | | | | | | | | This change will apply to ubuntu only. Fixes: https://tracker.ceph.com/issues/57163 Signed-off-by: Matan Breizman <mbreizma@redhat.com>
* | Merge pull request #47274 from faithuniterh/Golang-Notification-creationYuval Lifshitz2022-09-084-0/+149
|\ \ | | | | | | | | | | | | examples/golang : Add put notification creation golang example code reviewed-by: yuvalif
| * | examples/golang/put-bucket-notification-creation : Add put bucket ↵Faith2022-09-024-0/+149
| |/ | | | | | | | | | | notification creation example code Signed-off-by: Faith <faithuniterh@tutanota.com>
* | Merge pull request #47091 from faithuniterh/Golang-Topic-creationYuval Lifshitz2022-09-079-15/+151
|\ \ | |/ |/| | | | | Topic creation example and sorting Golang examples into different folders reviewed-by: anthonyeleven, yuvalif
| * examples/golang : Add Golang examplesdux2022-07-299-15/+151
| | | | | | | | Signed-off-by: dux <faithuniterh@tutanota.com>
* | examples/boto3: add ListObjectsV2Request shape to boto3 sdk extras with ↵Salar Nosrati-Ershad2022-08-062-0/+15
| | | | | | | | | | | | | | | | | | | | AllowUnordered as member feat: add ListObjectsV2Request shape to boto3 sdk extras with AllowUnordered as member feat: add list-objects-v2 unordered supports to doc Signed-off-by: Salar Nosrati-Ershad <snosratiershad@gmail.com>
* | examples/boto3: Updating Python examples to work with Python 3dux2022-07-122-48/+14
|/ | | | Signed-off-by: dux <faithuniterh@tutanota.com>
* Merge pull request #45937 from faithuniterh/adding_go_examplesYuval Lifshitz2022-06-095-0/+115
|\ | | | | | | | | | | examples: Add Golang code showing object upload to Ceph RGW bucket Reviwed-by: anthonyeleven Reviwed-by: yuvalif
| * examples: Add Golang code showing object upload to Ceph RGW bucketfaithuniterh2022-06-085-0/+115
| | | | | | | | Signed-off-by: faithuniterh <faithuniterh@tutanota.com>
* | Merge pull request #45970 from faithuniterh/adding_java_examplesYuval Lifshitz2022-06-095-0/+173
|\ \ | | | | | | | | | | | | | | | examples: Add Java code showing object upload to Ceph RGW bucket Reviewed-by: anthonyeleven Reviewed-by: yuvalif
| * | examples: Add Java code showing object upload to Ceph RGW bucketfaithuniterh2022-06-085-0/+173
| |/ | | | | | | Signed-off-by: faithuniterh <faithuniterh@tutanota.com>
* / examples: Add rgw script to access admin APIs using curlPrashant D2022-05-061-0/+112
|/ | | | | | | The rgw_admin_curl.sh script will allow end-user/developers to access RGW admin APIs through curl command. Signed-off-by: Prashant D <pdhange@redhat.com>
* examples: typos found by codespellDimitri Papadopoulos2021-12-225-5/+5
| | | | Signed-off-by: Dimitri Papadopoulos <dpo.ceph@mail.com>
* rgw/lua: Example read/write of StorageClass fieldCurt Bruns2021-11-022-0/+68
| | | | | | | | | | | Admins may setup different pools for RGW objects and having the StorageClass field mutable allows the steering of RGW objects to the proper pools. This Lua example shows how a user can modify the StorageClass header when it is empty on a PUT request and steer objects to different pools based on size (Request.ContentLength). Signed-off-by: Curt Bruns <curt.e.bruns@gmail.com>
* examples/librados: avoid a memory leakInjae Kang2021-09-181-0/+3
| | | | | | Avoid a memory leak by deallocating the pre-allocated aio completion. Signed-off-by: Injae Kang <abcinje@gmail.com>
* examples: add elasticsearch and prometheus examplesZulai Wang2021-09-016-0/+274
| | | | | | Add examples on how to use lua scripting to push request fields from the RGW to Elasticsearch and Prometheus. Signed-off-by: Zulai Wang <zl31wang@gmail.com>
* rgw: Add an example for lua scriptingMatan Breizman2021-07-052-0/+194
| | | | | | | | | example on how to use 'lua scripting' feature to add NATS to the list of bucket notification endpoints depends on PR: #41927 and #42102 Signed-off-by: Matan Breizman <Matan.Brz@gmail.com>
* rgw/notifications: support v4 auth for topics and notificationsYuval Lifshitz2021-06-241-5/+0
| | | | | | Fixes: https://tracker.ceph.com/issues/50039 Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
* Merge pull request #37956 from dorindabassey/example-notificCasey Bodley2020-12-082-5/+121
|\ | | | | | | | | examples/boto3/README: examples notification Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
| * examples/boto3/README: examples notificationdorindabassey2020-12-032-5/+121
| | | | | | | | | | | | | | | | | | | | | | added examples on how to fetch attributes of a specific topic add explanation on SNS signature version Fixes: https://tracker.ceph.com/issues/46243 Signed-off-by: dorindabassey <dorindabassey@gmail.com> Co-authored-by: Yuval Lifshitz <ylifshit@redhat.com>
* | rgw: send headers of quota settingsOr Friedmann2020-10-156-16/+26
|/ | | | | | | | | Make the quota settings visible to s3 and swift users rgw send headers of quota settings Fixes: https://tracker.ceph.com/issues/47752 Signed-off-by: Or Friedmann <ofriedma@redhat.com>
* rgw: add PUT and POST req support to data cacheMark Kogan2020-07-215-62/+188
| | | | | | | | | | facilitates the full usage of the Nginx cache endpoint with s3 tools that support AWSv4 like s3cmd,aws-cli, benchmarking tools like hsbench and also hadoop/s3a. Co-authored-by: Or Friedmann <ofriedma@redhat.com> Signed-off-by: Mark Kogan <mkogan@redhat.com>
* rgw: fix nginx-rgw docsofriedma2020-06-014-5/+5
| | | | | | Signed-off-by: Or Friedmann <ofriedma@redhat.com> Signed-off-by: Mark Kogan <mkogan@redhat.com>
* rgw: create rgw-cache example directoryOr Friedmann2020-05-195-0/+331
| | | | Signed-off-by: Or Friedmann <ofriedma@redhat.com>
* Merge pull request #33063 from theanalyst/boto3-ext-appendCasey Bodley2020-02-283-1/+120
|\ | | | | | | | | examples: rgw: add boto3 append & get usage api extensions Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
| * examples: add python source for append & get_usage_statsAbhishek Lekshmanan2020-02-262-0/+59
| | | | | | | | | | | | Add some pythonic examples that can be reused Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
| * eg: boto3 update doc urls to the latestAbhishek Lekshmanan2020-02-251-3/+4
| | | | | | | | Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
| * examples: boto3: support append object apiVersionAbhishek Lekshmanan2020-02-041-0/+28
| | | | | | | | | | | | | | | | Put Object takes a `--append` `--append-position` params which allows for appendable objects. Also PutObject api response has a AppendPosition output which displays the next position to append to Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
| * examples: rgw: add boto3 extensions for GetUsage S3 APIAbhishek Lekshmanan2020-02-041-0/+31
| | | | | | | | | | | | | | This allows for boto3 & aws cli to use the GetUsageStats api to get usage by a user Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
* | examples/librados: fix bufferlist::copy() in hello_world.cc.Radoslaw Zarzynski2020-02-041-1/+1
|/ | | | Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
* rgw/pubsub: notification filtering by object tagsYuval Lifshitz2019-12-153-0/+22
| | | | Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
* test: s/rados_aio_create_completion/rados_aio_create_completion2/Kefu Chai2019-11-011-1/+1
| | | | | | the former is deprecated and replaced with the latter Signed-off-by: Kefu Chai <kchai@redhat.com>
* rgw/examples: adding info on boto3 extensions to docsYuval Lifshitz2019-10-141-2/+20
| | | | Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
* rgw/examples: adding examples for boto3 extensions to AWS S3Yuval Lifshitz2019-10-027-0/+316
| | | | Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
* allow for multiple "build" dirs to existYuval Lifshitz2019-09-061-1/+2
| | | | Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>