Documentation
¶
Index ¶
- func DownloadCLI(vmName string) tea.Model
- func FirstBoot(vmdir string) error
- func NewVM(vmdir string)
- type Address
- type Boot
- type CPU
- type Channel
- type ChannelTarget
- type Clock
- type Console
- type ConsoleTarget
- type Controller
- type Devices
- type Disk
- type DiskDriver
- type DiskSource
- type DiskTarget
- type DownloadModel
- type DownloadSelections
- type Features
- type GIC
- type Graphics
- type HostCapabilities
- type Input
- type Interface
- type InterfaceModel
- type InterfaceSource
- type LibvirtDomainXML
- type Loader
- type MemBalloon
- type Memory
- type NVRam
- type OS
- type OSType
- type RNG
- type RNGBackend
- type Serial
- type SerialTarget
- type Sound
- type Timer
- type Topology
- type USB
- type USBProduct
- type USBSource
- type USBVendor
- type VCPU
- type Video
- type VideoModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadCLI ¶
Types ¶
type Channel ¶
type Channel struct {
Type string `xml:"type,attr"`
Target *ChannelTarget `xml:"target,omitempty"`
}
type ChannelTarget ¶
type Console ¶
type Console struct {
Type string `xml:"type,attr"`
Target *ConsoleTarget `xml:"target,omitempty"`
}
type ConsoleTarget ¶
type Controller ¶
type Devices ¶
type Devices struct {
Emulator string `xml:"emulator"`
Disks []Disk `xml:"disk"`
Controllers []Controller `xml:"controller"`
Interfaces []Interface `xml:"interface"`
Serials []Serial `xml:"serial"`
Consoles []Console `xml:"console"`
Channels []Channel `xml:"channel"`
Graphics []Graphics `xml:"graphics"`
Videos []Video `xml:"video"`
Inputs []Input `xml:"input"`
USBs []USB `xml:"hostdev,omitempty"`
RNGs []RNG `xml:"rng"`
Sounds []Sound `xml:"sound,omitempty"`
MemBalloon *MemBalloon `xml:"memballoon,omitempty"`
}
type Disk ¶
type Disk struct {
Type string `xml:"type,attr"`
Device string `xml:"device,attr"`
Driver *DiskDriver `xml:"driver,omitempty"`
Source *DiskSource `xml:"source,omitempty"`
Target DiskTarget `xml:"target"`
Boot *Boot `xml:"boot,omitempty"`
}
type DiskDriver ¶
type DiskSource ¶
type DiskSource struct {
File string `xml:"file,attr,omitempty"`
}
type DiskTarget ¶
type DownloadModel ¶
type DownloadModel interface {
tea.Model
GetSelections() *DownloadSelections
}
type DownloadSelections ¶
type Features ¶
type Features struct {
ACPI struct{} `xml:"acpi"`
APIC struct{} `xml:"apic"`
GIC *GIC `xml:"gic,omitempty"`
}
type HostCapabilities ¶
type HostCapabilities struct {
Architecture string // "arm64", "amd64", "arm"
SupportsAtomics bool // For ARM64: whether CPU supports atomics instruction
IsARMv9 bool // For ARM64: whether this is an ARMv9 CPU (no 32-bit support)
HostDescription string // Human-readable description
}
HostCapabilities represents what the current hardware can run
type Interface ¶
type Interface struct {
Type string `xml:"type,attr"`
Source *InterfaceSource `xml:"source,omitempty"`
Model *InterfaceModel `xml:"model,omitempty"`
}
type InterfaceModel ¶
type InterfaceModel struct {
Type string `xml:"type,attr"`
}
type InterfaceSource ¶
type InterfaceSource struct {
Network string `xml:"network,attr,omitempty"`
}
type LibvirtDomainXML ¶
type LibvirtDomainXML struct {
XMLName xml.Name `xml:"domain"`
Type string `xml:"type,attr"`
Name string `xml:"name"`
UUID string `xml:"uuid,omitempty"`
Memory Memory `xml:"memory"`
CurrentMemory Memory `xml:"currentMemory"`
VCPU VCPU `xml:"vcpu"`
OS OS `xml:"os"`
Features Features `xml:"features"`
CPU CPU `xml:"cpu"`
Clock Clock `xml:"clock"`
OnPoweroff string `xml:"on_poweroff"`
OnReboot string `xml:"on_reboot"`
OnCrash string `xml:"on_crash"`
Devices Devices `xml:"devices"`
}
LibvirtDomainXML represents the structure for libvirt domain XML
type MemBalloon ¶
type MemBalloon struct {
Model string `xml:"model,attr"`
}
type RNG ¶
type RNG struct {
Model string `xml:"model,attr"`
Backend RNGBackend `xml:"backend"`
}
type RNGBackend ¶
type Serial ¶
type Serial struct {
Type string `xml:"type,attr"`
Target *SerialTarget `xml:"target,omitempty"`
}
type SerialTarget ¶
type USBProduct ¶
type USBProduct struct {
ID string `xml:"id,attr"`
}
type USBSource ¶
type USBSource struct {
Vendor *USBVendor `xml:"vendor"`
Product *USBProduct `xml:"product"`
}
type Video ¶
type Video struct {
Model VideoModel `xml:"model"`
}
Click to show internal directories.
Click to hide internal directories.