roles

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Roles

type Roles map[model.Identifier]*model.Role

func From added in v1.2.2

func From(roles Roles) Roles

func (Roles) Check

func (r Roles) Check(permissions []model.Permissions, privilege string, on *model.Entities) bool

func (Roles) CheckIfExists

func (r Roles) CheckIfExists(roleID model.Identifier) (bool, *model.Role)

func (Roles) Create added in v1.3.3

func (r Roles) Create(roleID model.Identifier, allowed []string, denied []string, hidden bool) *er.WdbError

func (Roles) List added in v1.3.3

func (r Roles) List(forceListAllRoles bool) Roles

func (Roles) Update added in v1.3.3

func (r Roles) Update(roleID model.Identifier, allowed []string, denied []string, hidden bool) *er.WdbError

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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