Versions in this module Expand all Collapse all v7 v7.0.71 Mar 22, 2024 Changes in this version + func GetPolicies(statements []Statement, bucketName, prefix string) map[string]BucketPolicy + type BucketAccessPolicy struct + Statements []Statement + Version string + type BucketPolicy string + const BucketPolicyNone + const BucketPolicyReadOnly + const BucketPolicyReadWrite + const BucketPolicyWriteOnly + func GetPolicy(statements []Statement, bucketName, prefix string) BucketPolicy + func (p BucketPolicy) IsValidBucketPolicy() bool + type ConditionKeyMap map[string]set.StringSet + func CopyConditionKeyMap(condKeyMap ConditionKeyMap) ConditionKeyMap + func (ckm ConditionKeyMap) Add(key string, value set.StringSet) + func (ckm ConditionKeyMap) Remove(key string, value set.StringSet) + func (ckm ConditionKeyMap) RemoveKey(key string) + type ConditionMap map[string]ConditionKeyMap + func (cond ConditionMap) Add(condKey string, condKeyMap ConditionKeyMap) + func (cond ConditionMap) Remove(condKey string) + type Statement struct + Actions set.StringSet + Conditions ConditionMap + Effect string + Principal User + Resources set.StringSet + Sid string + func SetPolicy(statements []Statement, policy BucketPolicy, bucketName, prefix string) []Statement + type User struct + AWS set.StringSet + CanonicalUser set.StringSet + func (u *User) UnmarshalJSON(data []byte) error