Documentation ¶
Index ¶
- type CLIOptions
- func (c *CLIOptions) GetCPUCores() uint32
- func (c *CLIOptions) GetCPUSockets() uint32
- func (c *CLIOptions) GetCPUThreads() uint32
- func (c *CLIOptions) GetDatavolumeTemplates() []kubevirtv1.DataVolumeTemplateSpec
- func (c *CLIOptions) GetDebugLevel() zapcore.Level
- func (c *CLIOptions) GetDeleteDatavolumeTemplate() bool
- func (c *CLIOptions) GetDeleteDisks() bool
- func (c *CLIOptions) GetDeleteTemplate() bool
- func (c *CLIOptions) GetDeleteTemplateParameters() bool
- func (c *CLIOptions) GetDeleteVolumes() bool
- func (c *CLIOptions) GetDisks() []kubevirtv1.Disk
- func (c *CLIOptions) GetMemory() *resource.Quantity
- func (c *CLIOptions) GetTemplateAnnotations() map[string]string
- func (c *CLIOptions) GetTemplateLabels() map[string]string
- func (c *CLIOptions) GetTemplateName() string
- func (c *CLIOptions) GetTemplateNamespace() string
- func (c *CLIOptions) GetTemplateParameters() []templatev1.Parameter
- func (c *CLIOptions) GetVMAnnotations() map[string]string
- func (c *CLIOptions) GetVMLabels() map[string]string
- func (c *CLIOptions) GetVolumes() []kubevirtv1.Volume
- func (c *CLIOptions) Init() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIOptions ¶
type CLIOptions struct { TemplateName string `arg:"--template-name,env:TEMPLATE_NAME,required" placeholder:"NAME" help:"Name of a template"` TemplateNamespace string `arg:"--template-namespace,env:TEMPLATE_NAMESPACE" placeholder:"NAMESPACE" help:"Namespace of a template"` CPUSockets string `arg:"--cpu-sockets,env:CPU_SOCKETS" placeholder:"CPU_SOCKETS" help:"Number of CPU sockets"` CPUCores string `arg:"--cpu-cores,env:CPU_CORES" placeholder:"CPU_CORES" help:"Number of CPU cores"` CPUThreads string `arg:"--cpu-threads,env:CPU_THREADS" placeholder:"CPU_THREADS" help:"Number of CPU threads"` Memory string `arg:"--memory,env:MEMORY" placeholder:"MEMORY" help:"Memory of the vm, format 1M, 1G"` TemplateLabels []string `arg:"--template-labels" placeholder:"KEY: VALUE KEY: VALUE" help:"Adds labels to template"` TemplateAnnotations []string `arg:"--template-annotations" placeholder:"KEY: VALUE KEY: VALUE" help:"Adds annotations to template"` VMLabels []string `arg:"--vm-labels" placeholder:"KEY: VALUE KEY: VALUE" help:"Adds labels to VMs"` VMAnnotations []string `arg:"--vm-annotations" placeholder:"KEY: VALUE KEY: VALUE" help:"Adds annotations to VMs"` Output output.OutputType `arg:"-o" placeholder:"FORMAT" help:"Output format. One of: yaml|json"` Disks []string `` /* 277-byte string literal not displayed */ Volumes []string `` /* 342-byte string literal not displayed */ DatavolumeTemplates []string `` /* 431-byte string literal not displayed */ TemplateParameters []string `arg:"--templateParameters" placeholder:'{"description": "VM name", "name": "NAME"}' help:"Definition of template parameters"` DeleteDatavolumeTemplate bool `` /* 173-byte string literal not displayed */ DeleteVolumes bool `arg:"--delete-volumes,env:DELETE_VOLUMES" help:"Delete all VM volumes"` DeleteDisks bool `arg:"--delete-disks,env:DELETE_DISKS" help:"Delete all VM disks"` DeleteTemplateParameters bool `` /* 173-byte string literal not displayed */ DeleteTemplate bool `` /* 143-byte string literal not displayed */ Debug bool `arg:"--debug" help:"Sets DEBUG log level"` // contains filtered or unexported fields }
func (*CLIOptions) GetCPUCores ¶
func (c *CLIOptions) GetCPUCores() uint32
func (*CLIOptions) GetCPUSockets ¶
func (c *CLIOptions) GetCPUSockets() uint32
func (*CLIOptions) GetCPUThreads ¶
func (c *CLIOptions) GetCPUThreads() uint32
func (*CLIOptions) GetDatavolumeTemplates ¶
func (c *CLIOptions) GetDatavolumeTemplates() []kubevirtv1.DataVolumeTemplateSpec
func (*CLIOptions) GetDebugLevel ¶
func (c *CLIOptions) GetDebugLevel() zapcore.Level
func (*CLIOptions) GetDeleteDatavolumeTemplate ¶
func (c *CLIOptions) GetDeleteDatavolumeTemplate() bool
func (*CLIOptions) GetDeleteDisks ¶
func (c *CLIOptions) GetDeleteDisks() bool
func (*CLIOptions) GetDeleteTemplate ¶
func (c *CLIOptions) GetDeleteTemplate() bool
func (*CLIOptions) GetDeleteTemplateParameters ¶
func (c *CLIOptions) GetDeleteTemplateParameters() bool
func (*CLIOptions) GetDeleteVolumes ¶
func (c *CLIOptions) GetDeleteVolumes() bool
func (*CLIOptions) GetDisks ¶
func (c *CLIOptions) GetDisks() []kubevirtv1.Disk
func (*CLIOptions) GetMemory ¶
func (c *CLIOptions) GetMemory() *resource.Quantity
func (*CLIOptions) GetTemplateAnnotations ¶
func (c *CLIOptions) GetTemplateAnnotations() map[string]string
func (*CLIOptions) GetTemplateLabels ¶
func (c *CLIOptions) GetTemplateLabels() map[string]string
func (*CLIOptions) GetTemplateName ¶
func (c *CLIOptions) GetTemplateName() string
func (*CLIOptions) GetTemplateNamespace ¶
func (c *CLIOptions) GetTemplateNamespace() string
func (*CLIOptions) GetTemplateParameters ¶
func (c *CLIOptions) GetTemplateParameters() []templatev1.Parameter
func (*CLIOptions) GetVMAnnotations ¶
func (c *CLIOptions) GetVMAnnotations() map[string]string
func (*CLIOptions) GetVMLabels ¶
func (c *CLIOptions) GetVMLabels() map[string]string
func (*CLIOptions) GetVolumes ¶
func (c *CLIOptions) GetVolumes() []kubevirtv1.Volume
func (*CLIOptions) Init ¶
func (c *CLIOptions) Init() error
Click to show internal directories.
Click to hide internal directories.