events

package
v0.0.0-...-54c5aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL