Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

536 B
Raw Blame
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
}