status

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusManager

type StatusManager struct {
	client.Client
}

func (*StatusManager) AddClusterToStatus

func (s *StatusManager) AddClusterToStatus(ctx context.Context, reaper *api.Reaper, cassdc *cassdcapi.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 *cassdcapi.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

func (s *StatusManager) SetNotReady(ctx context.Context, reaper *api.Reaper) error

Sets .status.ready to false and patch the status.

func (*StatusManager) SetReady

func (s *StatusManager) SetReady(ctx context.Context, reaper *api.Reaper) error

Sets .status.ready to true and patch the status.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL