events

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	k8sevents.EventRecorder
}

Recorder wraps events.EventRecorder with convenience methods matching the old record.EventRecorder API for easy migration.

func NewRecorder

func NewRecorder(er k8sevents.EventRecorder) *Recorder

NewRecorder wraps an events.EventRecorder.

func (*Recorder) Event

func (r *Recorder) Event(object runtime.Object, eventtype, reason, message string)

Event emits an event for the given object.

func (*Recorder) Eventf

func (r *Recorder) Eventf(object runtime.Object, eventtype, reason, messageFmt string, args ...interface{})

Eventf emits a formatted event for the given object.

Jump to

Keyboard shortcuts

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