package lineage
import "github.com/open-policy-agent/opa/topdown/lineage"
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. For newer features and behaviours, such as defaulting to the Rego v1 syntax, use the corresponding components in the github.com/open-policy-agent/opa/v1 package instead. See https://www.openpolicyagent.org/docs/latest/v0-compatibility/ for more information.
Index ¶
- func Debug(trace []*topdown.Event) []*topdown.Event
- func Fails(trace []*topdown.Event) []*topdown.Event
- func Filter(trace []*topdown.Event, filter func(*topdown.Event) bool) (result []*topdown.Event)
- func Full(trace []*topdown.Event) (result []*topdown.Event)
- func Notes(trace []*topdown.Event) []*topdown.Event
Functions ¶
func Debug ¶
Debug contains everything in the log.
func Fails ¶
Fails returns a filtered trace that contains Fail events and context to understand where the Fail occurred.
func Filter ¶
Filter will filter a given trace using the specified filter function. The filtering function should return true for events that should be kept, false for events that should be filtered out.
func Full ¶
Full returns a filtered trace that contains everything except Unify ops
func Notes ¶
Notes returns a filtered trace that contains Note events and context to understand where the Note was emitted.
Source Files ¶
- Version
- v1.3.0
- Published
- Mar 27, 2025
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 30 minutes ago –
Tools for package owners.