Documentation
¶
Index ¶
- type LoggingRecorder
- func (r *LoggingRecorder) ComponentName() string
- func (r *LoggingRecorder) Event(reason, message string)
- func (r *LoggingRecorder) Eventf(reason, messageFmt string, args ...interface{})
- func (r *LoggingRecorder) ForComponent(componentName string) events.Recorder
- func (r *LoggingRecorder) Shutdown()
- func (r *LoggingRecorder) Warning(reason, message string)
- func (r *LoggingRecorder) Warningf(reason, messageFmt string, args ...interface{})
- func (r *LoggingRecorder) WithComponentSuffix(componentNameSuffix string) events.Recorder
- func (r *LoggingRecorder) WithContext(_ context.Context) events.Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingRecorder ¶
type LoggingRecorder struct{}
LoggingRecorder is a simple noop recorder that implements the library-go events.Recorder interface, but just logs to stdout
func (*LoggingRecorder) ComponentName ¶
func (r *LoggingRecorder) ComponentName() string
func (*LoggingRecorder) Event ¶
func (r *LoggingRecorder) Event(reason, message string)
func (*LoggingRecorder) Eventf ¶
func (r *LoggingRecorder) Eventf(reason, messageFmt string, args ...interface{})
func (*LoggingRecorder) ForComponent ¶
func (r *LoggingRecorder) ForComponent(componentName string) events.Recorder
func (*LoggingRecorder) Shutdown ¶
func (r *LoggingRecorder) Shutdown()
func (*LoggingRecorder) Warning ¶
func (r *LoggingRecorder) Warning(reason, message string)
func (*LoggingRecorder) Warningf ¶
func (r *LoggingRecorder) Warningf(reason, messageFmt string, args ...interface{})
func (*LoggingRecorder) WithComponentSuffix ¶
func (r *LoggingRecorder) WithComponentSuffix(componentNameSuffix string) events.Recorder
func (*LoggingRecorder) WithContext ¶
func (r *LoggingRecorder) WithContext(_ context.Context) events.Recorder
Click to show internal directories.
Click to hide internal directories.