processor

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyProcessor

type PolicyProcessor struct {
	Policies                  []kyvernov1.PolicyInterface
	Resource                  unstructured.Unstructured
	MutateLogPath             string
	MutateLogPathIsDir        bool
	Variables                 *variables.Variables
	UserInfo                  *kyvernov1beta1.RequestInfo
	PolicyReport              bool
	NamespaceSelectorMap      map[string]map[string]string
	Stdin                     bool
	Rc                        *ResultCounts
	PrintPatchResource        bool
	RuleToCloneSourceResource map[string]string
	Client                    dclient.Interface
	AuditWarn                 bool
	Subresources              []v1alpha1.Subresource
	Out                       io.Writer
	RegistryClient            registryclient.Client
}

func (*PolicyProcessor) ApplyPoliciesOnResource

func (p *PolicyProcessor) ApplyPoliciesOnResource() ([]engineapi.EngineResponse, error)

type ResultCounts

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

func (ResultCounts) Error

func (rc ResultCounts) Error() int

func (ResultCounts) Fail

func (rc ResultCounts) Fail() int

func (ResultCounts) Pass

func (rc ResultCounts) Pass() int

func (ResultCounts) Skip

func (rc ResultCounts) Skip() int

func (ResultCounts) Warn

func (rc ResultCounts) Warn() int

type ValidatingAdmissionPolicyProcessor

type ValidatingAdmissionPolicyProcessor struct {
	Policies     []v1alpha1.ValidatingAdmissionPolicy
	Resource     *unstructured.Unstructured
	PolicyReport bool
	Rc           *ResultCounts
}

func (*ValidatingAdmissionPolicyProcessor) ApplyPolicyOnResource

func (p *ValidatingAdmissionPolicyProcessor) ApplyPolicyOnResource() ([]engineapi.EngineResponse, error)

Jump to

Keyboard shortcuts

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