Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement of the MinIO admin client functionality with the group function #1343

Merged
merged 2 commits into from
Sep 24, 2022

Conversation

Vedat-D
Copy link
Contributor

@Vedat-D Vedat-D commented Jun 24, 2022

Three functions have been added to the client.

A function (addUpdateGroup) to add a group with optional group membership or to update the membership of a Group.
A function (removeGroup) to delete a group.
Example:
Create an empty group:
minioClient.addUpdateGroup(groupName, Status.ENABLED, null);
Update membership of group :
minioClient.addUpdateGroup(groupId, Status.ENABLED, groupMembers);
Delete a group:
minioClient.removeGroup(groupName);

A function (getGroupInfo) to get information of a group.
Example:
Get info of a group:
GroupInfo groupInfo = minioClient.getGroupInfo(groupName);

A function (listGroups) to list all groups.
Example:
List all groups:
List<String> groupsMinio = minioClient.listGroups();

I have extracted the enum status but left it in the class UserInfo so as not to cause any breaking changes.
However, it is recommended to replace the code occurances "UserInfo.Status" with "Status" and then delete the code duplicate of UserInfo

@Vedat-D
Copy link
Contributor Author

Vedat-D commented Jul 10, 2022

Hello together, what is the status here?

@harshavardhana harshavardhana merged commit aef60d3 into minio:master Sep 24, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants