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.