repository

package
v0.0.0-...-0ca62e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 LoadData

func LoadData()

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL