authz

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHostnameNotFound = xerrors.New("authz: hostname not found")
	ErrSessionNotFound  = xerrors.New("authz: session not found")
	ErrNotAllowed       = xerrors.New("authz: not allowed")
)
View Source
var DefaultAuthorization = &authorization{}

Functions

func Authorization

func Authorization(ctx context.Context, req *http.Request, user *database.User, sess *session.Session) error

func AuthorizationSocket

func AuthorizationSocket(ctx context.Context, backend *configv2.Backend, user *database.User) error

func Init

func Init(conf *configv2.Config)

Types

This section is empty.

Jump to

Keyboard shortcuts

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