inferattributes

package
v0.24.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateResource

func DecorateResource(resource models.ResourceState, term *ast.Term)

DecorateResource is a helper that sets up DecorateTerm in a way that we will be able to tell which resource the values belonged to.

func DecorateTerm

func DecorateTerm(prefix []interface{}, top *ast.Term) error

DecorateValue stores meta-information about where the values originated from inside the Location attribute of the corresponding terms. This will allow us to deduce which terms were used in coverTerm.

Types

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer() *Tracer

func (*Tracer) Config

func (t *Tracer) Config() topdown.TraceConfig

func (*Tracer) Enabled

func (t *Tracer) Enabled() bool

func (*Tracer) InferAttributes

func (tracer *Tracer) InferAttributes(ruleResult []models.RuleResult)

InferAttributes decorates the given rule results with any attributes that have been accessed; using the resource identifiers to correlate them.

func (*Tracer) TraceEvent

func (t *Tracer) TraceEvent(event topdown.Event)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL