Commit Graph

64 Commits

Author SHA1 Message Date
Justin Caratzas
47b954f1a8 examples: replace example go modules with instructions to run
Signed-off-by: Justin Caratzas <jcaratza@ibm.com>
2023-05-10 08:44:46 -04:00
Ilya Dryomov
673373f829
Merge pull request #50202 from rzarzynski/wip-librbd-drop-cxx11-from-example
examples/librbd: drop -std=c++11 from CXXFLAGS

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2023-02-23 18:25:14 +01:00
Radoslaw Zarzynski
e9495737f9 examples/librbd: drop -std=c++11 from CXXFLAGS
In terms of `CXXFLAGS` this commit does for `examples/librbd`
exactly what be838652fa already
did to `examples/librados`. Together they cover the purpose
of the long-waiting PR #44738.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2023-02-21 20:43:18 +00:00
Casey Bodley
36747b08ff examples: move rgw examples under subdirectory
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2023-02-13 17:20:26 -05:00
Laura Flores
80893b4e51
Merge pull request #47900 from Matan-B/wip-matanb-librados-20
examples/librados: Compile with c++20 on Ubuntu
2022-09-21 10:06:12 -05:00
Matan Breizman
be838652fa examples: Compile with c++20
This change will apply to ubuntu only.
Fixes: https://tracker.ceph.com/issues/57163

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2022-09-19 13:18:20 +00:00
Yuval Lifshitz
72f8cfadb3
Merge pull request #47274 from faithuniterh/Golang-Notification-creation
examples/golang : Add put notification creation golang example code

reviewed-by: yuvalif
2022-09-08 12:31:24 +03:00
Yuval Lifshitz
e85e121747
Merge pull request #47091 from faithuniterh/Golang-Topic-creation
Topic creation example and sorting Golang examples into different folders

reviewed-by: anthonyeleven, yuvalif
2022-09-07 21:15:52 +03:00
Faith
d6c20f9714 examples/golang/put-bucket-notification-creation : Add put bucket notification creation example code
Signed-off-by: Faith <faithuniterh@tutanota.com>
2022-09-02 08:56:20 +00:00
Salar Nosrati-Ershad
07030ac4fa examples/boto3: add ListObjectsV2Request shape to boto3 sdk extras with 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>
2022-08-06 08:53:18 +04:30
dux
e4ef6da47c examples/golang : Add Golang examples
Signed-off-by: dux <faithuniterh@tutanota.com>
2022-07-29 14:24:44 +00:00
dux
ed2c0247f9 examples/boto3: Updating Python examples to work with Python 3
Signed-off-by: dux <faithuniterh@tutanota.com>
2022-07-12 14:53:35 +00:00
Yuval Lifshitz
98bfe85f1f
Merge pull request #45937 from faithuniterh/adding_go_examples
examples: Add Golang code showing object upload to Ceph RGW bucket 

Reviwed-by: anthonyeleven
Reviwed-by: yuvalif
2022-06-09 10:36:17 +03:00
Yuval Lifshitz
80ffccaa17
Merge pull request #45970 from faithuniterh/adding_java_examples
examples: Add Java code showing object upload to Ceph RGW bucket

Reviewed-by: anthonyeleven
Reviewed-by: yuvalif
2022-06-09 10:33:18 +03:00
faithuniterh
7d1ec30e51 examples: Add Java code showing object upload to Ceph RGW bucket
Signed-off-by: faithuniterh <faithuniterh@tutanota.com>
2022-06-08 23:21:03 +03:00
faithuniterh
1acd53e373 examples: Add Golang code showing object upload to Ceph RGW bucket
Signed-off-by: faithuniterh <faithuniterh@tutanota.com>
2022-06-08 23:02:15 +03:00
Prashant D
9b40fdad5a examples: Add rgw script to access admin APIs using curl
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>
2022-05-06 11:14:12 -04:00
Dimitri Papadopoulos
8bb36215e0
examples: typos found by codespell
Signed-off-by: Dimitri Papadopoulos <dpo.ceph@mail.com>
2021-12-22 00:08:42 +01:00
Curt Bruns
bbd7f0dbaf rgw/lua: Example read/write of StorageClass field
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>
2021-11-01 19:45:38 -04:00
Injae Kang
acc929a0b9 examples/librados: avoid a memory leak
Avoid a memory leak by deallocating the pre-allocated aio completion.

