Documentation ¶
Index ¶
- type StatusManager
- func (s *StatusManager) AddClusterToStatus(ctx context.Context, reaper *api.Reaper, ...) error
- func (s *StatusManager) RemoveClusterFromStatus(ctx context.Context, reaper *api.Reaper, ...) error
- func (s *StatusManager) SetNotReady(ctx context.Context, reaper *api.Reaper) error
- func (s *StatusManager) SetReady(ctx context.Context, reaper *api.Reaper) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusManager ¶
func (*StatusManager) AddClusterToStatus ¶
func (s *StatusManager) AddClusterToStatus(ctx context.Context, reaper *api.Reaper, cassdc *cassdcv1beta1.CassandraDatacenter) error
Adds the cluster to .status.clusters if it not already in the list. The status is patch updated if the list is modified.
func (*StatusManager) RemoveClusterFromStatus ¶
func (s *StatusManager) RemoveClusterFromStatus(ctx context.Context, reaper *api.Reaper, cassdc *cassdcv1beta1.CassandraDatacenter) error
Removes the cluster from .status.clusters if it is in the list. The status is patch updated if the list is modified.
func (*StatusManager) SetNotReady ¶
Sets .status.ready to false and patch the status.
Click to show internal directories.
Click to hide internal directories.