Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v1.1.0
type Builder interface {
// contains filtered or unexported methods
}
Builder builds Policy Violation struct this is base type of namespaced and cluster policy violation
type Generator ¶ added in v1.0.0
type Generator struct {
// contains filtered or unexported fields
}
Generator creates PV
func NewPVGenerator ¶ added in v1.0.0
func NewPVGenerator(client *kyvernoclient.Clientset, dclient *dclient.Client, pvInformer kyvernoinformer.ClusterPolicyViolationInformer, nspvInformer kyvernoinformer.PolicyViolationInformer, policyStatus policystatus.Listener, log logr.Logger) *Generator
NewPVGenerator returns a new instance of policy violation generator
type GeneratorInterface ¶ added in v1.0.0
type GeneratorInterface interface {
Add(infos ...Info)
}
GeneratorInterface provides API to create PVs
type Info ¶ added in v1.0.0
type Info struct { PolicyName string Resource unstructured.Unstructured Rules []kyverno.ViolatedRule FromSync bool }
Info is a request to create PV
func GeneratePVsFromEngineResponse ¶ added in v1.1.0
func GeneratePVsFromEngineResponse(ers []response.EngineResponse, log logr.Logger) (pvInfos []Info)
GeneratePVsFromEngineResponse generate Violations from engine responses
Click to show internal directories.
Click to hide internal directories.