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)
Click to show internal directories.
Click to hide internal directories.