Documentation ¶
Overview ¶
Package event records Kubernetes events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRecorder ¶
type APIRecorder struct {
// contains filtered or unexported fields
}
An APIRecorder records Kubernetes events to an API server.
func NewAPIRecorder ¶
func NewAPIRecorder(r record.EventRecorder) *APIRecorder
NewAPIRecorder returns an APIRecorder that records Kubernetes events to an APIServer using the supplied EventRecorder.
func (*APIRecorder) Event ¶
func (r *APIRecorder) Event(obj runtime.Object, e Event)
Event records the supplied event.
func (*APIRecorder) WithAnnotations ¶
func (r *APIRecorder) WithAnnotations(keysAndValues ...string) Recorder
WithAnnotations returns a new *APIRecorder that includes the supplied annotations with all recorded events.
type Event ¶
An Event relating to a Network device driver resource.
type NopRecorder ¶
type NopRecorder struct{}
A NopRecorder does nothing.
func NewNopRecorder ¶
func NewNopRecorder() *NopRecorder
NewNopRecorder returns a Recorder that does nothing.
func (*NopRecorder) Event ¶
func (r *NopRecorder) Event(_ runtime.Object, _ Event)
Event does nothing.
func (*NopRecorder) WithAnnotations ¶
func (r *NopRecorder) WithAnnotations(_ ...string) Recorder
WithAnnotations does nothing.
Click to show internal directories.
Click to hide internal directories.