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
ClientID string // service principal account name
ClientSecret string // service principal account password
Environment string
SubscriptionID string
ResourceGroup string
DockerPort int
Location string
Size string
Image string
VirtualNetwork string
SubnetName string
SubnetPrefix string
AvailabilitySet string
StorageType string
OpenPorts []string
PrivateIPAddr string
UsePrivateIP bool
NoPublicIP bool
DNSLabel string
StaticPublicIP bool
CustomDataFile string
// contains filtered or unexported fields
}
Driver represents Azure Docker Machine Driver.
func (*Driver) DriverName ¶
func (d *Driver) DriverName() string
DriverName returns the name of the driver.
func (*Driver) GetCreateFlags ¶ added in v0.5.0
func (d *Driver) GetCreateFlags() []mcnflag.Flag
GetCreateFlags returns list of create flags driver accepts.
func (*Driver) GetIP ¶
func (d *Driver) GetIP() (string, error)
GetIP returns public IP address or hostname of the machine instance.
func (*Driver) GetSSHHostname ¶ added in v0.2.0
func (d *Driver) GetSSHHostname() (string, error)
GetSSHHostname returns an IP address or hostname for the machine instance.
func (*Driver) GetState ¶
func (d *Driver) GetState() (state.State, error)
GetState returns the state of the virtual machine role instance.
func (*Driver) GetURL ¶
func (d *Driver) GetURL() (string, error)
GetURL returns a socket address to connect to Docker engine of the machine instance.
func (*Driver) PreCreateCheck ¶
func (d *Driver) PreCreateCheck() (err error)
PreCreateCheck validates if driver values are valid to create the machine.
func (*Driver) Remove ¶
func (d *Driver) Remove() error
Remove deletes the virtual machine and resources associated to it.
func (*Driver) Restart ¶
func (d *Driver) Restart() error
Restart reboots the virtual machine instance.
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.