cassdcutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CassManager

type CassManager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(client client.Client) *CassManager

func (*CassManager) CassandraDatacenter

func (c *CassManager) CassandraDatacenter(ctx context.Context, name, namespace string) (*cassdcapi.CassandraDatacenter, error)

CassandraDatacenter fetches the CassandraDatacenter by its name and namespace

func (*CassManager) CassandraDatacenterPods

func (c *CassManager) CassandraDatacenterPods(ctx context.Context, cassdc *cassdcapi.CassandraDatacenter) (*corev1.PodList, error)

CassandraDatacenterPods returns the pods of the CassandraDatacenter

func (*CassManager) ModifyStoppedState

func (c *CassManager) ModifyStoppedState(ctx context.Context, name, namespace string, stop, wait bool) error

ModifyStoppedState either stops or starts the cluster and does nothing if the state is already as requested

func (*CassManager) RefreshStatus

func (*CassManager) RestartDc

func (c *CassManager) RestartDc(ctx context.Context, name, namespace, rack string, wait bool) error

Jump to

Keyboard shortcuts

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