add acl helper functionalities (#3831)

This commit is contained in:
LHHDZ
2022-10-13 11:15:16 +08:00
committed by GitHub
parent 401315f337
commit bf5e45b66a
4 changed files with 1233 additions and 0 deletions

View File

@@ -6,3 +6,15 @@ var (
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
}