Documentation ¶
Index ¶
- func NewDriver(hostName, storePath string) drivers.Driver
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver ID string APIEndpoint string APIURL string APIRegion string APIKey string SecretKey string HTTPGETOnly bool JobTimeOut int64 SSHKeyPair string CIDRList []string Template string TemplateID string ServiceOffering string ServiceOfferingID string DeleteVolumes bool DiskOffering string DiskOfferingID string DiskSize int Zone string ZoneID string UserDataFile string UserData string Tags []string DisplayName string }
Driver implements the libmachine/drivers.Driver interface
func (*Driver) DriverName ¶
DriverName returns the name of the driver as it is registered
func (*Driver) GetCreateFlags ¶
GetCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns a hostname used for connecting via SSH
func (*Driver) GetSSHUsername ¶
GetSSHUsername returns an username used for connecting via SSH
func (*Driver) GetURL ¶
GetURL returns a Docker compatible host URL for connecting to this host e.g. tcp://1.2.3.4:2376
func (*Driver) PreCreateCheck ¶
PreCreateCheck allows for pre-create operations to make sure a driver is ready for creation
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
SetConfigFromFlags configures the driver with the object that was returned by RegisterCreateFlags
Click to show internal directories.
Click to hide internal directories.