Documentation ¶
Index ¶
- Constants
- func CreateRawDisk(diskPath string, sizeMB int) error
- func ExtraDiskPath(d *drivers.BaseDriver, diskID int) string
- func ExtractFile(isoPath, srcPath, destPath string) error
- func GetDiskPath(d *drivers.BaseDriver) string
- func GetIPAddressByMACAddress(mac string) (string, error)
- func MakeDiskImage(d *drivers.BaseDriver, boot2dockerURL string, diskSize int) error
- func Restart(d drivers.Driver) error
- func TrimMacAddress(rawUUID string) string
- type CommonDriver
- type DHCPEntry
Constants ¶
View Source
const LeasesPath = "/var/db/dhcpd_leases"
LeasesPath is the path to dhcpd leases
Variables ¶
This section is empty.
Functions ¶
func CreateRawDisk ¶ added in v1.31.0
CreateRawDisk creates a new raw disk image.
Example usage:
path := ExtraDiskPath(baseDriver, diskID) err := CreateRawDisk(path, baseDriver.DiskSize)
func ExtraDiskPath ¶ added in v1.23.0
func ExtraDiskPath(d *drivers.BaseDriver, diskID int) string
ExtraDiskPath returns the path of an additional disk suffixed with an ID.
func ExtractFile ¶ added in v1.34.0
ExtractFile extracts a file from an ISO
func GetDiskPath ¶
func GetDiskPath(d *drivers.BaseDriver) string
GetDiskPath returns the path of the machine disk image
func GetIPAddressByMACAddress ¶ added in v1.27.1
GetIPAddressByMACAddress gets the IP address of a MAC address
func MakeDiskImage ¶
func MakeDiskImage(d *drivers.BaseDriver, boot2dockerURL string, diskSize int) error
MakeDiskImage makes a boot2docker VM disk image.
func Restart ¶
Restart a host. This may just call Stop(); Start() if the provider does not have any special restart behaviour.
func TrimMacAddress ¶ added in v1.27.1
TrimMacAddress trimming "0" of the ten's digit
Types ¶
type CommonDriver ¶
type CommonDriver struct{}
CommonDriver is the common driver base class
func (*CommonDriver) GetCreateFlags ¶
func (d *CommonDriver) GetCreateFlags() []mcnflag.Flag
GetCreateFlags is not implemented yet
func (*CommonDriver) SetConfigFromFlags ¶
func (d *CommonDriver) SetConfigFromFlags(_ drivers.DriverOptions) error
SetConfigFromFlags is not implemented yet
Click to show internal directories.
Click to hide internal directories.