Documentation ¶
Index ¶
- func BuildKindSet(logger logr.Logger, policies ...kyvernov1.PolicyInterface) sets.Set[string]
- func CanBackgroundProcess(p kyvernov1.PolicyInterface) bool
- func FetchClusterPolicies(cpolLister kyvernov1listers.ClusterPolicyLister) ([]kyvernov1.PolicyInterface, error)
- func FetchPolicies(polLister kyvernov1listers.PolicyLister, namespace string) ([]kyvernov1.PolicyInterface, error)
- func FetchValidatingAdmissionPolicies(vapLister admissionregistrationv1alpha1listers.ValidatingAdmissionPolicyLister) ([]admissionregistrationv1alpha1.ValidatingAdmissionPolicy, error)
- func GenerateEvents(logger logr.Logger, eventGen event.Interface, config config.Configuration, ...)
- func RemoveNonBackgroundPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
- func RemoveNonValidationPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
- func ReportsAreIdentical(before, after kyvernov1alpha2.ReportInterface) bool
- type ScanResult
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKindSet ¶
func CanBackgroundProcess ¶
func CanBackgroundProcess(p kyvernov1.PolicyInterface) bool
func FetchClusterPolicies ¶ added in v1.10.5
func FetchClusterPolicies(cpolLister kyvernov1listers.ClusterPolicyLister) ([]kyvernov1.PolicyInterface, error)
func FetchPolicies ¶ added in v1.10.5
func FetchPolicies(polLister kyvernov1listers.PolicyLister, namespace string) ([]kyvernov1.PolicyInterface, error)
func FetchValidatingAdmissionPolicies ¶ added in v1.10.5
func FetchValidatingAdmissionPolicies(vapLister admissionregistrationv1alpha1listers.ValidatingAdmissionPolicyLister) ([]admissionregistrationv1alpha1.ValidatingAdmissionPolicy, error)
func GenerateEvents ¶ added in v1.9.0
func GenerateEvents(logger logr.Logger, eventGen event.Interface, config config.Configuration, results ...engineapi.EngineResponse)
func RemoveNonBackgroundPolicies ¶
func RemoveNonBackgroundPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
func RemoveNonValidationPolicies ¶ added in v1.8.1
func RemoveNonValidationPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
func ReportsAreIdentical ¶ added in v1.8.3
func ReportsAreIdentical(before, after kyvernov1alpha2.ReportInterface) bool
Types ¶
type ScanResult ¶
type ScanResult struct { EngineResponse *engineapi.EngineResponse Error error }
type Scanner ¶
type Scanner interface {
ScanResource(context.Context, unstructured.Unstructured, map[string]string, ...engineapi.GenericPolicy) map[*engineapi.GenericPolicy]ScanResult
}
Click to show internal directories.
Click to hide internal directories.