Documentation
¶
Index ¶
- Constants
- func GetIPAddressByMACAddress(mac string) (string, error)
- func GetMACAddressFromUUID(id string) (string, error)
- func GetNetAddr() (net.IP, 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) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- func (d *Driver) UpdateConfigRaw(rawConfig []byte) error
- type InvalidPortNumberError
- type MultiError
- type QcowDisk
- type RetriableError
Constants ¶
View Source
const ( DriverName = "hyperkit" DriverVersion = "0.12.12" 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
func GetMACAddressFromUUID ¶
Types ¶
type Driver ¶
type Driver hyperkitdriver.Driver
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) DriverVersion ¶
func (*Driver) PreCreateCheck ¶
PreCreateCheck is called to enforce pre-creation steps
func (*Driver) UpdateConfigRaw ¶ added in v0.12.8
type InvalidPortNumberError ¶
type InvalidPortNumberError string
InvalidPortNumberError implements the Error interface. It is used when a VSockPorts port number cannot be recognised as an integer.
func (InvalidPortNumberError) Error ¶
func (port InvalidPortNumberError) Error() string
Error returns an Error for InvalidPortNumberError
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.