Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string) error
- type Driver
- func (d *Driver) CopyIsoToMachineDir(isoURL, machineName string) error
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetMachineName() string
- func (d *Driver) GetPid() (int, error)
- func (d *Driver) GetSSHHostname() (string, error)
- func (d *Driver) GetSSHKeyPath() string
- func (d *Driver) GetSSHPort() (int, error)
- func (d *Driver) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCommandCheck() error
- func (d *Driver) PreCreateCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) SendSignal(sig os.Signal) error
- func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- func (d *Driver) UpdateISOCache(isoURL string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDdNotFound = errors.New("xhyve not found") ErrUuidgenNotFound = errors.New("uuidgen not found") ErrHdiutilNotFound = errors.New("hdiutil not found") ErrVBMNotFound = errors.New("VBoxManage not found") )
View Source
var ( // Version should be updated by hand at each release Version = "0.3.1" // GitCommit will be overwritten automatically by the build system GitCommit = "HEAD" )
View Source
var ( ErrMachineExist = errors.New("machine already exists") ErrMachineNotExist = errors.New("machine does not exist") )
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver *b2d.B2dUtils Boot2DockerURL string CaCertPath string PrivateKeyPath string CPU int Memory int DiskSize int64 DiskNumber int MacAddr string UUID string Qcow2 bool Virtio9p bool Virtio9pFolder string BootCmd string BootKernel string BootInitrd string Initrd string Vmlinuz string }
func (*Driver) CopyIsoToMachineDir ¶
func (*Driver) DriverName ¶
func (*Driver) GetCreateFlags ¶
RegisterCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetMachineName ¶
func (*Driver) GetSSHHostname ¶
func (*Driver) GetSSHKeyPath ¶
func (*Driver) GetSSHPort ¶
func (*Driver) GetSSHUsername ¶
func (*Driver) PreCommandCheck ¶
PreCommandCheck Check required of docker-machine-driver-xhyve before any func func: GetURL, PreCreateCheck, Start, Stop, Restart
func (*Driver) PreCreateCheck ¶
PreCreateCheck Prints driver version, and Check VirtualBox version
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
func (*Driver) UpdateISOCache ¶
Click to show internal directories.
Click to hide internal directories.