Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct { Recorder record.EventRecorder // contains filtered or unexported fields }
EventHandler handles the operations for events
func NewEventHandler ¶
func NewEventHandler(recorder record.EventRecorder, podName string) *EventHandler
NewEventHandler creates a new event handler that will use the specified recorder
func (*EventHandler) Normal ¶
func (e *EventHandler) Normal(object runtime.Object, reason EventReason, message string)
Normal creates a 'normal' type event
func (*EventHandler) Warning ¶
func (e *EventHandler) Warning(object runtime.Object, reason EventReason, message string)
Warning creates a 'warning' type event
type EventReason ¶
type EventReason string
EventReason is the reason why the event was create. The value appears in the 'Reason' tab of the events list
const ( EventRecorderName = "varnish" EventReasonReloadError EventReason = "ReloadError" EventReasonVCLCompilationError EventReason = "VCLCompilationError" EventReasonInvalidVCLConfigMap EventReason = "InvalidVCLConfigMap" EventReasonBackendIgnored EventReason = "BackendIgnored" )
Click to show internal directories.
Click to hide internal directories.