Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶ added in v0.5.4
type Recorder interface { // EmitEvent records a Success or Failure depending on whether or not an error occurred. EmitEvent(object runtime.Object, opName string, err error, ignoreSuccess bool) // Event constructs an event from the given information and puts it in the queue for sending. Event(object runtime.Object, reason, message string) // Eventf is just like Event, but with Sprintf for the message field. Eventf(object runtime.Object, reason, message string, args ...interface{}) // Warn constructs a warning event from the given information and puts it in the queue for sending. Warn(object runtime.Object, reason, message string) // Warnf is just like Event, but with Sprintf for the message field. Warnf(object runtime.Object, reason, message string, args ...interface{}) }
Recorder knows how to record events on behalf of a source.
func New ¶ added in v0.5.4
func New(eventRecorder record.EventRecorder) Recorder
New returns a new instance of a Recorder.
Click to show internal directories.
Click to hide internal directories.