parse

package
v0.0.0-...-ff79166 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL