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 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. |
Click to show internal directories.
Click to hide internal directories.