Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ReadPermission allows reading the specified repositories, as well as // managing own credentials. ReadPermission model.ACLPermission = "Read" // WritePermission allows reading and writing the specified repositories, // as well as managing own credentials. WritePermission model.ACLPermission = "Write" // SuperPermission allows reading, writing, and all other actions on the // specified repositories, as well as managing own credentials. SuperPermission model.ACLPermission = "Super" // AdminPermission allows all operations, including all reading, writing, // and all other actions on all repositories, and managing // authorization and credentials of all users. AdminPermission model.ACLPermission = "Admin" )
View Source
const ( AdminsGroup = "Admins" SupersGroup = "Supers" WritersGroup = "Writers" ReadersGroup = "Readers" )
View Source
const PolicyPrefix = "ACL(_-_)"
Variables ¶
View Source
var (
ErrBadACLPermission = fmt.Errorf("%w: Bad ACL permission", model.ErrValidationError)
)
Functions ¶
func ACLToStatement ¶
func ACLToStatement(acl model.ACL) (model.Statements, error)
func IsPolicyName ¶ added in v0.111.0
func PolicyName ¶ added in v0.111.0
PolicyName returns the policy identifier for the ACL for groupID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.