Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyProcessor ¶
type PolicyProcessor struct { Store *store.Store Policies []kyvernov1.PolicyInterface Resource unstructured.Unstructured PolicyExceptions []*kyvernov2beta1.PolicyException 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 }
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) IncrementError ¶ added in v1.12.0
func (rc *ResultCounts) IncrementError(inc 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 Bindings []v1alpha1.ValidatingAdmissionPolicyBinding Resource *unstructured.Unstructured NamespaceSelectorMap map[string]map[string]string PolicyReport bool Rc *ResultCounts Client dclient.Interface }
func (*ValidatingAdmissionPolicyProcessor) ApplyPolicyOnResource ¶
func (p *ValidatingAdmissionPolicyProcessor) ApplyPolicyOnResource() ([]engineapi.EngineResponse, error)
Click to show internal directories.
Click to hide internal directories.