Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessMode ¶
type AccessMode int
AccessMode specifies the users access mode
const ( // AccessModeNone no access AccessModeNone AccessMode = iota // 0 // AccessModeRead read access AccessModeRead // 1 // AccessModeWrite write access AccessModeWrite // 2 // AccessModeAdmin admin access AccessModeAdmin // 3 // AccessModeOwner owner access AccessModeOwner // 4 )
func ParseAccessMode ¶
func ParseAccessMode(permission string) AccessMode
ParseAccessMode returns corresponding access mode to given permission string.
func (AccessMode) ColorFormat ¶
func (mode AccessMode) ColorFormat(s fmt.State)
ColorFormat provides a ColorFormatted version of this AccessMode
func (AccessMode) String ¶
func (mode AccessMode) String() string
Click to show internal directories.
Click to hide internal directories.