cluster

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package cluster groups all KSail cluster lifecycle Cobra commands under a single namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleConnectRunE added in v1.12.1

func HandleConnectRunE(
	cmd *cobra.Command,
	cfgManager *ksailconfigmanager.ConfigManager,
	args []string,
) error

HandleConnectRunE handles the connect command execution. Exported for testing purposes.

func HandleListRunE

func HandleListRunE(
	cmd *cobra.Command,
	cfgManager *ksailconfigmanager.ConfigManager,
	deps ListDeps,
) error

HandleListRunE handles the list command. Exported for testing purposes.

func NewClusterCmd

func NewClusterCmd(runtimeContainer *runtime.Runtime) *cobra.Command

NewClusterCmd creates the parent cluster command and wires lifecycle subcommands beneath it.

func NewConnectCmd added in v1.12.1

func NewConnectCmd(_ *runtime.Runtime) *cobra.Command

NewConnectCmd creates the connect command for clusters.

func NewCreateCmd

func NewCreateCmd(runtimeContainer *runtime.Runtime) *cobra.Command

NewCreateCmd wires the cluster create command using the shared runtime container.

func NewDeleteCmd

func NewDeleteCmd(runtimeContainer *runtime.Runtime) *cobra.Command

NewDeleteCmd creates and returns the delete command.

func NewInfoCmd added in v1.12.1

func NewInfoCmd(_ *runtime.Runtime) *cobra.Command

NewInfoCmd creates the cluster info command.

func NewListCmd

func NewListCmd(runtimeContainer *runtime.Runtime) *cobra.Command

NewListCmd creates the list command for clusters.

func NewStartCmd

func NewStartCmd(runtimeContainer *runtime.Runtime) *cobra.Command

NewStartCmd creates and returns the start command.

func NewStopCmd

func NewStopCmd(runtimeContainer *runtime.Runtime) *cobra.Command

NewStopCmd creates and returns the stop command.

Types

type ListDeps

type ListDeps struct {
	Factory             clusterprovisioner.Factory
	DistributionFactory clusterprovisioner.Factory
}

ListDeps captures dependencies needed for the list command logic.

Directories

Path Synopsis
Package testutils provides shared helpers for cluster command tests.
Package testutils provides shared helpers for cluster command tests.

Jump to

Keyboard shortcuts

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