Documentation ¶
Rendered for darwin/amd64
Index ¶
- Constants
- func GetIPAddressByMACAddress(mac string) (string, error)
- func RetryAfter(attempts int, callback func() error, d time.Duration) (err error)
- type DHCPEntry
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) DriverVersion() string
- func (d *Driver) GetSharedDirs() ([]drivers.SharedDir, error)
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- func (d *Driver) UpdateConfigRaw(rawConfig []byte) error
- type MultiError
- type RetriableError
Constants ¶
View Source
const ( DriverName = "vf" DriverVersion = "0.14.0" DefaultMemory = 8192 DefaultCPUs = 4 DefaultSSHUser = "core" )
View Source
const ( // LeasesPath is the path to dhcpd leases LeasesPath = "/var/db/dhcpd_leases" // VMNetDomain is the domain for vmnet VMNetDomain = "/Library/Preferences/SystemConfiguration/com.apple.vmnet" SharedNetAddrKey = "Shared_Net_Address" )
Variables ¶
This section is empty.
Functions ¶
func GetIPAddressByMACAddress ¶
GetIPAddressByMACAddress gets the IP address of a MAC address
Types ¶
type Driver ¶
type Driver struct { *drivers.VMDriver VmlinuzPath string Cmdline string InitrdPath string VfkitPath string VirtioNet bool VsockPath string DaemonVsockPort uint QemuGAVsockPort uint }
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) PreCreateCheck ¶
PreCreateCheck allows for pre-create operations to make sure a driver is ready for creation
func (*Driver) UpdateConfigRaw ¶
UpdateConfigRaw allows to change the state (memory, ...) of an already created machine
type MultiError ¶
type MultiError struct {
Errors []error
}
MultiError holds multiple errors
func (MultiError) ToError ¶
func (m MultiError) ToError() error
ToError converts all errors into one
type RetriableError ¶
type RetriableError struct {
Err error
}
RetriableError is an error that can be tried again
func (RetriableError) Error ¶
func (r RetriableError) Error() string
Click to show internal directories.
Click to hide internal directories.