Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AddCluster is a kind of event which the receiver is able to handle AddCluster = "ADD_CLUSTER" // DeleteCluster is a kind of event which the receiver is able to handle DeleteCluster = "DELETE_CLUSTER" // UpdateCluster is a kind of event which the receiver is able to handle UpdateCluster = "UPDATE_CLUSTER" // GatherMetrics is a kind of event which the receiver is able to handle GatherMetrics = "GATHER_METRICS" // AddCustomConfig is a kind of event which the receiver is able to handle AddCustomConfig = "ADD_CUSTOM_CONFIG" // UpdateCustomConfig is a kind of event which the receiver is able to handle UpdateCustomConfig = "UPDATE_CUSTOM_CONFIG" // DeleteCustomConfig is a kind of event which the receiver is able to handle DeleteCustomConfig = "DELETE_CUSTOM_CONFIG" // AddService is a kind of event which the receiver is able to handle AddService = "ADD_SERVICE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterUpdate ¶
ClusterUpdate encapsulates Cassandra specs before and after the change
type ConfigMapChange ¶
ConfigMapChange encapsulates ConfigMap changes for the desired Cassandra cluster
type Event ¶
Event describes an event which can happen to a particular entity. Events have a kind (e.g. "created", "modified", "deleted"), a key which uniquely identifies the entity the event applies to, and event-specific data.
type OperatorEventReceiver ¶
type OperatorEventReceiver struct {
// contains filtered or unexported fields
}
OperatorEventReceiver implements Receiver
func (*OperatorEventReceiver) Receive ¶
func (r *OperatorEventReceiver) Receive(event *Event) error
Receive receives operator events and delegates their processing to the appropriate handler
type Receiver ¶
Receiver receives events dispatched by the operator
func NewEventReceiver ¶
func NewEventReceiver(clusterAccessor cluster.Accessor, metricsReporter metrics.ClusterMetricsReporter, eventRecorder record.EventRecorder) Receiver
NewEventReceiver creates a new OperatorEventReceiver
Click to show internal directories.
Click to hide internal directories.