rbac

package
v5.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT, MIT, MIT, + 1 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorizer

type Authorizer struct {
	Store store.Store
}

Authorizer implements an authorizer interface using Role-Based Acccess Control (RBAC)

func (*Authorizer) Authorize

func (a *Authorizer) Authorize(ctx context.Context, attrs *authorization.Attributes) (bool, error)

Authorize determines if a request is authorized based on its attributes

Jump to

Keyboard shortcuts

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