Documentation
¶
Overview ¶
Package cluster groups all KSail cluster lifecycle Cobra commands under a single namespace.
Index ¶
- func HandleListRunE(cmd *cobra.Command, cfgManager *ksailconfigmanager.ConfigManager, ...) error
- func NewClusterCmd(runtimeContainer *runtime.Runtime) *cobra.Command
- func NewCreateCmd(runtimeContainer *runtime.Runtime) *cobra.Command
- func NewDeleteCmd(runtimeContainer *runtime.Runtime) *cobra.Command
- func NewListCmd(runtimeContainer *runtime.Runtime) *cobra.Command
- func NewStartCmd(runtimeContainer *runtime.Runtime) *cobra.Command
- func NewStatusCmd(runtimeContainer *runtime.Runtime) *cobra.Command
- func NewStopCmd(runtimeContainer *runtime.Runtime) *cobra.Command
- type ListDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleListRunE ¶
func HandleListRunE( cmd *cobra.Command, cfgManager *ksailconfigmanager.ConfigManager, deps ListDeps, ) error
HandleListRunE handles the list command. Exported for testing purposes.
func NewClusterCmd ¶
NewClusterCmd creates the parent cluster command and wires lifecycle subcommands beneath it.
func NewCreateCmd ¶
NewCreateCmd wires the cluster create command using the shared runtime container.
func NewDeleteCmd ¶
NewDeleteCmd creates and returns the delete command.
func NewListCmd ¶
NewListCmd creates the list command for clusters.
func NewStartCmd ¶
NewStartCmd creates and returns the start command.
func NewStatusCmd ¶
NewStatusCmd creates and returns the status command.
Types ¶
type ListDeps ¶
type ListDeps struct {
Factory clusterprovisioner.Factory
}
ListDeps captures dependencies needed for the list command logic.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.