Documentation ¶
Overview ¶
The events represented by this package serve *two* purposes. Internally they are used to inform different parts of the operator what previous parts have done, and externally they are published as Kubernetes events.
Index ¶
Constants ¶
const ( K8sEventTypeNormal = "Normal" K8sEventTypeWarning = "Warning" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupFailed ¶
BackupFailed is an event generated when the backup has failed.
func (*BackupFailed) Record ¶
func (o *BackupFailed) Record(recorder record.EventRecorder)
type BackupSucceeded ¶
BackupSucceeded is an event generated when the backup has succeeded.
func (*BackupSucceeded) Record ¶
func (o *BackupSucceeded) Record(recorder record.EventRecorder)
type MemberAddedEvent ¶
type MemberAddedEvent struct { Object runtime.Object Member *etcdclient.Member Name string }
func (*MemberAddedEvent) Record ¶
func (s *MemberAddedEvent) Record(recorder record.EventRecorder)
type MemberRemovedEvent ¶
type MemberRemovedEvent struct { Object runtime.Object Member *etcdclient.Member Name string }
func (*MemberRemovedEvent) Record ¶
func (s *MemberRemovedEvent) Record(recorder record.EventRecorder)
type ObjectCreatedEvent ¶
ObjectCreatedEvent is recorded each time the controller successfully creates a new API resource. It performs runtime inspection of the supplied object in order to log kind, group and name of the object.
func (*ObjectCreatedEvent) Record ¶
func (o *ObjectCreatedEvent) Record(recorder record.EventRecorder)
type PeerCreatedEvent ¶
func (*PeerCreatedEvent) Record ¶
func (s *PeerCreatedEvent) Record(recorder record.EventRecorder)
type PeerRemovedEvent ¶
func (*PeerRemovedEvent) Record ¶
func (s *PeerRemovedEvent) Record(recorder record.EventRecorder)
type ReconcilerEvent ¶
type ReconcilerEvent interface { // Record this into an event recorder as a Kubernetes API event Record(recorder record.EventRecorder) }
ReconcilerEvent represents the action of the operator having actually done anything. Any meaningful change should result in one of these.
type ServiceCreatedEvent ¶
func (*ServiceCreatedEvent) Record ¶
func (s *ServiceCreatedEvent) Record(recorder record.EventRecorder)