perm

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPermissionRegex

func GetPermissionRegex(perm string) (*regexp.Regexp, error)

func GetPermissionRegexString

func GetPermissionRegexString(perm string) string

func ValidatePermission

func ValidatePermission(perm string) bool

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(perms []string) *Validator

func (*Validator) Append

func (v *Validator) Append(perms []string, superior bool)

func (*Validator) AppendSimple

func (v *Validator) AppendSimple(perms []string)

func (*Validator) GetPermissions

func (v *Validator) GetPermissions() []string

func (*Validator) Validate

func (v *Validator) Validate(perm string) bool

func (*Validator) ValidateRaw

func (v *Validator) ValidateRaw(perm string) bool

Jump to

Keyboard shortcuts

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