cluster

package
v0.0.0-...-2caf503 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cluster implements the 'delete cluster' sub-command.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Command performs the "delete cluster" function
	Command = &cobra.Command{
		Use:   "cluster",
		Short: "Delete cluster",
		Long: `Deletes a Kubernetes cluster.

Caution: This will terminate all workloads on the cluster. Data stored on the
worker nodes will be lost. There is no way to undo this.

Example:

	gsctl delete cluster c7t2o`,
		PreRun: printValidation,
		Run:    printResult,
	}
)

Functions

This section is empty.

Types

type Arguments

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

Arguments represents all argument that can be passed to our business function.

type JSONOutput

type JSONOutput struct {
	// Result of the command. should be 'deletion scheduled'
	Result string `json:"result"`
	// ID of the cluster
	ID string `json:"id"`
	// Error which occured
	Error error `json:"error,omitempty"`
}

JSONOutput contains the fields included in JSON output of the delete cluster command when called with json output flag

Jump to

Keyboard shortcuts

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