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 AccessMode = iota // 0: no access AccessModeRead // 1: read access AccessModeWrite // 2: write access AccessModeAdmin // 3: admin access AccessModeOwner // 4: owner access )
func ParseAccessMode ¶
func ParseAccessMode(permission string, allowed ...AccessMode) AccessMode
ParseAccessMode returns corresponding access mode to given permission string.
func (AccessMode) LogString ¶ added in v1.20.0
func (mode AccessMode) LogString() string
func (AccessMode) ToString ¶ added in v1.22.0
func (mode AccessMode) ToString() string
ToString returns the string representation of the access mode, do not make it a Stringer, otherwise it's difficult to render in templates
Click to show internal directories.
Click to hide internal directories.