role

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidIdentifier

func IsValidIdentifier(id identifier.Identifier) bool

Types

type Role

type Role struct {
	Id              string             `json:"id" bson:"id"`
	Name            string             `json:"name" bson:"name"`
	APIPermissions  []api2.Permission  `json:"apiPermissions" bson:"apiPermissions"`
	ViewPermissions []view2.Permission `json:"viewPermissions" bson:"viewPermissions"`
}

func (*Role) CompareAPIPermissions

func (r *Role) CompareAPIPermissions(perms []api2.Permission) bool

func (*Role) CompareViewPermissions

func (r *Role) CompareViewPermissions(perms []view2.Permission) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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