Documentation ¶
Index ¶
- func BuildKindSet(logger logr.Logger, policies ...kyvernov1.PolicyInterface) sets.Set[string]
- func CanBackgroundProcess(p kyvernov1.PolicyInterface) bool
- 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 GenerateEvents ¶ added in v1.9.0
func GenerateEvents(logger logr.Logger, eventGen event.Interface, config config.Configuration, results ...*response.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 *response.EngineResponse Error error }
type Scanner ¶
type Scanner interface {
ScanResource(context.Context, unstructured.Unstructured, map[string]string, ...kyvernov1.PolicyInterface) map[kyvernov1.PolicyInterface]ScanResult
}
func NewScanner ¶
func NewScanner( logger logr.Logger, client dclient.Interface, rclient registryclient.Client, informerCacheResolvers resolvers.ConfigmapResolver, polexLister engine.PolicyExceptionLister, config config.Configuration, excludeGroupRole ...string, ) Scanner
Click to show internal directories.
Click to hide internal directories.