inspect

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingSource added in v0.52.0

type BindingSource interface {
	GetAllRows() []*index.Binding
}

BindingSource provides access to index bindings for inspection. It exists here to prevent a circular dependency between `inspect`, `ruletable` and `storage`.

type Policy

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

func Policies

func Policies() *Policy

func (*Policy) Inspect

func (pol *Policy) Inspect(p *policyv1.Policy) error

Inspect inspects the given policy and caches the inspection related information internally.

func (*Policy) Results

func (pol *Policy) Results(ctx context.Context, loadPolicy loadPolicyFn) (map[string]*responsev1.InspectPoliciesResponse_Result, error)

Results returns the final inspection results.

type PolicySet

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

func PolicySets

func PolicySets() *PolicySet

func (*PolicySet) Inspect

func (ps *PolicySet) Inspect(pset *runtimev1.RunnablePolicySet) error

Inspect inspects the given policy set and caches the inspection related information internally.

func (*PolicySet) Results

Results returns the final inspection results.

type RuleTable added in v0.48.0

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

RuleTable is not safe for concurrent use: the internal caches are unsynchronized.

func RuleTables added in v0.48.0

func RuleTables(src BindingSource) *RuleTable

func (*RuleTable) Inspect added in v0.48.0

func (rt *RuleTable) Inspect() error

Inspect inspects the given rule table and caches the inspection related information internally.

func (*RuleTable) Results added in v0.48.0

Results returns the final inspection results.

Jump to

Keyboard shortcuts

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