mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-21 23:38:07 +08:00
0bf56298d5
* fix * fix mtime s > ns --------- Co-authored-by: zemul <zhouzemiao@ihuman.com>
21 lines
536 B
Go
21 lines
536 B
Go
package s3_constants
|
|
|
|
// Amazon S3 predefined groups
|
|
var (
|
|
GranteeGroupAllUsers = "http://acs.amazonaws.com/groups/global/AllUsers"
|
|
GranteeGroupAuthenticatedUsers = "http://acs.amazonaws.com/groups/global/AuthenticatedUsers"
|
|
GranteeGroupLogDelivery = "http://acs.amazonaws.com/groups/s3/LogDelivery"
|
|
)
|
|
|
|
func ValidateGroup(group string) bool {
|
|
valid := true
|
|
switch group {
|
|
case GranteeGroupAllUsers:
|
|
case GranteeGroupLogDelivery:
|
|
case GranteeGroupAuthenticatedUsers:
|
|
default:
|
|
valid = false
|
|
}
|
|
return valid
|
|
}
|