Signed-off-by: Injae Kang <abcinje@gmail.com>
2021-09-18 15:16:55 +09:00
Zulai Wang
9b8a75a19b examples: add elasticsearch and prometheus examples
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>
2021-09-01 13:39:19 +08:00
Matan Breizman
a7d80da604 rgw: Add an example for lua scripting
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>
2021-07-05 14:48:29 +00:00
Yuval Lifshitz
d1b5084cd7 rgw/notifications: support v4 auth for topics and notifications
Fixes: https://tracker.ceph.com/issues/50039

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2021-06-24 18:06:30 +03:00
Casey Bodley
1e31479f64
Merge pull request #37956 from dorindabassey/example-notific
examples/boto3/README: examples notification

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-12-08 08:51:04 -05:00
dorindabassey
cd6ce38a0f examples/boto3/README: examples notification
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>
2020-12-03 13:24:13 +02:00
Or Friedmann
706e077a79 rgw: send headers of quota settings
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>
2020-10-15 18:54:47 +03:00
Mark Kogan
6251d2b6c1 rgw: add PUT and POST req support to data cache
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>
2020-07-21 15:23:57 +03:00
ofriedma
d73b879ac1 rgw: fix nginx-rgw docs
Signed-off-by: Or Friedmann <ofriedma@redhat.com>

Signed-off-by: Mark Kogan <mkogan@redhat.com>
2020-06-01 12:24:19 +03:00
Or Friedmann
94c81f3094 rgw: create rgw-cache example directory
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
2020-05-19 10:41:28 +03:00
Casey Bodley
3064f20220
Merge pull request #33063 from theanalyst/boto3-ext-append
examples: rgw: add boto3 append & get usage api extensions

Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
2020-02-28 09:31:14 -05:00
Abhishek Lekshmanan
c968f418de examples: add python source for append & get_usage_stats
Add some pythonic examples that can be reused

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-02-26 10:27:10 +01:00
Abhishek Lekshmanan
a80b72f38f eg: boto3 update doc urls to the latest
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-02-25 19:16:27 +01:00
Radoslaw Zarzynski
585c823720 examples/librados: fix bufferlist::copy() in hello_world.cc.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-02-04 22:34:14 +01:00
Abhishek Lekshmanan
dbdf49ec28 examples: boto3: support append object apiVersion
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>
2020-02-04 15:29:28 +01:00
Abhishek Lekshmanan
1ca532d033 examples: rgw: add boto3 extensions for GetUsage S3 API
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>
2020-02-04 15:28:07 +01:00
Yuval Lifshitz
d19474f3d7 rgw/pubsub: notification filtering by object tags
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-12-15 14:20:41 +02:00
Kefu Chai
f18903a66c test: s/rados_aio_create_completion/rados_aio_create_completion2/
the former is deprecated and replaced with the latter

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-01 17:27:20 +08:00
Yuval Lifshitz
bd017b2b12 rgw/examples: adding info on boto3 extensions to docs
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-10-14 20:38:13 +03:00
Yuval Lifshitz
fc5626d5cf rgw/examples: adding examples for boto3 extensions to AWS S3
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-10-02 11:04:53 +03:00
Yuval Lifshitz
b8b43fe59d allow for multiple "build" dirs to exist
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-09-06 09:38:32 +03:00
Jason Dillaman
65c8733b56 librados: revert librados3/libradoscc back to librados2
For backwards compatibility and upgrade reasons, the librados2
API needs to be preserved and it needs to continue to be compatible
with dependent libraries like librbd1.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-20 14:59:26 -05:00
Kefu Chai
2a6d98127d
Merge pull request #24939 from marcosps/simplify_examples
examples/librados: Remove not needed else clauses

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-11-28 13:04:07 +08:00
Kefu Chai
38f99bc7af examples/librados: link c++ samples against libradospp
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-08 06:52:44 -08:00
Marcos Paulo de Souza
9ff62fa66c examples/librados/hello_world.cc: Remove not needed else clause
If the 'if' clause ends executing a goto, there is no need for an else
clause that only prints a message about the success of the action.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2018-11-04 23:35:43 -02:00
Marcos Paulo de Souza
afaf91a9a1 examples/librados/hello_world_c: Remove not needed else clause
If the 'if' clause ends executing a goto, there is no need for an else
clause that only prints a message about the success of the action.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2018-11-04 22:53:29 -02:00
Ji You
1803671166 examples/Makefile: add -Wno-unused-parameter to avoid compile error
Signed-off-by: You Ji <youji@ebay.com>
2018-08-15 18:20:17 -07:00
Nathan Cutler
ed76f04c68 example/librados: remove dependency on Boost system library
109e6022be introduced "-lboost_system" into
example/librados/Makefile but the Boost system library is no longer required
to compile and link hello_world.cc.

Fixes: http://tracker.ceph.com/issues/25054
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-07-21 12:22:49 +02:00
Sage Weil
d4cc161566 cleanup: src/.libs -> build/lib
Clean up remaining traces of automake's .libs.  This makes unittest_*
tests easier to run by hand (mostly).

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-06 14:44:47 -06:00
Mahati Chamarthy
6e9b62b600 examples: add new librbd example
Adds a librbd example

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
2017-10-15 19:43:45 +05:30
Mahati Chamarthy
5b027155b4 examples: fix link order in librados example Makefile
The library link order in librados example Makefile is incorrect
and as a result 'make' throws an error. This change fixes the order.

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
2017-09-25 19:20:58 +05:30