Documentation ¶
Index ¶
- func NewEventRecorder(t *testing.T, r events.Recorder) events.Recorder
- func NewTestingEventRecorder(t *testing.T) events.Recorder
- type EventRecorder
- func (e *EventRecorder) ComponentName() string
- func (e *EventRecorder) Event(reason, message string)
- func (e *EventRecorder) Eventf(reason, messageFmt string, args ...interface{})
- func (e *EventRecorder) ForComponent(componentName string) events.Recorder
- func (e *EventRecorder) Shutdown()
- func (e *EventRecorder) Warning(reason, message string)
- func (e *EventRecorder) Warningf(reason, messageFmt string, args ...interface{})
- func (e *EventRecorder) WithComponentSuffix(componentNameSuffix string) events.Recorder
- func (e *EventRecorder) WithContext(ctx context.Context) events.Recorder
- type TestingEventRecorder
- func (r *TestingEventRecorder) ComponentName() string
- func (r *TestingEventRecorder) Event(reason, message string)
- func (r *TestingEventRecorder) Eventf(reason, messageFmt string, args ...interface{})
- func (r *TestingEventRecorder) ForComponent(c string) events.Recorder
- func (r *TestingEventRecorder) Shutdown()
- func (r *TestingEventRecorder) Warning(reason, message string)
- func (r *TestingEventRecorder) Warningf(reason, messageFmt string, args ...interface{})
- func (r *TestingEventRecorder) WithComponentSuffix(suffix string) events.Recorder
- func (r *TestingEventRecorder) WithContext(ctx context.Context) events.Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Shutdown ¶
func (e *EventRecorder) Shutdown()
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
func (*EventRecorder) WithContext ¶
func (e *EventRecorder) WithContext(ctx context.Context) 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) Shutdown ¶
func (r *TestingEventRecorder) Shutdown()
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
func (*TestingEventRecorder) WithContext ¶
func (r *TestingEventRecorder) WithContext(ctx context.Context) events.Recorder
Click to show internal directories.
Click to hide internal directories.