Versions in this module Expand all Collapse all v0 v0.5.1 Nov 16, 2015 Changes in this version + const DefaultSSHPort + const DefaultSSHUser + var ErrHostIsNotRunning = errors.New("Host is not running") + func GetSSHClientFromDriver(d Driver) (ssh.Client, error) + func MachineInState(d Driver, desiredState state.State) func() bool + func RunSSHCommandFromDriver(d Driver, command string) (string, error) + func WaitForSSH(d Driver) error + type BaseDriver struct + IPAddress string + MachineName string + SSHKeyPath string + SSHPort int + SSHUser string + StorePath string + SwarmDiscovery string + SwarmHost string + SwarmMaster bool + func (d *BaseDriver) DriverName() string + func (d *BaseDriver) GetIP() (string, error) + func (d *BaseDriver) GetMachineName() string + func (d *BaseDriver) GetSSHKeyPath() string + func (d *BaseDriver) GetSSHPort() (int, error) + func (d *BaseDriver) GetSSHUsername() string + func (d *BaseDriver) PreCreateCheck() error + func (d *BaseDriver) ResolveStorePath(file string) string + type CheckDriverOptions struct + CreateFlags []mcnflag.Flag + FlagsValues map[string]interface{} + InvalidFlags []string + func (o *CheckDriverOptions) Bool(key string) bool + func (o *CheckDriverOptions) Int(key string) int + func (o *CheckDriverOptions) String(key string) string + func (o *CheckDriverOptions) StringSlice(key string) []string + type Driver interface + Create func() error + DriverName func() string + GetCreateFlags func() []mcnflag.Flag + GetIP func() (string, error) + GetMachineName func() string + GetSSHHostname func() (string, error) + GetSSHKeyPath func() string + GetSSHPort func() (int, error) + GetSSHUsername func() string + GetState func() (state.State, error) + GetURL func() (string, error) + Kill func() error + PreCreateCheck func() error + Remove func() error + Restart func() error + SetConfigFromFlags func(opts DriverOptions) error + Start func() error + Stop func() error + func NewSerialDriver(innerDriver Driver) Driver + type DriverOptions interface + Bool func(key string) bool + Int func(key string) int + String func(key string) string + StringSlice func(key string) []string + type SerialDriver struct + func (d *SerialDriver) Create() error + func (d *SerialDriver) DriverName() string + func (d *SerialDriver) GetCreateFlags() []mcnflag.Flag + func (d *SerialDriver) GetIP() (string, error) + func (d *SerialDriver) GetMachineName() string + func (d *SerialDriver) GetSSHHostname() (string, error) + func (d *SerialDriver) GetSSHKeyPath() string + func (d *SerialDriver) GetSSHPort() (int, error) + func (d *SerialDriver) GetSSHUsername() string + func (d *SerialDriver) GetState() (state.State, error) + func (d *SerialDriver) GetURL() (string, error) + func (d *SerialDriver) Kill() error + func (d *SerialDriver) PreCreateCheck() error + func (d *SerialDriver) Remove() error + func (d *SerialDriver) Restart() error + func (d *SerialDriver) SetConfigFromFlags(opts DriverOptions) error + func (d *SerialDriver) Start() error + func (d *SerialDriver) Stop() error