Skip to content

Commit 776d28c

Browse files
committed
2 parents c1585a7 + f64337d commit 776d28c

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
[![Build Status](https://travis-ci.org/twonote/radosgw-admin4j.svg?branch=master)](https://travis-ci.org/twonote/radosgw-admin4j) [![License](https://img.shields.io/badge/license-Apache%202-blue.svg)]()
2-
[![Javadocs](https://www.javadoc.io/badge/io.github.twonote/radosgw-admin4j.svg)](https://static.javadoc.io/io.github.twonote/radosgw-admin4j/1.1.0/index.html?org/twonote/rgwadmin4j/RgwAdmin.html)
2+
[![Javadocs](https://www.javadoc.io/badge/io.github.twonote/radosgw-admin4j.svg)](https://static.javadoc.io/io.github.twonote/radosgw-admin4j/1.3.0/index.html?org/twonote/rgwadmin4j/RgwAdmin.html)
33

44
# About
5-
radosgw-admin4j is a Ceph object storage admin client that allows provisioning and control of a Ceph object storage deployment. This includes support for user/subuser management, quota management, usage report, bucket/object management, etc.
5+
radosgw-admin4j is a Ceph object storage admin client that allows provisioning and control of a Ceph object storage deployment. Features include user/sub user management, quota management, usage report, bucket/object management, etc.
66

77
# Highlight
8-
* **Fully support all [operations](http://docs.ceph.com/docs/master/radosgw/adminops/)** includes **subuser**, **quota** and more in the least Ceph version.
8+
* **Fully support all [operations](http://docs.ceph.com/docs/master/radosgw/adminops/)** includes **sub user**, **quota** and more in the least Ceph version.
99
* An easier way to manage radosgw. Avoid troubles when working with radosgw admin APIs, especially that docs are a bit confusing and inconsistent with the code base.
10-
* Quality and compatibility - [Continuous Integration](https://travis-ci.org/twonote/radosgw-admin4j) and tests against the least stable Ceph version (**Luminous**/**Mimic** currently. Krakan and previous should also works.)
10+
* Quality and compatibility - [Continuous Integration](https://travis-ci.org/twonote/radosgw-admin4j) and tests against the least stable Ceph version (**Luminous**/**Mimic** currently. Kraken and previous should also work.)
1111
* Contributor friendly - typical contribution process, no wired policies, all contributions are welcome!
1212

1313
# Start using
1414

1515
## Add dependency
1616

1717
You can obtain radosgw-admim4j from Maven Central using the following identifier:
18-
* [io.github.twonote.radosgw-admin4j:1.1.0](https://search.maven.org/#artifactdetails%7Cio.github.twonote%7Cradosgw-admin4j%7C1.1.0%7Cjar)
18+
* [io.github.twonote.radosgw-admin4j:1.3.0](https://search.maven.org/#artifactdetails%7Cio.github.twonote%7Cradosgw-admin4j%7C1.3.0%7Cjar)
1919

2020
## Configuration
2121

@@ -30,7 +30,7 @@ RgwAdmin RGW_ADMIN =
3030

3131
## Usage example
3232

33-
We support all types of operation includes **User**, **Subuser**, **Key**, **Bucket**, **Capability**, **Quota** and **Usage**. Please check all available operations in [![Javadocs](https://www.javadoc.io/badge/io.github.twonote/radosgw-admin4j.svg)](https://static.javadoc.io/io.github.twonote/radosgw-admin4j/1.0.2/index.html?org/twonote/rgwadmin4j/RgwAdmin.html)
33+
We support all types of operation includes **User**, **Subuser**, **Key**, **Bucket**, **Capability**, **Quota** and **Usage**. Please check all available operations in [![Javadocs](https://www.javadoc.io/badge/io.github.twonote/radosgw-admin4j.svg)](https://static.javadoc.io/io.github.twonote/radosgw-admin4j/1.3.0/index.html?org/twonote/rgwadmin4j/RgwAdmin.html)
3434

3535

3636
### User management
@@ -62,7 +62,7 @@ RGW_ADMIN.removeUser(userId);
6262
// Allow the user owns more buckets
6363
RGW_ADMIN.modifyUser(userId, ImmutableMap.of("max-buckets", String.valueOf(Integer.MAX_VALUE)));
6464
65-
// Set the quota that causes the user can have at most one thousand objects and the maximal usage is 1 GiB
65+
// Set the quota that causes the user can have at most one thousand objects, and the maximal usage is 1 GiB
6666
RGW_ADMIN.setUserQuota(userId, 1000, 1048576);
6767
```
6868

@@ -85,7 +85,7 @@ UsageInfo userUsage = RGW_ADMIN.getUserUsage(userId).get();
8585
userUsage.getSummary().stream().peek(System.out::println);
8686
```
8787

88-
## Radosgw setup
88+
## One more thing: Radosgw setup
8989
To kick off, you need one ready to use radosgw instance and one radosgw account with proper admin capabilities. Follow the guide below to have a radowgw setup then you can fire the example code.
9090

9191
### “I do not have a radosgw setup currently”
@@ -94,7 +94,7 @@ You could refer the [Ceph official manual](http://docs.ceph.com/docs/master/star
9494
$ sudo docker rm -f rgwl; rm -rf /etc/cephl; sudo docker run -d -p 80:80 -v /etc/cephl/:/etc/ceph/ -e CEPH_DEMO_UID=qqq -e CEPH_DEMO_ACCESS_KEY=qqq -e CEPH_DEMO_SECRET_KEY=qqq -e RGW_CIVETWEB_PORT=80 -e NETWORK_AUTO_DETECT=4 --name rgwl ceph/daemon@sha256:4d84442c3ac5746bbfc72349a3472fb9e99120c0cb2a95fc4a17320070ca9422 demo; sleep 10
9595
```
9696

97-
Note that the port 80 should be available.
97+
Note that port 80 should be available.
9898

9999
Check the setup succeeded by the following command:
100100
```

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.3.0 (2019-05-23)
2+
- Set quota for specific bucket
3+
- List all buckets
4+
- Bugfix: setSubUserPermission() cannot set the READ_WRITE permission.
5+
16
1.1.0 (2018-03-29)
27
- Get/set bucket quota
38

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>io.github.twonote</groupId>
77
<artifactId>radosgw-admin4j</artifactId>
8-
<version>1.1.0</version>
8+
<version>1.3.1-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

1111
<name>radosgw-admin4j</name>

src/main/java/org/twonote/rgwadmin4j/RgwAdmin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ List<SubUser> setSubUserPermission(
244244
* Remove an existing S3 credential from the specified user.
245245
*
246246
* @param userId The specified user.
247-
* @param accessKey The access key belonging to the credential to remove.
247+
* @param accessKey The access key which is belonging to the credential to remove.
248248
*/
249249
void removeS3Credential(String userId, String accessKey);
250250

@@ -280,7 +280,7 @@ List<S3Credential> createS3CredentialForSubUser(
280280
* @param userId the specified user.
281281
* @param subUserId the specified sub user. Should not contain user id, i.e., bar instead of
282282
* foo:bar.
283-
* @param accessKey The access key belonging to the credential to remove.
283+
* @param accessKey The access key which is belonging to the credential to remove.
284284
*/
285285
void removeS3CredentialFromSubUser(String userId, String subUserId, String accessKey);
286286

0 commit comments

Comments
 (0)