evalcontext

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluationContext

type EvaluationContext struct {
	// Subject under evaluation
	Subject attestation.Subject

	// Policy in effect
	Policy *papi.Policy

	// Context definitions as distilled through inheritance
	Context map[string]*papi.ContextVal

	// Context values from evaluation invocation
	ContextValues map[string]any

	// ChainedSubjects is a precomputed chain that informs the
	// policy evaluator how the subject was obtained, typically
	// by the policy set.
	ChainedSubjects []*papi.ChainedSubject

	// Recognized identities for attestation validation.
	Identities []*sapi.Identity
}

The evaluation context is the data structure we pass to the evaluators in the context. This lets implementation have access to more data while keeping the function signatures scoped to the minimun elements needed.

The evaluation context data travels in this options set after being assembled and precomputed by the verifier from the policy data and external definitions.

type EvaluationContextKey

type EvaluationContextKey struct{}

The evaluation context is the data structure we pass to the evaluators in the context. This lets implementation have access to more data while keeping the function signatures scoped to the minimun elements needed.

The evaluation context data travels in this options set after being assembled and precomputed by the verifier from the policy data and external definitions.

Jump to

Keyboard shortcuts

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