common

package
v0.9.0-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 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 CommandHandler

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

func NewCommandHandler

func NewCommandHandler(instance *kvrocksv1alpha1.KVRocks, k8s *k8s.Client, kvrocks *kvrocks.Client, password string) *CommandHandler

func (*CommandHandler) ChangePassword

func (handler *CommandHandler) ChangePassword(password string)

func (*CommandHandler) EnsureConfig

func (h *CommandHandler) EnsureConfig(nodes []*kvrocks.Node) error

func (*CommandHandler) EnsureSentinel

func (h *CommandHandler) EnsureSentinel(masterIP string, index ...int) (bool, error)

func (*CommandHandler) EnsureTopo

func (h *CommandHandler) EnsureTopo() (bool, error)

func (*CommandHandler) GetOrCreateSentinel

func (h *CommandHandler) GetOrCreateSentinel() (*corev1.PodList, *string, bool, error)

func (*CommandHandler) GetSentinel

func (h *CommandHandler) GetSentinel(key types.NamespacedName) (*corev1.PodList, *string, bool, error)

func (*CommandHandler) RemoveMonitor

func (h *CommandHandler) RemoveMonitor(masterName string, index ...int) (bool, error)

func (*CommandHandler) ResizeStatefulSet

func (h *CommandHandler) ResizeStatefulSet(stsNodes []*kvrocks.Node, index ...int) (bool, error)

Jump to

Keyboard shortcuts

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