Documentation ¶
Index ¶
- func NewDriver(machineName, 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) 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 URL string APIKey string `json:"ApiKey"` APISecretKey string `json:"ApiSecretKey"` InstanceProfile string DiskSize int64 Image string SecurityGroups []string AffinityGroups []string AvailabilityZone string SSHKey string KeyPair string Password string PublicKey string UserDataFile string UserData []byte ID string `json:"Id"` }
Driver is the struct compatible with github.com/docker/machine/libmachine/drivers.Driver interface
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) GetCreateFlags ¶
GetCreateFlags registers the flags this driver adds to "docker hosts create"
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns the hostname to use with SSH
func (*Driver) GetSSHUsername ¶
GetSSHUsername returns the username to use with SSH
func (*Driver) GetState ¶
GetState returns a github.com/machine/libmachine/state.State representing the state of the host (running, stopped, etc.)
func (*Driver) GetURL ¶
GetURL returns a Docker compatible host URL for connecting to this host e.g tcp://10.1.2.3: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