Documentation
¶
Index ¶
- Constants
- func NewDriver(hostName, storePath string) drivers.Driver
- type AuthFlag
- type Driver
- 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) GetSSHHostname() (string, 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) 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
- func (d *Driver) Upgrade() error
- type FileAttrFlag
Constants ¶
View Source
const (
// B2DUser is the guest User for tools login
B2DUser = "docker"
// B2DPass is the guest Pass for tools login
B2DPass = "tcuser"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
*drivers.BaseDriver
Memory int
DiskSize int
CPU int
ISO string
Boot2DockerURL string
CPUS int
IP string
Port int
Username string
Password string
Network string
Datastore string
Datacenter string
Pool string
HostSystem string
SSHPassword string
}
func (*Driver) Create ¶
func (d *Driver) Create() error
Create has the following implementation: 1. check whether the docker directory contains the boot2docker ISO 2. generate an SSH keypair and bundle it in a tar. 3. create a virtual machine with the boot2docker ISO mounted; 4. reconfigure the virtual machine network and disk size;
func (*Driver) DriverName ¶
func (d *Driver) DriverName() string
DriverName returns the name of the driver
func (*Driver) GetCreateFlags ¶ added in v0.5.0
func (d *Driver) GetCreateFlags() []mcnflag.Flag
GetCreateFlags registers the flags this driver adds to "docker-machine create"
func (*Driver) GetSSHHostname ¶ added in v0.2.0
func (d *Driver) GetSSHHostname() (string, error)
func (*Driver) GetSSHUsername ¶ added in v0.2.0
func (d *Driver) GetSSHUsername() string
func (*Driver) PreCreateCheck ¶
func (d *Driver) PreCreateCheck() error
PreCreateCheck checks that the machine creation process can be started safely.
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
type FileAttrFlag ¶ added in v0.5.5
type FileAttrFlag struct {
types.GuestPosixFileAttributes
}
Click to show internal directories.
Click to hide internal directories.