xhyve

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2016 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

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

func CopyFile

func CopyFile(src, dst string) error

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
	NFSShare       bool

	BootCmd    string
	BootKernel string
	BootInitrd string
	Initrd     string
	Vmlinuz    string
}

func NewDriver

func NewDriver(hostName, storePath string) *Driver

NewDriver creates a new VirtualBox driver with default settings.

func (*Driver) CopyIsoToMachineDir

func (d *Driver) CopyIsoToMachineDir(isoURL, machineName string) error

func (*Driver) Create

func (d *Driver) Create() error

func (*Driver) DriverName

func (d *Driver) DriverName() string

func (*Driver) GetCreateFlags

func (d *Driver) GetCreateFlags() []mcnflag.Flag

RegisterCreateFlags registers the flags this driver adds to "docker hosts create"

func (*Driver) GetIP

func (d *Driver) GetIP() (string, error)

func (*Driver) GetMachineName

func (d *Driver) GetMachineName() string

func (*Driver) GetPid

func (d *Driver) GetPid() (int, error)

func (*Driver) GetSSHHostname

func (d *Driver) GetSSHHostname() (string, error)

func (*Driver) GetSSHKeyPath

func (d *Driver) GetSSHKeyPath() string

func (*Driver) GetSSHPort

func (d *Driver) GetSSHPort() (int, error)

func (*Driver) GetSSHUsername

func (d *Driver) GetSSHUsername() string

func (*Driver) GetState

func (d *Driver) GetState() (state.State, error)

func (*Driver) GetURL

func (d *Driver) GetURL() (string, error)

func (*Driver) Kill

func (d *Driver) Kill() error

func (*Driver) PreCommandCheck

func (d *Driver) PreCommandCheck() error

PreCommandCheck Check required of docker-machine-driver-xhyve before any func func: GetURL, PreCreateCheck, Start, Stop, Restart

func (*Driver) PreCreateCheck

func (d *Driver) PreCreateCheck() error

PreCreateCheck Prints driver version, and Check VirtualBox version

func (*Driver) Remove

func (d *Driver) Remove() error

func (*Driver) Restart

func (d *Driver) Restart() error

func (*Driver) SendSignal

func (d *Driver) SendSignal(sig os.Signal) error

func (*Driver) SetConfigFromFlags

func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error

func (*Driver) Start

func (d *Driver) Start() error

func (*Driver) Stop

func (d *Driver) Stop() error

func (*Driver) UpdateISOCache

func (d *Driver) UpdateISOCache(isoURL string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL