aboutsummaryrefslogtreecommitdiff
path: root/weed/iam/constants.go
blob: 0b857a896a45bb96e36bf1b026d74d0df476f3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
)