eventstesting

package
v0.0.0-...-73e1fb8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventRecorder

func NewEventRecorder(t *testing.T, r events.Recorder) events.Recorder

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 EventRecorder

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

func (*EventRecorder) ComponentName

func (e *EventRecorder) ComponentName() string

func (*EventRecorder) Event

func (e *EventRecorder) Event(reason, message string)

func (*EventRecorder) Eventf

func (e *EventRecorder) Eventf(reason, messageFmt string, args ...interface{})

func (*EventRecorder) ForComponent

func (e *EventRecorder) ForComponent(componentName string) events.Recorder

func (*EventRecorder) Warning

func (e *EventRecorder) Warning(reason, message string)

func (*EventRecorder) Warningf

func (e *EventRecorder) Warningf(reason, messageFmt string, args ...interface{})

func (*EventRecorder) WithComponentSuffix

func (e *EventRecorder) WithComponentSuffix(componentNameSuffix string) events.Recorder

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