mock

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventRecorder

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

func (*EventRecorder) AnnotatedEventf

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

func (*EventRecorder) Event

func (m *EventRecorder) Event(object runtime.Object, eventtype, reason, message string)

func (*EventRecorder) Eventf

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

func (*EventRecorder) GetEvent

func (m *EventRecorder) GetEvent(obj runtime.Object, eventtype string) []RecordedEvent

GetEvents returns all recorded events for the given object and event type

func (*EventRecorder) GetEvents

func (m *EventRecorder) GetEvents(obj runtime.Object) []RecordedEvent

GetEvents returns all recorded events for the given object

func (*EventRecorder) PastEventf

func (m *EventRecorder) PastEventf(object runtime.Object, timestamp, eventtype, reason, messageFmt string, args ...interface{})

type RecordedEvent

type RecordedEvent struct {
	Object    runtime.Object
	EventType string
	Reason    string
	Message   string
}

RecordedEvent stores information about an event for test verification

Jump to

Keyboard shortcuts

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