Documentation ¶
Index ¶
- func NewDriver(hostName, storePath string) drivers.Driver
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DoSshCopy(client api.SkytapClient, password string) error
- func (d *Driver) DriverName() string
- func (d *Driver) GenerateSshKeyAndCopy() error
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetMachineName() string
- func (d *Driver) GetSSHHostname() (string, error)
- 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) SetLogLevel()
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver ClientCredentials api.SkytapCredentials DeviceConfig deviceConfig Vm api.VirtualMachine LogLevel logrus.Level LastState state.State HardwareConfig *api.Hardware ContainerHost bool }
Driver is the driver used when no driver is selected. It is used to connect to existing Docker hosts by specifying the URL of the host as an option.
func (*Driver) DoSshCopy ¶
func (d *Driver) DoSshCopy(client api.SkytapClient, password string) error
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) GenerateSshKeyAndCopy ¶
Generates a new SSH keypair, uses password auth to create the .ssh/authorized_keys file for later docker-machine access.
func (*Driver) GetCreateFlags ¶
func (*Driver) GetMachineName ¶
func (*Driver) GetSSHHostname ¶
func (*Driver) PreCreateCheck ¶
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
func (*Driver) SetLogLevel ¶
func (d *Driver) SetLogLevel()
Click to show internal directories.
Click to hide internal directories.