Documentation ¶
Index ¶
- func ExactArgs(nameOfCommand string, n int) cobra.PositionalArgs
- func MainUsageTemplate() string
- func OptionsUsageTemplate() string
- func ParseSCPArguments(arg1 string, arg2 string) (local LocalSCPArgument, remote RemoteSCPArgument, toRemote bool, err error)
- func ParseSSHTarget(arg string) (namespace, name, username string, err error)
- func ParseTarget(arg string) (namespace, name string, err error)
- func PrintWarningForPausedVM(virtCli kubeclient.Client, vmName, namespace string)
- func UsageTemplate() string
- type LocalSCPArgument
- type RemoteSCPArgument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactArgs ¶
func ExactArgs(nameOfCommand string, n int) cobra.PositionalArgs
ExactArgs validate the number of input parameters
func MainUsageTemplate ¶
func MainUsageTemplate() string
MainUsageTemplate returns the usage template for the root command
func OptionsUsageTemplate ¶
func OptionsUsageTemplate() string
OptionsUsageTemplate returns a template which prints all global available commands
func ParseSCPArguments ¶
func ParseSCPArguments(arg1 string, arg2 string) (local LocalSCPArgument, remote RemoteSCPArgument, toRemote bool, err error)
func ParseSSHTarget ¶
ParseSSHTarget argument supporting the form of username@name.namespace
func ParseTarget ¶
ParseTarget argument supporting the form of name.namespace
func PrintWarningForPausedVM ¶
func PrintWarningForPausedVM(virtCli kubeclient.Client, vmName, namespace string)
PrintWarningForPausedVM prints warning message if VM is paused
func UsageTemplate ¶
func UsageTemplate() string
UsageTemplate returns the usage template for all subcommands
Types ¶
type LocalSCPArgument ¶
type LocalSCPArgument struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.