opa: github.com/open-policy-agent/opa/topdown/lineage Index | Files

package lineage

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

Index

Package Files

lineage.go

func Fails Uses

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 Uses

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 Notes Uses

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.

Package lineage imports 1 packages (graph) and is imported by 6 packages. Updated 2020-04-07. Refresh now. Tools for package owners.