Documentation ¶
Index ¶
Constants ¶
This section is empty.
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, pInformer kyvernoinformer.ClusterPolicyInformer, 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
type MsgKey ¶
type MsgKey int
MsgKey is an identified to determine the preset message formats
Click to show internal directories.
Click to hide internal directories.