mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: GPL-3.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 Event

type Event struct {
	Timestamp   metav1.Time
	Annotations map[string]string
	Object      runtime.Object
	Type        string
	Reason      string
	Message     string
}

Event which occurs during an operators reconcile loop.

type Mock

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

Mock which will store events.

func New

func New() *Mock

New event mock.

func (*Mock) AnnotatedEventf

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

AnnotatedEventf satisfies the record.EventRecorder interface.

func (*Mock) Event

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

Event satisfies the record.EventRecorder interface.

func (*Mock) Eventf

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

Eventf satisfies the record.EventRecorder interface.

func (*Mock) List

func (m *Mock) List() []string

List all events which have been received.

func (*Mock) PastEventf

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

PastEventf satisfies the record.EventRecorder interface.

Jump to

Keyboard shortcuts

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