authorizator

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 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 Authorizator

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

func New

func New(permissions []entities.Permission, tenant string, logger log.Logger) *Authorizator

func (*Authorizator) CheckAccess

func (author *Authorizator) CheckAccess(allowedTenants []string) error

func (*Authorizator) CheckPermission

func (author *Authorizator) CheckPermission(ops ...*entities.Operation) error

Jump to

Keyboard shortcuts

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