evaluator

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator interface {
	ExecTenet(context.Context, *options.EvaluatorOptions, *papi.Tenet, []attestation.Predicate) (*papi.EvalResult, error)
	ExecChainedSelector(context.Context, *options.EvaluatorOptions, *papi.ChainedPredicate, attestation.Predicate) ([]attestation.Subject, error)

	// EvalExpression evaluates a standalone expression and returns its value.
	// Used to resolve dynamic ContextVal expressions. The evaluator reads the
	// subject and any other evaluation-time data from the evalcontext.EvaluationContext
	// stored in ctx.
	EvalExpression(context.Context, *options.EvaluatorOptions, string) (any, error)

	// SupportedVersion returns the maximum runtime version this evaluator can
	// satisfy. The factory rejects policy specs that request a higher version.
	SupportedVersion() string
}

Evaluator

type Factory

type Factory struct{}

func (*Factory) Get

type PluginAware added in v1.3.2

type PluginAware interface {
	RegisteredPlugins() map[string]api.EvalEnginePlugin
}

PluginAware is an optional interface for evaluators that register named plugins. The factory uses it to check plugin version requirements from the policy runtime spec.

Directories

Path Synopsis
plugins
osv
Package osv provides CEL helpers for writing policies over OSV results predicates.
Package osv provides CEL helpers for writing policies over OSV results predicates.
semver
Package semver provides a CEL-runtime plugin that exposes a `semver` object with helpers for parsing and comparing Semantic Versioning 2.0.0 strings.
Package semver provides a CEL-runtime plugin that exposes a `semver` object with helpers for parsing and comparing Semantic Versioning 2.0.0 strings.
url

Jump to

Keyboard shortcuts

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