policy

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnforcementResult

type EnforcementResult struct {
	Allowed          bool
	RequiresApproval bool
	Reason           string
}

EnforcementResult describes the outcome of a policy check.

type Enforcer

type Enforcer struct{}

Enforcer validates job capabilities against environment policies.

func NewEnforcer

func NewEnforcer() *Enforcer

NewEnforcer creates a new policy enforcer.

func (*Enforcer) Enforce

func (e *Enforcer) Enforce(capabilities []string, policies map[string]interface{}) EnforcementResult

Enforce checks whether the given capabilities are permitted by the policies.

Jump to

Keyboard shortcuts

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