Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventReasonNodeIpUpdate = "NodeIpUpdate" EventReasonNodePortUpdate = "NodePortUpdate" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventRecorder ¶
type EventRecorder struct { Client client.Client Logger *zap.SugaredLogger Scheme *runtime.Scheme Version string Cluster string Tenant string Slice string Namespace string Component string }
func (*EventRecorder) Copy ¶
func (er *EventRecorder) Copy() *EventRecorder
func (*EventRecorder) RecordEvent ¶
func (er *EventRecorder) RecordEvent(ctx context.Context, e *Event) error
RecordEvent raises a new event with the given fields TODO: events caching and aggregation
func (*EventRecorder) WithNamespace ¶
func (er *EventRecorder) WithNamespace(ns string) *EventRecorder
WithNamespace returns a new recorder with added namespace name If namespace is not provided, recorder will use the object namespace
func (*EventRecorder) WithSlice ¶
func (er *EventRecorder) WithSlice(slice string) *EventRecorder
WithSlice returns a new recorder with added slice name for raising events
Click to show internal directories.
Click to hide internal directories.