Documentation
¶
Index ¶
- Constants
- func GetIPAddressByMACAddress(mac string) (string, error)
- func GetMACAddressFromUUID(id string) (string, error)
- func GetNetAddr() (net.IP, error)
- type DHCPEntry
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetSSHHostname() (string, error)
- 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) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- type ISOBootFiles
- type InvalidPortNumberError
Constants ¶
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 struct {
*drivers.BaseDriver
*pkgdrivers.CommonDriver
BootInitrd string
BootKernel string
Boot2DockerURL string
DiskSize int
CPU int
Memory int
Cmdline string
NFSFlags string
UUID string
VpnKitSock string
VSockPorts []string
}
Driver is the machine driver for Hyperkit
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) GetCreateFlags ¶
GetCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns hostname for use with ssh
func (*Driver) GetURL ¶
GetURL returns a Docker compatible host URL for connecting to this host e.g. tcp://1.2.3.4:2376
func (*Driver) PreCreateCheck ¶
PreCreateCheck is called to enforce pre-creation steps
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags sets the machine config
type ISOBootFiles ¶
func ISOExtractBootFiles ¶
func ISOExtractBootFiles(isoPath, destDirPath string) (ISOBootFiles, error)
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
Click to show internal directories.
Click to hide internal directories.