record

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Eventtype string
	Reason    string
	Message   string
}

type Recorder

type Recorder struct {
	Events chan Event
}

func NewRecorder

func NewRecorder(bufferSize int) *Recorder

NewFakeRecorder creates new fake event recorder with event channel with buffer of given size.

func (*Recorder) AnnotatedEventf added in v0.5.0

func (e *Recorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype, reason, messageFmt string, args ...interface{})

func (*Recorder) Event

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

func (*Recorder) Eventf

func (e *Recorder) Eventf(regarding runtime.Object, related runtime.Object, eventtype, reason, action, note string, args ...interface{})

func (*Recorder) PastEventf

func (e *Recorder) PastEventf(object runtime.Object, timestamp metav1.Time, eventtype, reason, messageFmt string, args ...interface{})

Jump to

Keyboard shortcuts

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