eventstesting

package
v0.0.0-...-8feeb22 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestingEventRecorder

func NewTestingEventRecorder(t *testing.T) events.Recorder

NewTestingEventRecorder provides event recorder that will log all recorded events to the error log.

Types

type TestingEventRecorder

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

func (*TestingEventRecorder) ComponentName

func (r *TestingEventRecorder) ComponentName() string

func (*TestingEventRecorder) Event

func (r *TestingEventRecorder) Event(reason, message string)

func (*TestingEventRecorder) Eventf

func (r *TestingEventRecorder) Eventf(reason, messageFmt string, args ...interface{})

func (*TestingEventRecorder) ForComponent

func (r *TestingEventRecorder) ForComponent(c string) events.Recorder

func (*TestingEventRecorder) Warning

func (r *TestingEventRecorder) Warning(reason, message string)

func (*TestingEventRecorder) Warningf

func (r *TestingEventRecorder) Warningf(reason, messageFmt string, args ...interface{})

func (*TestingEventRecorder) WithComponentSuffix

func (r *TestingEventRecorder) WithComponentSuffix(suffix string) events.Recorder

Jump to

Keyboard shortcuts

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