authz

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenPolicyAgentUrlConfigKey = "opa-url"
	OpenPolicyAgentDefaultUrl   = "http://localhost:8181/v1/data/authz/"
)

Variables

This section is empty.

Functions

func Flags

func Flags() *pflag.FlagSet

func NewOpenPolicyAgentClient

func NewOpenPolicyAgentClient(opaUrl string) *opa

Types

type Authorizer

type Authorizer interface {
	Authorize(ctx context.Context, resource, action interface{}, externalData interface{}) error
}

Jump to

Keyboard shortcuts

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