control

package
v0.2601.0 Latest Latest
Warning

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

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

Documentation

Overview

Package control implements the control sub-commands.

Index

Constants

View Source
const (
	// CmdControl is the control sub-command.
	CmdControl = "control"
	// CmdIsSynced is the is-synced sub-command.
	CmdIsSynced = "is-synced"
	// CmdWaitSync is the wait-sync sub-command.
	CmdWaitSync = "wait-sync"
	// CmdShutdown is the shutdown sub-command.
	CmdShutdown = "shutdown"
	// CmdClearDeregister is the clear-deregister sub-command.
	CmdClearDeregister = "clear-deregister"
	// CmdUpgradeBinary is the upgrade-binary sub-command.
	CmdUpgradeBinary = "upgrade-binary"
	// CmdCancelUpgrade is the cancel-upgrade sub-command.
	CmdCancelUpgrade = "cancel-upgrade"
	// CmdStatus is the status sub-command.
	CmdStatus = "status"
	// CmdRuntimeStats is the runtime-stats sub-command.
	CmdRuntimeStats = "runtime-stats"
	// CmdAddBundle is the add-bundle sub-command.
	CmdAddBundle = "add-bundle"
)

Variables

This section is empty.

Functions

func DoConnect

func DoConnect(cmd *cobra.Command) (*grpc.ClientConn, control.NodeController)

DoConnect connects to the node's gRPC server.

func DoFetchStatus added in v0.2402.0

func DoFetchStatus(cmd *cobra.Command) *control.Status

DoFetchStatus connects to the node's gRPC server and fetches its status.

func Register

func Register(parentCmd *cobra.Command)

Register registers the client sub-command and all of it's children.

Types

This section is empty.

Jump to

Keyboard shortcuts

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