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
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 (*Policy) Inspect ¶
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 ¶
func (ps *PolicySet) Results() (map[string]*responsev1.InspectPoliciesResponse_Result, error)
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
Inspect inspects the given rule table and caches the inspection related information internally.
func (*RuleTable) Results ¶ added in v0.48.0
func (rt *RuleTable) Results() map[string]*responsev1.InspectPoliciesResponse_Result
Results returns the final inspection results.