Documentation ¶
Index ¶
- Variables
- func BuildRoot(log log.Logger) *cobra.Command
- func Execute()
- func NewConnectCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewCreateCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewDeleteCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewRootCmd(log log.Logger) *cobra.Command
- type ConnectCmd
- type CreateCmd
- type DeleteCmd
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 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
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
Click to show internal directories.
Click to hide internal directories.