Documentation
¶
Index ¶
- type Event
- func (e *Event) Broadcaster() record.EventBroadcaster
- func (e *Event) Eventf(object runtime.Object, eventtype, reason, messageFmt string, ...)
- func (e *Event) Name() string
- func (e *Event) Recorder() record.EventRecorder
- func (e *Event) Shutdown(ctx context.Context)
- func (e *Event) Start(ctx context.Context) error
- func (e *Event) Started() bool
- type NoopRecorder
- type Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func NewEvent ¶
func NewEvent(kube *kubeclient.Kubeclient) *Event
func (*Event) Broadcaster ¶
func (e *Event) Broadcaster() record.EventBroadcaster
func (*Event) Eventf ¶
func (e *Event) Eventf(object runtime.Object, eventtype, reason, messageFmt string, args ...interface{})
Eventf - track in-flight events
func (*Event) Recorder ¶
func (e *Event) Recorder() record.EventRecorder
type NoopRecorder ¶ added in v0.4.8
type NoopRecorder struct{}
NoopRecorder discards all events. Used in ork simulate.
type Recorder ¶ added in v0.4.8
type Recorder interface {
Eventf(obj runtime.Object, eventType, reason, messageFmt string, args ...interface{})
}
Recorder is the interface for emitting Kubernetes events. *Event implements this for real clusters. *NoopRecorder implements it for simulation — discards all events.
Click to show internal directories.
Click to hide internal directories.