package lineage

import "github.com/open-policy-agent/opa/topdown/lineage"

Index

Functions

func Debug

func Debug(trace []*topdown.Event) []*topdown.Event

Debug contains everything in the log.

func Fails

func Fails(trace []*topdown.Event) []*topdown.Event

Fails returns a filtered trace that contains Fail events and context to understand where the Fail occurred.

func Filter

func Filter(trace []*topdown.Event, filter func(*topdown.Event) bool) (result []*topdown.Event)

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

func Full(trace []*topdown.Event) (result []*topdown.Event)

Full returns a filtered trace that contains everything except Uninfy ops

func Notes

func Notes(trace []*topdown.Event) []*topdown.Event

Notes returns a filtered trace that contains Note events and context to understand where the Note was emitted.

Source Files

lineage.go

Version
v0.47.4
Published
Dec 21, 2022
Platform
js/wasm
Imports
1 packages
Last checked
32 minutes ago

Tools for package owners.