Documentation ¶
Overview ¶
Package contextutil contains functions for working with contexts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPolicyEvaluationTraces ¶ added in v0.19.0
func WithPolicyEvaluationTraces(ctx context.Context, traces []PolicyEvaluationTrace) context.Context
WithPolicyEvaluationTraces attaches policy evaluation traces to a context.
Types ¶
type PolicyEvaluationTrace ¶ added in v0.19.0
type PolicyEvaluationTrace struct { ID string `json:"id"` Explanation string `json:"explanation"` Remediation string `json:"remediation"` Allow bool `json:"allow"` Deny bool `json:"deny"` }
A PolicyEvaluationTrace traces a policy evaluation.
func GetPolicyEvaluationTraces ¶ added in v0.19.0
func GetPolicyEvaluationTraces(ctx context.Context) []PolicyEvaluationTrace
GetPolicyEvaluationTraces gets the policy evaluation traces from a context.
Click to show internal directories.
Click to hide internal directories.