Versions in this module Expand all Collapse all v0 v0.5.0 Dec 18, 2021 Changes in this version + type Addr struct + CID uint32 + Port uint32 + func (a *Addr) Network() string + func (a *Addr) String() string + type BootLoader interface + type BridgeNetworkImp struct + func NewBridgeNetwork(name string) *BridgeNetworkImp + func (b *BridgeNetworkImp) Identifier() string + func (b *BridgeNetworkImp) LocalizedDisplayName() string + func (b *BridgeNetworkImp) NetworkInterfaces() []BridgedNetwork + func (o *BridgeNetworkImp) Ptr() unsafe.Pointer + func (p *BridgeNetworkImp) Release() + type BridgedNetwork interface + Identifier func() string + LocalizedDisplayName func() string + NetworkInterfaces func() []BridgedNetwork + type BridgedNetworkDeviceAttachment struct + func NewBridgedNetworkDeviceAttachment(networkInterface BridgedNetwork) *BridgedNetworkDeviceAttachment + func (o *BridgedNetworkDeviceAttachment) Ptr() unsafe.Pointer + func (p *BridgedNetworkDeviceAttachment) Release() + type DiskImageStorageDeviceAttachment struct + func NewDiskImageStorageDeviceAttachment(diskPath string, readOnly bool) (*DiskImageStorageDeviceAttachment, error) + func (o *DiskImageStorageDeviceAttachment) Ptr() unsafe.Pointer + func (p *DiskImageStorageDeviceAttachment) Release() + type FileHandleNetworkDeviceAttachment struct + func NewFileHandleNetworkDeviceAttachment(file *os.File) *FileHandleNetworkDeviceAttachment + func (o *FileHandleNetworkDeviceAttachment) Ptr() unsafe.Pointer + func (p *FileHandleNetworkDeviceAttachment) Release() + type FileHandleSerialPortAttachment struct + func NewFileHandleSerialPortAttachment(read, write *os.File) *FileHandleSerialPortAttachment + func (o *FileHandleSerialPortAttachment) Ptr() unsafe.Pointer + func (p *FileHandleSerialPortAttachment) Release() + type FileSerialPortAttachment struct + func NewFileSerialPortAttachment(path string, shouldAppend bool) (*FileSerialPortAttachment, error) + func (o *FileSerialPortAttachment) Ptr() unsafe.Pointer + func (p *FileSerialPortAttachment) Release() + type LinuxBootLoader struct + func NewLinuxBootLoader(vmlinuz string, opts ...LinuxBootLoaderOption) *LinuxBootLoader + func (b *LinuxBootLoader) String() string + func (o *LinuxBootLoader) Ptr() unsafe.Pointer + func (p *LinuxBootLoader) Release() + type LinuxBootLoaderOption func(b *LinuxBootLoader) + func WithCommandLine(cmdLine string) LinuxBootLoaderOption + func WithInitrd(initrdPath string) LinuxBootLoaderOption + type MACAddress struct + func NewMACAddress(macAddr net.HardwareAddr) *MACAddress + func NewRandomLocallyAdministeredMACAddress() *MACAddress + func (m *MACAddress) HardwareAddr() net.HardwareAddr + func (m *MACAddress) String() string + func (o *MACAddress) Ptr() unsafe.Pointer + func (p *MACAddress) Release() + type MemoryBalloonDeviceConfiguration interface + type NATNetworkDeviceAttachment struct + func NewNATNetworkDeviceAttachment() *NATNetworkDeviceAttachment + func (o *NATNetworkDeviceAttachment) Ptr() unsafe.Pointer + func (p *NATNetworkDeviceAttachment) Release() + type NSArray struct + func (n *NSArray) ToPointerSlice() []unsafe.Pointer + func (o *NSArray) Ptr() unsafe.Pointer + func (p *NSArray) Release() + type NSError struct + Code int + Domain string + LocalizedDescription string + UserInfo string + func (n *NSError) Error() string + func (o *NSError) Ptr() unsafe.Pointer + func (p *NSError) Release() + type NSObject interface + Ptr func() unsafe.Pointer + type NetworkDeviceAttachment interface + type SerialPortAttachment interface + type SocketDeviceConfiguration interface + type StorageDeviceAttachment interface + type StorageDeviceConfiguration interface + type VirtioBlockDeviceConfiguration struct + func NewVirtioBlockDeviceConfiguration(attachment StorageDeviceAttachment) *VirtioBlockDeviceConfiguration + func (o *VirtioBlockDeviceConfiguration) Ptr() unsafe.Pointer + func (p *VirtioBlockDeviceConfiguration) Release() + type VirtioConsoleDeviceSerialPortConfiguration struct + func NewVirtioConsoleDeviceSerialPortConfiguration(attachment SerialPortAttachment) *VirtioConsoleDeviceSerialPortConfiguration + func (o *VirtioConsoleDeviceSerialPortConfiguration) Ptr() unsafe.Pointer + func (p *VirtioConsoleDeviceSerialPortConfiguration) Release() + type VirtioEntropyDeviceConfiguration struct + func NewVirtioEntropyDeviceConfiguration() *VirtioEntropyDeviceConfiguration + func (o *VirtioEntropyDeviceConfiguration) Ptr() unsafe.Pointer + func (p *VirtioEntropyDeviceConfiguration) Release() + type VirtioNetworkDeviceConfiguration struct + func NewVirtioNetworkDeviceConfiguration(attachment NetworkDeviceAttachment) *VirtioNetworkDeviceConfiguration + func (o *VirtioNetworkDeviceConfiguration) Ptr() unsafe.Pointer + func (p *VirtioNetworkDeviceConfiguration) Release() + func (v *VirtioNetworkDeviceConfiguration) SetMacAddress(macAddress *MACAddress) + type VirtioSocketConnection struct + func (v *VirtioSocketConnection) Close() error + func (v *VirtioSocketConnection) DestinationPort() uint32 + func (v *VirtioSocketConnection) FileDescriptor() uintptr + func (v *VirtioSocketConnection) ID() string + func (v *VirtioSocketConnection) LocalAddr() net.Addr + func (v *VirtioSocketConnection) Read(b []byte) (n int, err error) + func (v *VirtioSocketConnection) RemoteAddr() net.Addr + func (v *VirtioSocketConnection) SetDeadline(t time.Time) error + func (v *VirtioSocketConnection) SetReadDeadline(t time.Time) error + func (v *VirtioSocketConnection) SetWriteDeadline(t time.Time) error + func (v *VirtioSocketConnection) SourcePort() uint32 + func (v *VirtioSocketConnection) Write(b []byte) (n int, err error) + type VirtioSocketDevice struct + func (o *VirtioSocketDevice) Ptr() unsafe.Pointer + func (p *VirtioSocketDevice) Release() + func (v *VirtioSocketDevice) ConnectToPort(port uint32, fn func(conn *VirtioSocketConnection, err error)) + func (v *VirtioSocketDevice) RemoveSocketListenerForPort(listener *VirtioSocketListener, port uint32) + func (v *VirtioSocketDevice) SetSocketListenerForPort(listener *VirtioSocketListener, port uint32) + type VirtioSocketDeviceConfiguration struct + func NewVirtioSocketDeviceConfiguration() *VirtioSocketDeviceConfiguration + func (o *VirtioSocketDeviceConfiguration) Ptr() unsafe.Pointer + func (p *VirtioSocketDeviceConfiguration) Release() + type VirtioSocketListener struct + func NewVirtioSocketListener(handler func(conn *VirtioSocketConnection, err error)) *VirtioSocketListener + func (o *VirtioSocketListener) Ptr() unsafe.Pointer + func (p *VirtioSocketListener) Release() + type VirtioTraditionalMemoryBalloonDeviceConfiguration struct + func NewVirtioTraditionalMemoryBalloonDeviceConfiguration() *VirtioTraditionalMemoryBalloonDeviceConfiguration + func (o *VirtioTraditionalMemoryBalloonDeviceConfiguration) Ptr() unsafe.Pointer + func (p *VirtioTraditionalMemoryBalloonDeviceConfiguration) Release() + type VirtualMachine struct + func NewVirtualMachine(config *VirtualMachineConfiguration) *VirtualMachine + func (o *VirtualMachine) Ptr() unsafe.Pointer + func (p *VirtualMachine) Release() + func (v *VirtualMachine) CanPause() bool + func (v *VirtualMachine) CanRequestStop() bool + func (v *VirtualMachine) CanResume() bool + func (v *VirtualMachine) CanStart() bool + func (v *VirtualMachine) Pause(fn func(error)) + func (v *VirtualMachine) RequestStop() (bool, error) + func (v *VirtualMachine) Resume(fn func(error)) + func (v *VirtualMachine) SocketDevices() []*VirtioSocketDevice + func (v *VirtualMachine) Start(fn func(error)) + func (v *VirtualMachine) State() VirtualMachineState + func (v *VirtualMachine) StateChangedNotify() <-chan VirtualMachineState + type VirtualMachineConfiguration struct + func NewVirtualMachineConfiguration(bootLoader BootLoader, cpu uint, memorySize uint64) *VirtualMachineConfiguration + func (o *VirtualMachineConfiguration) Ptr() unsafe.Pointer + func (p *VirtualMachineConfiguration) Release() + func (v *VirtualMachineConfiguration) SetEntropyDevicesVirtualMachineConfiguration(cs []*VirtioEntropyDeviceConfiguration) + func (v *VirtualMachineConfiguration) SetMemoryBalloonDevicesVirtualMachineConfiguration(cs []MemoryBalloonDeviceConfiguration) + func (v *VirtualMachineConfiguration) SetNetworkDevicesVirtualMachineConfiguration(cs []*VirtioNetworkDeviceConfiguration) + func (v *VirtualMachineConfiguration) SetSerialPortsVirtualMachineConfiguration(cs []*VirtioConsoleDeviceSerialPortConfiguration) + func (v *VirtualMachineConfiguration) SetSocketDevicesVirtualMachineConfiguration(cs []SocketDeviceConfiguration) + func (v *VirtualMachineConfiguration) SetStorageDevicesVirtualMachineConfiguration(cs []StorageDeviceConfiguration) + func (v *VirtualMachineConfiguration) Validate() (bool, error) + type VirtualMachineState int + const VirtualMachineStateError + const VirtualMachineStatePaused + const VirtualMachineStatePausing + const VirtualMachineStateResuming + const VirtualMachineStateRunning + const VirtualMachineStateStarting + const VirtualMachineStateStopped