events

package
v0.0.0-...-a719f44 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: UPL-1.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 OwnedEventRecorder

type OwnedEventRecorder struct {
	// contains filtered or unexported fields
}

OwnedEventRecorder is a wrapper around an EventRecorder that keeps a reference to the object associated with the events

func NewOwnedEventRecorder

func NewOwnedEventRecorder(owner runtime.Object, recorder record.EventRecorder) OwnedEventRecorder

NewOwnedEventRecorder creates a new OwnedEventRecorder

func (*OwnedEventRecorder) AnnotatedEventf

func (in *OwnedEventRecorder) AnnotatedEventf(annotations map[string]string, eventType, reason, messageFmt string, args ...interface{})

AnnotatedEventf is just like eventf, but with annotations attached

func (*OwnedEventRecorder) AnnotatedInfof

func (in *OwnedEventRecorder) AnnotatedInfof(annotations map[string]string, reason, messageFmt string, args ...interface{})

AnnotatedInfof is just like AnnotatedEventf, and sends a Normal event.

func (*OwnedEventRecorder) AnnotatedWarnf

func (in *OwnedEventRecorder) AnnotatedWarnf(annotations map[string]string, reason, messageFmt string, args ...interface{})

AnnotatedWarnf is just like AnnotatedEventf, and sends a Warning event.

func (*OwnedEventRecorder) Event

func (in *OwnedEventRecorder) Event(eventType, reason, message string)

Event constructs an event from the given information and puts it in the queue for sending. 'eventType' of this event, and can be one of Normal, Warning. New types could be added in future 'reason' is the reason this event is generated. 'reason' should be short and unique; it should be in UpperCamelCase format (starting with a capital letter). "reason" will be used to automate handling of events, so imagine people writing switch statements to handle them. You want to make that easy. 'message' is intended to be human-readable.

The resulting event will be created in the same namespace as the reference object.

func (*OwnedEventRecorder) Eventf

func (in *OwnedEventRecorder) Eventf(eventType, reason, messageFmt string, args ...interface{})

Eventf is just like Event, but with Sprintf for the message field.

func (*OwnedEventRecorder) Info

func (in *OwnedEventRecorder) Info(reason, message string)

Info is just like Event, and sends a Normal event.

func (*OwnedEventRecorder) Infof

func (in *OwnedEventRecorder) Infof(reason, messageFmt string, args ...interface{})

Infof is just like Eventf, and sends a Normal event.

func (*OwnedEventRecorder) Warn

func (in *OwnedEventRecorder) Warn(reason, message string)

Warn is just like Event, and sends a Warning event.

func (*OwnedEventRecorder) Warnf

func (in *OwnedEventRecorder) Warnf(reason, messageFmt string, args ...interface{})

Warnf is just like Eventf, and sends a Warning event.

Jump to

Keyboard shortcuts

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