Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LongTextForm contains one ACL entry per line. LongTextForm = "\n" // ShortTextForm is a sequence of ACL entries separated by commas, and is used for input. ShortTextForm = "," // TypeUser indicates the qualifier identifies a user TypeUser = "u" // TypeLightweight indicates the qualifier identifies a lightweight user TypeLightweight = "lw" // TypeGroup indicates the qualifier identifies a group TypeGroup = "egroup" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLs ¶
type ACLs struct {
Entries []*Entry
// contains filtered or unexported fields
}
The ACLs represent a delimiter separated list of ACL entries.
func (*ACLs) DeleteEntry ¶
DeleteEntry removes an entry uniquely identified by acl type and qualifier
type Entry ¶
type Entry struct {
// an ACL entry tag type: user, group, mask or other. comments start with #
Type string
// an ACL entry qualifier
Qualifier string
// and the discretionary access permissions
Permissions string
}
The Entry of an ACL is represented as three colon separated fields:
func ParseEntry ¶
ParseEntry parses a single ACL
func ParseLWEntry ¶
ParseLWEntry parses a single lightweight ACL
func (*Entry) CitrineSerialize ¶
CitrineSerialize serializes an ACL entry for citrine EOS ACLs
Click to show internal directories.
Click to hide internal directories.