Documentation ¶
Index ¶
- type CLIOptions
- func (c *CLIOptions) GetDebugLevel() zapcore.Level
- func (c *CLIOptions) GetScript() string
- func (c *CLIOptions) GetScriptTimeout() time.Duration
- func (c *CLIOptions) GetVirtualMachineNamespace() string
- func (c *CLIOptions) Init() error
- func (c *CLIOptions) ShouldDelete() bool
- func (c *CLIOptions) ShouldStop() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIOptions ¶
type CLIOptions struct { VirtualMachineName string `arg:"--vm-name,env:VM_NAME,required" placeholder:"NAME" help:"Name of a VM to execute the action in"` VirtualMachineNamespace string `arg:"--vm-namespace,env:VM_NAMESPACE" placeholder:"NAMESPACE" help:"Namespace of a VM to execute the action in"` Stop string `arg:"--stop" placeholder:"true|false" help:"Stops the VM after executing the action"` Delete string `arg:"--delete" placeholder:"true|false" help:"Deletes the VM after executing the action"` Timeout string `` /* 184-byte string literal not displayed */ Script string `` /* 131-byte string literal not displayed */ ConnectionSecretName string `` /* 138-byte string literal not displayed */ Debug bool `arg:"--debug" help:"Sets DEBUG log level"` Command []string `arg:"positional" placeholder:"COMMAND" help:"Command to execute in a VM"` }
func (*CLIOptions) GetDebugLevel ¶
func (c *CLIOptions) GetDebugLevel() zapcore.Level
func (*CLIOptions) GetScript ¶
func (c *CLIOptions) GetScript() string
func (*CLIOptions) GetScriptTimeout ¶
func (c *CLIOptions) GetScriptTimeout() time.Duration
func (*CLIOptions) GetVirtualMachineNamespace ¶
func (c *CLIOptions) GetVirtualMachineNamespace() string
func (*CLIOptions) Init ¶
func (c *CLIOptions) Init() error
func (*CLIOptions) ShouldDelete ¶
func (c *CLIOptions) ShouldDelete() bool
func (*CLIOptions) ShouldStop ¶
func (c *CLIOptions) ShouldStop() bool
Click to show internal directories.
Click to hide internal directories.