Versions in this module Expand all Collapse all v0 v0.16.2 Sep 2, 2019 Changes in this version + const DefaultEngineInstallURL + const DefaultSSHPort + const DefaultSSHUser + var ErrHostIsNotRunning = errors.New("Host is not running") + func EngineInstallURLFlagSet(flags DriverOptions) bool + func EngineInstallURLSet(url string) bool + func GetSSHClientFromDriver(d Driver) (ssh.Client, error) + func MachineInState(d Driver, desiredState state.State) func() bool + func MustBeRunning(d Driver) error + 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 + func (d *BaseDriver) SetSwarmConfigFromFlags(flags DriverOptions) + 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 NewDriverNotSupported(driverName, hostName, storePath string) Driver + func NewSerialDriver(innerDriver Driver) Driver + type DriverNotSupported struct + Name string + func (d *DriverNotSupported) Create() error + func (d *DriverNotSupported) DriverName() string + func (d *DriverNotSupported) GetCreateFlags() []mcnflag.Flag + func (d *DriverNotSupported) GetSSHHostname() (string, error) + func (d *DriverNotSupported) GetState() (state.State, error) + func (d *DriverNotSupported) GetURL() (string, error) + func (d *DriverNotSupported) Kill() error + func (d *DriverNotSupported) PreCreateCheck() error + func (d *DriverNotSupported) Remove() error + func (d *DriverNotSupported) Restart() error + func (d *DriverNotSupported) SetConfigFromFlags(flags DriverOptions) error + func (d *DriverNotSupported) Start() error + func (d *DriverNotSupported) Stop() error + func (d *DriverNotSupported) Upgrade() error + type DriverOptions interface + Bool func(key string) bool + Int func(key string) int + String func(key string) string + StringSlice func(key string) []string + type NotSupported struct + DriverName string + func (e NotSupported) Error() 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) MarshalJSON() ([]byte, 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