Versions in this module Expand all Collapse all v0 v0.1.0 Dec 29, 2021 Changes in this version + const Floppy + const IDE + const PCIE + const SAS + const SATA + const SCSI + const USB + type DHCPServer struct + Enabled bool + IPv4 net.IPNet + LowerIP net.IP + NetworkName string + UpperIP net.IP + func GetDHCPServer(networkName string) (*DHCPServer, error) + func ListDHCPServers() ([]*DHCPServer, error) + func (server *DHCPServer) Create() error + func (server *DHCPServer) Remove() error + func (server DHCPServer) Equal(other DHCPServer) bool + type Disk struct + Path string + Size int64 + func (disk *Disk) Create() error + type HostOnlyNetwork struct + DHCP bool + IPv4 net.IPNet + Name string + NetworkName string + func ListHostOnlyNetworks() ([]*HostOnlyNetwork, error) + func NewHostOnlyNetwork(cidr string) (*HostOnlyNetwork, error) + func (network *HostOnlyNetwork) ConnectVM(vm *VM) error + func (network *HostOnlyNetwork) Create() error + func (network HostOnlyNetwork) Equal(other HostOnlyNetwork) bool + type PortForwarding struct + GuestIP string + GuestPort int + HostIP string + HostPort int + Interface int + Name string + Protocol string + VMName string + func (forward *PortForwarding) Create() error + type StorageController struct + Device int + Disks []Disk + Name string + PortCount int + Type string + VMName string + func (ctl *StorageController) AttachDisk(port int, disk *Disk) error + func (ctl *StorageController) Create() error + func (ctl *StorageController) Remove() error + type USBFilter struct + Index int + Name string + ProductID string + VMName string + VendorID string + func (filter *USBFilter) Create() error + func (filter *USBFilter) Remove() error + type VM struct + Name string + func (vm *VM) Delete() error + func (vm *VM) GetStorageController(busType string) (*StorageController, error) + func (vm *VM) Import(args ...string) error + func (vm *VM) Info() (map[string]string, error) + func (vm *VM) ListPortForwardings() ([]*PortForwarding, error) + func (vm *VM) ListStorageControllers() ([]*StorageController, error) + func (vm *VM) Modify(args ...string) error + func (vm *VM) NewPortForwarding(name string) *PortForwarding + func (vm *VM) Start() error + func (vm *VM) Stop(force bool) error + type VersionInfo struct + Major int + Minor int + Release string + func Version() (VersionInfo, error)