Documentation
¶
Index ¶
- type OwnedEventRecorder
- func (in *OwnedEventRecorder) AnnotatedEventf(annotations map[string]string, eventType, reason, messageFmt string, ...)
- func (in *OwnedEventRecorder) AnnotatedInfof(annotations map[string]string, reason, messageFmt string, args ...interface{})
- func (in *OwnedEventRecorder) AnnotatedWarnf(annotations map[string]string, reason, messageFmt string, args ...interface{})
- func (in *OwnedEventRecorder) Event(eventType, reason, message string)
- func (in *OwnedEventRecorder) Eventf(eventType, reason, messageFmt string, args ...interface{})
- func (in *OwnedEventRecorder) Info(reason, message string)
- func (in *OwnedEventRecorder) Infof(reason, messageFmt string, args ...interface{})
- func (in *OwnedEventRecorder) Warn(reason, message string)
- func (in *OwnedEventRecorder) Warnf(reason, messageFmt string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OwnedEventRecorder ¶
type OwnedEventRecorder struct {
// contains filtered or unexported fields
}
OwnedEventRecorder is a wrapper around an EventRecorder that keeps a reference to the object associated with the events
func NewOwnedEventRecorder ¶
func NewOwnedEventRecorder(owner runtime.Object, recorder record.EventRecorder) OwnedEventRecorder
NewOwnedEventRecorder creates a new OwnedEventRecorder
func (*OwnedEventRecorder) AnnotatedEventf ¶
func (in *OwnedEventRecorder) AnnotatedEventf(annotations map[string]string, eventType, reason, messageFmt string, args ...interface{})
AnnotatedEventf is just like eventf, but with annotations attached
func (*OwnedEventRecorder) AnnotatedInfof ¶
func (in *OwnedEventRecorder) AnnotatedInfof(annotations map[string]string, reason, messageFmt string, args ...interface{})
AnnotatedInfof is just like AnnotatedEventf, and sends a Normal event.
func (*OwnedEventRecorder) AnnotatedWarnf ¶
func (in *OwnedEventRecorder) AnnotatedWarnf(annotations map[string]string, reason, messageFmt string, args ...interface{})
AnnotatedWarnf is just like AnnotatedEventf, and sends a Warning event.
func (*OwnedEventRecorder) Event ¶
func (in *OwnedEventRecorder) Event(eventType, reason, message string)
Event constructs an event from the given information and puts it in the queue for sending. 'eventType' of this event, and can be one of Normal, Warning. New types could be added in future 'reason' is the reason this event is generated. 'reason' should be short and unique; it should be in UpperCamelCase format (starting with a capital letter). "reason" will be used to automate handling of events, so imagine people writing switch statements to handle them. You want to make that easy. 'message' is intended to be human-readable.
The resulting event will be created in the same namespace as the reference object.
func (*OwnedEventRecorder) Eventf ¶
func (in *OwnedEventRecorder) Eventf(eventType, reason, messageFmt string, args ...interface{})
Eventf is just like Event, but with Sprintf for the message field.
func (*OwnedEventRecorder) Info ¶
func (in *OwnedEventRecorder) Info(reason, message string)
Info is just like Event, and sends a Normal event.
func (*OwnedEventRecorder) Infof ¶
func (in *OwnedEventRecorder) Infof(reason, messageFmt string, args ...interface{})
Infof is just like Eventf, and sends a Normal event.
func (*OwnedEventRecorder) Warn ¶
func (in *OwnedEventRecorder) Warn(reason, message string)
Warn is just like Event, and sends a Warning event.
func (*OwnedEventRecorder) Warnf ¶
func (in *OwnedEventRecorder) Warnf(reason, messageFmt string, args ...interface{})
Warnf is just like Eventf, and sends a Warning event.