policy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VariablesKey = "variables"
	ObjectKey    = "object"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler interface {
	Compile(v1alpha1.AuthorizationPolicy) (PolicyFunc, error)
}

func NewCompiler

func NewCompiler() Compiler

type PolicyFunc

type PolicyFunc func(*authv3.CheckRequest) (*authv3.CheckResponse, error)

type Provider

type Provider interface {
	CompiledPolicies(context.Context) ([]PolicyFunc, error)
}

func NewKubeProvider

func NewKubeProvider(mgr ctrl.Manager, compiler Compiler) (Provider, error)

Jump to

Keyboard shortcuts

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