Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
User string `json:"user"`
Namespace string `json:"namespace"`
Access AccessLevel `json:"access"`
}
func (Access) RenderTable ¶
func (Access) TableHeaders ¶
type AccessLevel ¶
type AccessLevel string
const ( Owner AccessLevel = "owner" Write AccessLevel = "write" ReadDelete AccessLevel = "read-delete" Read AccessLevel = "read" None AccessLevel = "" ErrInvalidAccessLevel chkitErrors.Err = "invalid access level" )
func LevelFromString ¶
func LevelFromString(str string) (AccessLevel, error)
func Levels ¶
func Levels() []AccessLevel
func (AccessLevel) MarshalText ¶
func (lvl AccessLevel) MarshalText() ([]byte, error)
func (AccessLevel) String ¶
func (lvl AccessLevel) String() string
func (*AccessLevel) UnmarshalText ¶
func (lvl *AccessLevel) UnmarshalText(p []byte) error
type AccessList ¶
type AccessList []Access
func AccessFromNamespace ¶
func AccessFromNamespace(namespace permModel.NamespaceWithPermissionsJSON) AccessList
func (AccessList) RenderTable ¶
func (list AccessList) RenderTable() string
func (AccessList) TableHeaders ¶
func (AccessList) TableHeaders() []string
func (AccessList) TableRows ¶
func (list AccessList) TableRows() [][]string
Click to show internal directories.
Click to hide internal directories.