Versions in this module Expand all Collapse all v0 v0.16.2 Sep 2, 2019 Changes in this version + var ErrMachineNotExist = errors.New("machine does not exist") + var ErrMustEnableVTX = errors.New(...) + var ErrNetworkAddrCidr = errors.New("host-only cidr must be specified with a host address, not a network address") + var ErrNetworkAddrCollision = errors.New("host-only cidr conflicts with the network address of a host interface") + var ErrNotCompatibleWithHyperV = errors.New(...) + var ErrUnableToGenerateRandomIP = errors.New("unable to generate random IP") + var ErrVBMNotFound = errors.New(...) + type B2DUpdater interface + CopyIsoToMachineDir func(storePath, machineName, isoURL string) error + UpdateISOCache func(storePath, isoURL string) error + func NewB2DUpdater() B2DUpdater + type DiskCreator interface + Create func(size int, publicSSHKeyPath, diskPath string) error + func NewDiskCreator() DiskCreator + type Driver struct + Boot2DockerImportVM string + Boot2DockerURL string + CPU int + DNSProxy bool + DiskSize int + HostDNSResolver bool + HostOnlyCIDR string + HostOnlyNicType string + HostOnlyNoDHCP bool + HostOnlyPromiscMode string + Memory int + NatNicType string + NoShare bool + NoVTXCheck bool + ShareFolder string + UIType string + func NewDriver(hostName, storePath string) *Driver + func (d *Driver) Create() error + func (d *Driver) CreateVM() error + func (d *Driver) DriverName() string + func (d *Driver) GetCreateFlags() []mcnflag.Flag + func (d *Driver) GetIP() (string, error) + func (d *Driver) GetSSHHostname() (string, error) + func (d *Driver) GetSSHUsername() string + func (d *Driver) GetState() (state.State, error) + func (d *Driver) GetURL() (string, error) + func (d *Driver) IsVTXDisabled() bool + func (d *Driver) IsVTXDisabledInTheVM() (bool, 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 HostInterfaces interface + Addrs func(iface *net.Interface) ([]net.Addr, error) + Interfaces func() ([]net.Interface, error) + func NewHostInterfaces() HostInterfaces + type IPWaiter interface + Wait func(d *Driver) error + func NewIPWaiter() IPWaiter + type LogsReader interface + Read func(path string) ([]string, error) + func NewLogsReader() LogsReader + type RandomInter interface + RandomInt func(n int) int + func NewRandomInter() RandomInter + type SSHKeyGenerator interface + Generate func(path string) error + func NewSSHKeyGenerator() SSHKeyGenerator + type Sleeper interface + Sleep func(d time.Duration) + func NewSleeper() Sleeper + type VBoxCmdManager struct + func NewVBoxManager() *VBoxCmdManager + type VBoxManager interface + type VM struct + CPUs int + Memory int + type VirtualDisk struct + Path string + UUID string