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) *Generator
NewEventGenerator to generate a new event controller
type Info ¶
Info defines the event details
func NewEvent ¶
func NewEvent(rkind string, rnamespace string, rname string, reason Reason, message MsgKey, args ...interface{}) *Info
TODO: check if we need this ? NewEvent returns a new event
func NewEventNew ¶ added in v0.9.0
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.