diff options
Diffstat (limited to 'weed/iam/constants.go')
| -rw-r--r-- | weed/iam/constants.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/weed/iam/constants.go b/weed/iam/constants.go new file mode 100644 index 000000000..0b857a896 --- /dev/null +++ b/weed/iam/constants.go @@ -0,0 +1,32 @@ +package iam + +// Character sets for credential generation +const ( + CharsetUpper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + Charset = CharsetUpper + "abcdefghijklmnopqrstuvwxyz/" +) + +// Policy document version +const PolicyDocumentVersion = "2012-10-17" + +// Error message templates +const UserDoesNotExist = "the user with name %s cannot be found." + +// Statement action constants - these map to IAM policy actions +const ( + StatementActionAdmin = "*" + StatementActionWrite = "Put*" + StatementActionWriteAcp = "PutBucketAcl" + StatementActionRead = "Get*" + StatementActionReadAcp = "GetBucketAcl" + StatementActionList = "List*" + StatementActionTagging = "Tagging*" + StatementActionDelete = "DeleteBucket*" +) + +// Access key lengths +const ( + AccessKeyIdLength = 21 + SecretAccessKeyLength = 42 +) + |
