Documentation ¶
Index ¶
- Constants
- func ExtractFile(isoPath, srcPath, destPath string) error
- func GetIPAddressByMACAddress(mac string) (string, error)
- func GetMACAddressFromUUID(UUID string) (string, error)
- func GetNetAddr() (net.IP, error)
- func ReadFile(isoPath, srcPath string) (string, error)
- type DHCPEntry
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- 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) Start() error
- func (d *Driver) Stop() error
Constants ¶
View Source
const ( DHCPLeasesFile = "/var/db/dhcpd_leases" CONFIG_PLIST = "/Library/Preferences/SystemConfiguration/com.apple.vmnet" NET_ADDR_KEY = "Shared_Net_Address" )
Variables ¶
This section is empty.
Functions ¶
func ExtractFile ¶
func GetMACAddressFromUUID ¶ added in v0.23.0
func GetNetAddr ¶ added in v0.25.0
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver *pkgdrivers.CommonDriver Boot2DockerURL string DiskSize int CPU int Memory int Cmdline string UUID string }
func (*Driver) DriverName ¶
DriverName returns the name of the driver
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 ¶ added in v0.24.0
PreCreateCheck is called to enforce pre-creation steps
Click to show internal directories.
Click to hide internal directories.