Documentation ¶
Index ¶
- func ExactArgs(nameOfCommand string, n int) cobra.PositionalArgs
- func KindIsVM(kind string) bool
- func KindIsVMI(kind string) bool
- func MainUsageTemplate() string
- func OptionsUsageTemplate() string
- func ParseSCPArguments(arg1 string, arg2 string) (local LocalSCPArgument, remote RemoteSCPArgument, toRemote bool, err error)
- func ParseSSHTarget(arg string) (kind, namespace, name, username string, err error)
- func ParseTarget(arg string) (kind string, namespace string, name string, err error)
- func PrintWarningForPausedVMI(virtCli kubecli.KubevirtClient, vmiName string, namespace string)
- func UsageTemplate() string
- type LocalSCPArgument
- type RemoteSCPArgument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactArgs ¶ added in v0.32.0
func ExactArgs(nameOfCommand string, n int) cobra.PositionalArgs
ExactArgs validate the number of input parameters
func KindIsVM ¶ added in v0.44.1
KindIsVM helps validating input parameters for specifying the VM resource
func KindIsVMI ¶ added in v0.44.1
KindIsVMI helps validating input parameters for specifying the VMI resource
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 ¶ added in v0.53.0
func ParseSCPArguments(arg1 string, arg2 string) (local LocalSCPArgument, remote RemoteSCPArgument, toRemote bool, err error)
func ParseSSHTarget ¶ added in v0.46.0
ParseSSHTarget argument supporting the form of username@vmi/name.namespace (or simpler)
func ParseTarget ¶ added in v0.44.1
ParseTarget argument supporting the form of vmi/name.namespace (or simpler)
func PrintWarningForPausedVMI ¶ added in v0.41.0
func PrintWarningForPausedVMI(virtCli kubecli.KubevirtClient, vmiName string, namespace string)
PrintWarningForPausedVMI prints warning message if VMI is paused
func UsageTemplate ¶
func UsageTemplate() string
UsageTemplate returns the usage template for all subcommands
Types ¶
type LocalSCPArgument ¶ added in v0.53.0
type LocalSCPArgument struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.