Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PermissionAuthorized = string("PermissionAuthorized")
PermissionAuthorized is the default permission for authorized users
Functions ¶
This section is empty.
Types ¶
type PermissionSet ¶
type PermissionSet interface {
Permissions() []string
}
PermissionSet is a list of permissions
type Role ¶
type Role interface { Label() string PermissionSet }
Role is an interface for available role
type StringRole ¶
type StringRole string
StringRole is simple representation of Role interface
func (StringRole) Permissions ¶
func (r StringRole) Permissions() []string
Permissions returns the list of role's permissions
Click to show internal directories.
Click to hide internal directories.