Documentation ¶
Index ¶
- Constants
- type Announcer
- func (a Announcer) A() Announcer
- func (a Announcer) E() Announcer
- func (a Announcer) Error(format string, args ...interface{})
- func (a Announcer) F() Announcer
- func (a Announcer) FL() Announcer
- func (a Announcer) Fatal(format string, args ...interface{})
- func (a Announcer) Info(format string, args ...interface{})
- func (a Announcer) L() Announcer
- func (a Announcer) M(m ...interface{}) Announcer
- func (a Announcer) P()
- func (a Announcer) S() Announcer
- func (a Announcer) Silence() Announcer
- func (a Announcer) V(level log.Level) Announcer
- func (a Announcer) Warning(format string, args ...interface{})
- func (a Announcer) WithAction(cr api.ICustomResource) Announcer
- func (a Announcer) WithActions(cr api.ICustomResource) Announcer
- func (a Announcer) WithError(cr api.ICustomResource) Announcer
- func (a Announcer) WithEvent(cr api.ICustomResource, action string, reason string) Announcer
- type EventEmitter
- func (c *EventEmitter) Event(level string, obj meta.Object, action string, reason string, message string)
- func (c *EventEmitter) EventError(obj meta.Object, action string, reason string, message string)
- func (c *EventEmitter) EventInfo(obj meta.Object, action string, reason string, message string)
- func (c *EventEmitter) EventWarning(obj meta.Object, action string, reason string, message string)
Constants ¶
View Source
const ( // Event action describes what action was taken EventActionReconcile = "Reconcile" EventActionCreate = "Create" EventActionUpdate = "Update" EventActionDelete = "Delete" EventActionProgress = "Progress" )
View Source
const ( // Short, machine understandable string that gives the reason for the transition into the object's current status EventReasonReconcileStarted = "ReconcileStarted" EventReasonReconcileInProgress = "ReconcileInProgress" EventReasonReconcileCompleted = "ReconcileCompleted" EventReasonReconcileFailed = "ReconcileFailed" EventReasonCreateStarted = "CreateStarted" EventReasonCreateInProgress = "CreateInProgress" EventReasonCreateCompleted = "CreateCompleted" EventReasonCreateFailed = "CreateFailed" EventReasonUpdateStarted = "UpdateStarted" EventReasonUpdateInProgress = "UpdateInProgress" EventReasonUpdateCompleted = "UpdateCompleted" EventReasonUpdateFailed = "UpdateFailed" EventReasonDeleteStarted = "DeleteStarted" EventReasonDeleteInProgress = "DeleteInProgress" EventReasonDeleteCompleted = "DeleteCompleted" EventReasonDeleteFailed = "DeleteFailed" EventReasonProgressHostsCompleted = "ProgressHostsCompleted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Announcer ¶
Announcer handler all log/event/status messages going outside of controller/worker
func NewAnnouncer ¶
func NewAnnouncer(eventEmitter interfaces.IEventEmitter, statusUpdater interfaces.IKubeCR) Announcer
NewAnnouncer creates new announcer
func (Announcer) WithAction ¶
func (a Announcer) WithAction(cr api.ICustomResource) Announcer
WithAction is used in chained calls in order to produce action into `ClickHouseInstallation.Status.Action`
func (Announcer) WithActions ¶
func (a Announcer) WithActions(cr api.ICustomResource) Announcer
WithActions is used in chained calls in order to produce action in ClickHouseInstallation.Status.Actions
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func NewEventEmitter ¶
func NewEventEmitter( kubeEvent interfaces.IKubeEvent, kind string, generateName string, component string, ) *EventEmitter
func (*EventEmitter) EventError ¶
EventError emits event Error
func (*EventEmitter) EventWarning ¶
EventWarning emits event Warning
Click to show internal directories.
Click to hide internal directories.