Versions in this module Expand all Collapse all v0 v0.0.13 Mar 16, 2023 Changes in this version type VirtualMachineDisk + Name string v0.0.12 Mar 15, 2023 v0.0.11 Mar 13, 2023 v0.0.10 Mar 12, 2023 v0.0.9 Mar 9, 2023 v0.0.8 Mar 5, 2023 Changes in this version + func AllocateCiNetConfig(position int, config *string, ...) error + func AllocateDiskConfig(t string, position int, config *string, ...) error + func AllocateNetworkInterfaceConfig(position int, config *string, ...) error + func BytesToStr(bytes int64) string + func DetermineBios(b *proxmox.VirtualMachineBios) proxmox.VirtualMachineBios + func DetermineKeyboardLayout(k *proxmox.VirtualMachineKeyboard) *proxmox.VirtualMachineKeyboard + func DetermineMachineType(sum proxmox.VirtualMachineConfigurationSummary) *string + func DetermineOsType(sum proxmox.VirtualMachineConfigurationSummary) *proxmox.VirtualMachineOperatingSystem + func GenerateMAC() string + func GigabytesToStr(gb int64) string + type VirtualMachineAgent struct + Enabled bool + FsTrim bool + Type *string + func DetermineAgentConfig(a *string) *VirtualMachineAgent + type VirtualMachineCloudInit struct + Dns *VirtualMachineCloudInitDns + Ip []VirtualMachineCloudInitIp + User *VirtualMachineCloudInitUser + func DetermineCloudInitConfiguration(sum proxmox.VirtualMachineConfigurationSummary) *VirtualMachineCloudInit + type VirtualMachineCloudInitDns struct + Domain *string + Nameserver *string + type VirtualMachineCloudInitIp struct + Position int + V4 *VirtualMachineCloudInitIpConfig + V6 *VirtualMachineCloudInitIpConfig + type VirtualMachineCloudInitIpConfig struct + Address *string + DHCP bool + Gateway *string + Netmask *string + type VirtualMachineCloudInitUser struct + Name *string + Password *string + PublicKeys []string + type VirtualMachineCpu struct + Architecture string + Cores int + CpuUnits *int64 + EmulatedType *string + Sockets int + func DetermineCPUConfiguration(sum proxmox.VirtualMachineConfigurationSummary) VirtualMachineCpu + type VirtualMachineDisk struct + Discard bool + FileFormat *string + InterfaceType string + Position int + SSDEmulation bool + Size int64 + SpeedLimits *VirtualMachineDiskSpeedLimits + Storage string + UseIOThreads bool + func DetermineDiskConfiguration(cfg *proxmox.VirtualMachineConfigurationSummary) ([]VirtualMachineDisk, error) + type VirtualMachineDiskSpeedLimits struct + Read *int64 + ReadBurstable *int64 + Write *int64 + WriteBurstable *int64 + type VirtualMachineMemory struct + Dedicated int64 + Floating *int64 + Shared *int64 + func DetermineMemoryConfiguration(sum proxmox.VirtualMachineConfigurationSummary) VirtualMachineMemory + type VirtualMachineNetworkInterface struct + Bridge string + Enabled bool + Firewall bool + MAC string + MTU *int64 + Model string + Position int + RateLimit *int64 + VLAN *int + func DetermineNetworkDevicesFromConfig(cfg *proxmox.VirtualMachineConfigurationSummary) ([]VirtualMachineNetworkInterface, error) + type VirtualMachinePCIDevice struct + ID string + MDEV *string + Name string + PCIE bool + PrimaryGPU bool + ROMBAR bool + ROMFile *string v0.0.7 Feb 16, 2023 v0.0.6 Feb 15, 2023 v0.0.5 Feb 14, 2023 v0.0.4 Feb 12, 2023 v0.0.3 Feb 12, 2023 v0.0.2 Feb 11, 2023 v0.0.1 Feb 10, 2023 Changes in this version + type VirtualBios string + const VIRTUAL_BIOS_OVMF + const VIRTUAL_BIOS_SEABIOS + func (e *VirtualBios) IsValid() bool + type VirtualDisk struct + Discard bool + Position string + Size int64 + Storage string + Type VirtualDiskType + func ExtractDisksFromConfig(cfg *proxmox.VirtualMachineConfigurationSummary) ([]VirtualDisk, error) + type VirtualDiskType string + const VIRTUAL_DISK_IDE + const VIRTUAL_DISK_SATA + const VIRTUAL_DISK_SCSI + const VIRTUAL_DISK_VIRTIO_D + func (e *VirtualDiskType) IsValid() bool + type VirtualMachine struct + Agent bool + Cores int + Id int + Memory int64 + Name string + Node string + Tags []string + VirtualDisks []VirtualDisk + VirtualNetworkDevices []VirtualNetworkDevice + type VirtualNetworkDevice struct + Bridge string + FirewallEnabled bool + Mac string + Model VirtualNetworkDeviceModel + Position string + Vlan int + func ExtractNicsFromConfig(cfg *proxmox.VirtualMachineConfigurationSummary) ([]VirtualNetworkDevice, error) + type VirtualNetworkDeviceModel string + const VIRTUAL_NIC_INTEL_E1000 + const VIRTUAL_NIC_REALTEK_RTL8139 + const VIRTUAL_NIC_VIRTIO + const VIRTUAL_NIC_VMWARE_VMXNET3 + func (e *VirtualNetworkDeviceModel) IsValid() bool