diff options
Diffstat (limited to 'weed/iam')
| -rw-r--r-- | weed/iam/constants.go | 6 | ||||
| -rw-r--r-- | weed/iam/responses.go | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/weed/iam/constants.go b/weed/iam/constants.go index 206132201..7dea524e8 100644 --- a/weed/iam/constants.go +++ b/weed/iam/constants.go @@ -29,3 +29,9 @@ const ( AccessKeyIdLength = 21 SecretAccessKeyLength = 42 ) + +// Access key status values (AWS IAM compatible) +const ( + AccessKeyStatusActive = "Active" + AccessKeyStatusInactive = "Inactive" +) diff --git a/weed/iam/responses.go b/weed/iam/responses.go index a45c9fd16..47ec7b8c4 100644 --- a/weed/iam/responses.go +++ b/weed/iam/responses.go @@ -138,3 +138,15 @@ type Policies struct { Policies map[string]interface{} `json:"policies"` } +// SetUserStatusResponse is the response for SetUserStatus action. +// This is a SeaweedFS extension to enable/disable users without deleting them. +type SetUserStatusResponse struct { + CommonResponse + XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ SetUserStatusResponse"` +} + +// UpdateAccessKeyResponse is the response for UpdateAccessKey action. +type UpdateAccessKeyResponse struct { + CommonResponse + XMLName xml.Name `xml:"https://iam.amazonaws.com/doc/2010-05-08/ UpdateAccessKeyResponse"` +} |
