Documentation ¶
Index ¶
- type Role
- type Roles
- func (roles *Roles) AssignEntities(name string, entityIDs []string)
- func (roles Roles) ByName(name string) Role
- func (roles Roles) Can(name string) bool
- func (roles Roles) CanOnly(name string) bool
- func (roles Roles) CanOver(name string, entityID string) bool
- func (this *Roles) Implications(validRoles Roles)
- func (roles Roles) NamedMap() map[string]Role
- func (roles *Roles) Scan(value interface{}) error
- func (roles Roles) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role struct { Name string `json:"name"` Label string `json:"label"` Implies Roles `json:"-"` Over []string `json:"over"` }
func (*Role) Implications ¶
type Roles ¶
type Roles []Role
func (*Roles) AssignEntities ¶ added in v0.0.11
func (*Roles) Implications ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.