Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NewRoleOpts ¶
type Role ¶
type Role struct {
Name string `json:"name"`
Permissions []string `json:"permissions"`
CanAddInUsers bool `json:"canAddInUsers"`
IsSystemRole bool `json:"isSystemRole"`
}
func NewRole ¶
func NewRole(opts *NewRoleOpts) (*Role, error)
func (*Role) AddPermission ¶
func (*Role) RemovePermission ¶
Click to show internal directories.
Click to hide internal directories.