Documentation ¶
Index ¶
- func ChildRolesForRole(role Role) map[Role]bool
- func KeysetsWithPermission(permission Permission) map[Keyset]bool
- func LoadData()
- func ParentRolesForRole(role Role) map[Role]bool
- func PermissionsForKeyset(keyset Keyset) map[Permission]bool
- func PermissionsForRole(role Role) map[Permission]bool
- func RolesForUser(user User) map[Role]bool
- func RolesRequiredForKeyset(keyset Keyset) map[Role]bool
- func RolesWithPermission(permission Permission) map[Role]bool
- func SetPermissionForKeyset(permission Permission, keyset Keyset, value bool)
- func SetPermissionForRole(permission Permission, role Role, value bool)
- func SetRoleForUser(user User, role Role, value bool)
- func SetRoleInheritedFromRole(childRole Role, parentRole Role, value bool)
- func SetRoleRequiredForKeyset(keyset Keyset, role Role, value bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChildRolesForRole ¶
func ChildRolesForRole(role Role) map[Role]bool
func KeysetsWithPermission ¶
func KeysetsWithPermission(permission Permission) map[Keyset]bool
func ParentRolesForRole ¶
func ParentRolesForRole(role Role) map[Role]bool
func PermissionsForKeyset ¶
func PermissionsForKeyset(keyset Keyset) map[Permission]bool
func PermissionsForRole ¶
func PermissionsForRole(role Role) map[Permission]bool
func RolesForUser ¶
func RolesForUser(user User) map[Role]bool
func RolesRequiredForKeyset ¶
func RolesRequiredForKeyset(keyset Keyset) map[Role]bool
func RolesWithPermission ¶
func RolesWithPermission(permission Permission) map[Role]bool
func SetPermissionForKeyset ¶
func SetPermissionForKeyset(permission Permission, keyset Keyset, value bool)
func SetPermissionForRole ¶
func SetPermissionForRole(permission Permission, role Role, value bool)
func SetRoleForUser ¶
func SetRoleForUser(user User, role Role, value bool)
func SetRoleInheritedFromRole ¶
func SetRoleInheritedFromRole(childRole Role, parentRole Role, value bool)
func SetRoleRequiredForKeyset ¶
func SetRoleRequiredForKeyset(keyset Keyset, role Role, value bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.