Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

MCS add updateGroup and getGroupInfo admin api #363

Merged
merged 2 commits into from
Mar 20, 2020

Conversation

cesnietor
Copy link
Contributor

update allows to update the members by either adding members or deleting members with a simple PUT operation.

@cesnietor cesnietor self-assigned this Mar 19, 2020
func setGroupStatus(client MinioAdmin, group, status string) error {
var setStatus madmin.GroupStatus
switch status {
case "enabled":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good opportunity for a constant or an enum

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes I thought about that mhmh but not sure if restrict it since minio might change the status

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do if necessary in future

@cesnietor cesnietor merged commit 5c006bd into minio:master Mar 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants