2022-09-29 19:29:01 +00:00
|
|
|
package s3_constants
|
|
|
|
|
2023-03-02 16:24:36 +00:00
|
|
|
// Amazon S3 predefined groups
|
2022-09-29 19:29:01 +00:00
|
|
|
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"
|
|
|
|
)
|
2022-10-13 03:15:16 +00:00
|
|
|
|
|
|
|
func ValidateGroup(group string) bool {
|
|
|
|
valid := true
|
|
|
|
switch group {
|
|
|
|
case GranteeGroupAllUsers:
|
|
|
|
case GranteeGroupLogDelivery:
|
|
|
|
case GranteeGroupAuthenticatedUsers:
|
|
|
|
default:
|
|
|
|
valid = false
|
|
|
|
}
|
|
|
|
return valid
|
|
|
|
}
|