Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VirtualBios ¶
type VirtualBios string
const ( VIRTUAL_BIOS_SEABIOS VirtualBios = "seabios" VIRTUAL_BIOS_OVMF VirtualBios = "ovmf" )
func (*VirtualBios) IsValid ¶
func (e *VirtualBios) IsValid() bool
type VirtualDisk ¶
type VirtualDisk struct { Storage string Type VirtualDiskType Position string //virtio0, virtio1, scsi0, scsi1, ide0, ide1, sata0, sata1, etc Size int64 Discard bool }
func ExtractDisksFromConfig ¶
func ExtractDisksFromConfig(cfg *proxmox.VirtualMachineConfigurationSummary) ([]VirtualDisk, error)
doing some janky stuff here to get the disks out of the config refator this later to use go routines
type VirtualDiskType ¶
type VirtualDiskType string
const ( VIRTUAL_DISK_SCSI VirtualDiskType = "scsi" VIRTUAL_DISK_VIRTIO_D VirtualDiskType = "virtio" VIRTUAL_DISK_SATA VirtualDiskType = "sata" VIRTUAL_DISK_IDE VirtualDiskType = "ide" )
func (*VirtualDiskType) IsValid ¶
func (e *VirtualDiskType) IsValid() bool
type VirtualMachine ¶
type VirtualMachine struct { Id int Agent bool Node string Name string Memory int64 Cores int Tags []string VirtualDisks []VirtualDisk VirtualNetworkDevices []VirtualNetworkDevice }
type VirtualNetworkDevice ¶
type VirtualNetworkDevice struct { Bridge string Vlan int Model VirtualNetworkDeviceModel Mac string Position string FirewallEnabled bool }
func ExtractNicsFromConfig ¶
func ExtractNicsFromConfig(cfg *proxmox.VirtualMachineConfigurationSummary) ([]VirtualNetworkDevice, error)
type VirtualNetworkDeviceModel ¶
type VirtualNetworkDeviceModel string
const ( VIRTUAL_NIC_INTEL_E1000 VirtualNetworkDeviceModel = "e1000" VIRTUAL_NIC_VIRTIO VirtualNetworkDeviceModel = "virtio" VIRTUAL_NIC_REALTEK_RTL8139 VirtualNetworkDeviceModel = "rtl8139" VIRTUAL_NIC_VMWARE_VMXNET3 VirtualNetworkDeviceModel = "vmxnet3" )
func (*VirtualNetworkDeviceModel) IsValid ¶
func (e *VirtualNetworkDeviceModel) IsValid() bool
Click to show internal directories.
Click to hide internal directories.