Documentation ¶
Index ¶
- func BuildRoot(log log.Logger) *cobra.Command
- func Execute()
- func NewBashCommand() *cobra.Command
- func NewCompletionCmd() *cobra.Command
- func NewConnectCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewCreateCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewDeleteCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewListCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewRootCmd(log log.Logger) *cobra.Command
- func NewUpgradeCmd() *cobra.Command
- func NewZshCommand() *cobra.Command
- type ConnectCmd
- type CreateCmd
- type DeleteCmd
- type ListCmd
- type UpgradeCmd
- type VCluster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 NewBashCommand ¶ added in v0.3.3
func NewCompletionCmd ¶ added in v0.3.3
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 NewListCmd ¶ added in v0.2.0
func NewListCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewListCmd creates a new command
func NewRootCmd ¶
NewRootCmd returns a new root command
func NewUpgradeCmd ¶ added in v0.2.0
NewUpgradeCmd creates a new upgrade command
func NewZshCommand ¶ added in v0.3.3
Types ¶
type ConnectCmd ¶
type ConnectCmd struct { *flags.GlobalFlags KubeConfig string PodName string UpdateCurrent bool Print bool LocalPort int Address string Server string Log log.Logger }
ConnectCmd holds the login cmd flags
func (*ConnectCmd) Connect ¶ added in v0.3.2
func (cmd *ConnectCmd) Connect(vclusterName string) error
func (*ConnectCmd) Run ¶
func (cmd *ConnectCmd) Run(args []string) error
Run executes the functionality
type CreateCmd ¶
type CreateCmd struct { *flags.GlobalFlags create.CreateOptions // contains filtered or unexported fields }
CreateCmd holds the login cmd flags
type DeleteCmd ¶
type DeleteCmd struct { *flags.GlobalFlags KeepPVC bool DeleteNamespace bool // contains filtered or unexported fields }
DeleteCmd holds the login cmd flags
type ListCmd ¶ added in v0.2.0
type ListCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
ListCmd holds the login cmd flags
type UpgradeCmd ¶ added in v0.2.0
type UpgradeCmd struct { Version string // contains filtered or unexported fields }
UpgradeCmd is a struct that defines a command call for "upgrade"
Source Files ¶
Click to show internal directories.
Click to hide internal directories.