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 TenantID string ResourceGroup string DockerPort int Location string Size string Image string VirtualNetwork string SubnetName string SubnetPrefix string AvailabilitySet string NSG string Plan string ManagedDisks bool FaultCount int UpdateCount int DiskSize int StorageType string Tags map[string]*string AcceleratedNetworking bool AvailabilityZone string EnablePublicIPStandardSKU bool OpenPorts []string PrivateIPAddr string UsePrivateIP bool NoPublicIP bool DNSLabel string StaticPublicIP bool CustomDataFile string // Can provide cloud-config file here // 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.0
GetCreateFlags returns list of create flags driver accepts.
func (*Driver) GetSSHHostname ¶ added in v0.2.0
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.