Documentation ¶
Index ¶
- Constants
- func BuildRoot(log log.Logger) (*cobra.Command, error)
- func Execute()
- func NewConnectCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewCreateCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewDeleteCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewDescribeCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- func NewDisconnectCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewInfoCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewListCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewLoginCmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
- func NewLogoutCmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
- func NewPauseCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewResumeCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewRootCmd(log log.Logger) *cobra.Command
- func NewUICmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
- func NewUpgradeCmd() *cobra.Command
- type ConnectCmd
- type CreateCmd
- type DeleteCmd
- type DescribeCmd
- type DisconnectCmd
- type ListCmd
- type LoginCmd
- type PauseCmd
- type ResumeCmd
- type UICmd
- type UpgradeCmd
Constants ¶
const PlatformURL = "VCLUSTER_PLATFORM_URL"
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 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 NewDescribeCmd ¶ added in v0.20.0
NewDescribeCmd creates a new command
func NewDisconnectCmd ¶ added in v0.10.0
func NewDisconnectCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewDisconnectCmd creates a new command
func NewInfoCmd ¶ added in v0.19.0
func NewInfoCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewInfoCmd creates a new info command
func NewListCmd ¶ added in v0.2.0
func NewListCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewListCmd creates a new command
func NewLoginCmd ¶ added in v0.16.0
func NewLoginCmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
func NewLogoutCmd ¶ added in v0.16.0
func NewLogoutCmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
func NewPauseCmd ¶ added in v0.6.0
func NewPauseCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewPauseCmd creates a new command
func NewResumeCmd ¶ added in v0.6.0
func NewResumeCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewResumeCmd creates a new command
func NewRootCmd ¶
NewRootCmd returns a new root command
func NewUICmd ¶ added in v0.16.0
func NewUICmd(globalFlags *flags.GlobalFlags) (*cobra.Command, error)
func NewUpgradeCmd ¶ added in v0.2.0
NewUpgradeCmd creates a new upgrade command
Types ¶
type ConnectCmd ¶
type ConnectCmd struct { Log log.Logger *flags.GlobalFlags cli.ConnectOptions }
ConnectCmd holds the cmd flags
type CreateCmd ¶
type CreateCmd struct { *flags.GlobalFlags cli.CreateOptions // contains filtered or unexported fields }
CreateCmd holds the login cmd flags
type DeleteCmd ¶
type DeleteCmd struct { *flags.GlobalFlags cli.DeleteOptions // contains filtered or unexported fields }
DeleteCmd holds the delete cmd flags
type DescribeCmd ¶ added in v0.20.0
type DescribeCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
DescribeCmd holds the describe cmd flags
type DisconnectCmd ¶ added in v0.10.0
type DisconnectCmd struct { *flags.GlobalFlags // contains filtered or unexported fields }
DisconnectCmd holds the disconnect cmd flags
func (*DisconnectCmd) Run ¶ added in v0.10.0
func (cmd *DisconnectCmd) Run() error
Run executes the functionality
type ListCmd ¶ added in v0.2.0
type ListCmd struct { *flags.GlobalFlags cli.ListOptions // contains filtered or unexported fields }
ListCmd holds the login cmd flags
type PauseCmd ¶ added in v0.6.0
type PauseCmd struct { *flags.GlobalFlags cli.PauseOptions Log log.Logger }
PauseCmd holds the cmd flags
type ResumeCmd ¶ added in v0.6.0
type ResumeCmd struct { *flags.GlobalFlags cli.ResumeOptions Log log.Logger }
ResumeCmd holds the 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"