cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionMap = map[string]string{
	"1.20": "rancher/k3s:v1.20.4-k3s1",
	"1.19": "rancher/k3s:v1.19.8-k3s1",
	"1.18": "rancher/k3s:v1.18.16-k3s1",
	"1.17": "rancher/k3s:v1.17.17-k3s1",
	"1.16": "rancher/k3s:v1.16.15-k3s1",
}

Functions

func BuildRoot

func BuildRoot(log log.Logger) *cobra.Command

BuildRoot creates a new root command from the

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewConnectCmd

func NewConnectCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewConnectCmd creates a new command

func NewCreateCmd

func NewCreateCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewCreateCmd creates a new command

func NewDeleteCmd

func NewDeleteCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewDeleteCmd creates a new command

func NewRootCmd

func NewRootCmd(log log.Logger) *cobra.Command

NewRootCmd returns a new root command

Types

type ConnectCmd

type ConnectCmd struct {
	*flags.GlobalFlags

	KubeConfig    string
	Namespace     string
	UpdateCurrent bool
	Print         bool
	SetActive     bool
	LocalPort     int
	// contains filtered or unexported fields
}

ConnectCmd holds the login cmd flags

func (*ConnectCmd) Run

func (cmd *ConnectCmd) Run(cobraCmd *cobra.Command, args []string) error

Run executes the functionality

type CreateCmd

type CreateCmd struct {
	*flags.GlobalFlags

	Namespace string

	ChartVersion  string
	ChartName     string
	ChartRepo     string
	ReleaseValues string

	CreateNamespace    bool
	DisableIngressSync bool
	// contains filtered or unexported fields
}

CreateCmd holds the login cmd flags

func (*CreateCmd) Run

func (cmd *CreateCmd) Run(cobraCmd *cobra.Command, args []string) error

Run executes the functionality

type DeleteCmd

type DeleteCmd struct {
	*flags.GlobalFlags

	Namespace string
	// contains filtered or unexported fields
}

DeleteCmd holds the login cmd flags

func (*DeleteCmd) Run

func (cmd *DeleteCmd) Run(cobraCmd *cobra.Command, args []string) error

Run executes the functionality

Jump to

Keyboard shortcuts

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