Documentation ¶
Index ¶
Constants ¶
View Source
const ( FPolicyApply = iota FResourcePolicyApply SPolicyApply )
Message id for pre-defined messages
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator generate events
func NewEventGenerator ¶ added in v0.8.0
func NewEventGenerator(client *client.Client, cpInformer kyvernoinformer.ClusterPolicyInformer, pInformer kyvernoinformer.PolicyInformer, resCache resourcecache.ResourceCache, log logr.Logger) *Generator
NewEventGenerator to generate a new event controller
type Info ¶
type Info struct { Kind string Name string Namespace string Reason string Message string Source Source }
Info defines the event details
type Interface ¶ added in v0.8.0
type Interface interface {
Add(infoList ...Info)
}
Interface to generate event
Click to show internal directories.
Click to hide internal directories.