Documentation ¶
Overview ¶
nolint:gocritic,exhaustivestruct,exhaustruct,nosnakecase
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsolationMode ¶
type IsolationMode bool
const ( // NOTE: might want to let the user define it via flags Enabled IsolationMode = true Disabled IsolationMode = false )
If enabled, no VM <-> VM communication allowed https://developer.apple.com/documentation/vmnet/vmnet_enable_isolation_key
type OperationMode ¶
const ( // Host: not implemented Host OperationMode = 1000 Shared OperationMode = 1001 // Bridged: not implemented Bridged OperationMode = 1002 )
https://developer.apple.com/documentation/vmnet/operating_modes_t
type VMNet ¶
type VMNet struct { // vmnet params Params // The maximum size of the packet that can be written to the interface. // This also defines the minimum size of the packet that needs to be passed // to the vmnet function for a successful read. MaxPacketSize int // The MTU to be configured on the virtual interface in the guest operating system. MTU int // By listening on VMNET_INTERFACE_PACKETS_AVAILABLE events, the registered callback // notifes us that the interface is readable. The read packes are being passed to the Even chan. // See packetsAvailable for more. Event chan []byte // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.