events

package
v5.1.2-bit Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 11 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 {
	Events []eventsv1.Event
	// contains filtered or unexported fields
}

Recorder implements the interface for the deprecated v1.Event API. The zero value discards events. - https://pkg.go.dev/k8s.io/client-go@v0.24.1/tools/record#EventRecorder

func NewRecorder

func NewRecorder(t testing.TB, scheme *runtime.Scheme) *Recorder

NewRecorder returns an EventRecorder for the deprecated v1.Event API.

func (*Recorder) AnnotatedEventf

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

func (*Recorder) Event

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

func (*Recorder) Eventf

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

Jump to

Keyboard shortcuts

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