authz

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 10 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