Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ACLRead allows reading the specified repositories, as well as // managing own credentials. ACLRead model.ACLPermission = "Read" // ACLWrite allows reading and writing the specified repositories, // as well as managing own credentials. ACLWrite model.ACLPermission = "Write" // ACLSuper allows reading, writing, and all other actions on the // specified repositories, as well as managing own credentials. ACLSuper model.ACLPermission = "Super" // ACLAdmin allows all operations, including all reading, writing, // and all other actions on all repositories, and managing // authorization and credentials of all users. ACLAdmin model.ACLPermission = "Admin" )
View Source
const ( ACLAdminsGroup = "Admins" ACLSupersGroup = "Supers" ACLWritersGroup = "Writers" ACLReadersGroup = "Readers" )
View Source
const ACLPolicyPrefix = "ACL(_-_)"
Variables ¶
View Source
var ( ACLPermissions = []model.ACLPermission{ACLRead, ACLWrite, ACLSuper, ACLAdmin} ErrBadACLPermission = fmt.Errorf("%w: Bad ACL permission", model.ErrValidationError) )
Functions ¶
func ACLPolicyName ¶
ACLPolicyName returns the policy identifier for the ACL for groupID.
func ACLToStatement ¶
func ACLToStatement(acl model.ACL) (model.Statements, error)
func IsACLPolicyName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.