Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶ added in v1.9.0
FromContext returns the recorder from the specified context.
Types ¶
type Recorder ¶
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 ¶
func New(eventRecorder record.EventRecorder) Recorder
New returns a new instance of a Recorder.
Click to show internal directories.
Click to hide internal directories.