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) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() (err error)
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) SetConfigFromFlags(fl 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 Environment string SubscriptionID string ResourceGroup string DockerPort int Location string Size string Image string VirtualNetwork string SubnetName string SubnetPrefix string AvailabilitySet string OpenPorts []string PrivateIPAddr string UsePrivateIP bool NoPublicIP bool StaticPublicIP bool // contains filtered or unexported fields }
Driver represents Azure Docker Machine Driver.
func (*Driver) DriverName ¶
DriverName returns the name of the driver.
func (*Driver) GetCreateFlags ¶ added in v0.5.2
GetCreateFlags returns list of create flags driver accepts.
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns an IP address or hostname for the machine instance.
func (*Driver) GetURL ¶
GetURL returns a socket address to connect to Docker engine of the machine instance.
func (*Driver) PreCreateCheck ¶
PreCreateCheck validates if driver values are valid to create the machine.
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(fl drivers.DriverOptions) error
SetConfigFromFlags initializes driver values from the command line values and checks if the arguments have values.
Click to show internal directories.
Click to hide internal directories.