nodectl

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterView

type ClusterView struct {
	LiveNodes        []string `json:"LiveNodes"`
	LeavingNodes     []string `json:"LeavingNodes"`
	JoiningNodes     []string `json:"JoiningNodes"`
	UnreachableNodes []string `json:"UnreachableNodes"`
	MovingNodes      []string `json:"MovingNodes"`
}

type Nodectl

type Nodectl interface {
	Decommission(ctx context.Context, nodeIP string) error
	Assassinate(ctx context.Context, execNodeIP, assassinateNodeIP string) error
	Version(ctx context.Context, nodeIP string) (major, minor, patch int, err error)
	ClusterView(ctx context.Context, nodeIP string) (ClusterView, error)
	OperationMode(ctx context.Context, nodeIP string) (OperationMode, error)
}

func NewClient

func NewClient(jolokiaAddr, jmxUser, jmxPassword string, logr *zap.SugaredLogger) Nodectl

type OperationMode

type OperationMode string
const (
	NodeOperationModeStarting       OperationMode = "STARTING"
	NodeOperationModeNormal         OperationMode = "NORMAL"
	NodeOperationModeJoining        OperationMode = "JOINING"
	NodeOperationModeLeaving        OperationMode = "LEAVING"
	NodeOperationModeDecommissioned OperationMode = "DECOMMISSIONED"
	NodeOperationModeMoving         OperationMode = "MOVING"
	NodeOperationModeDraining       OperationMode = "DRAINING"
	NodeOperationModeDrained        OperationMode = "DRAINED"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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