azure

package
v0.15.0-rancher62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(hostName, storePath string) drivers.Driver

NewDriver returns a new driver instance.

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
	ManagedDisks    bool
	FaultCount      int
	UpdateCount     int
	DiskSize        int
	StorageType     string

	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) Create

func (d *Driver) Create() error

Create creates the virtual machine.

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) Kill

func (d *Driver) Kill() error

Kill stops the virtual machine role 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.

func (*Driver) Start

func (d *Driver) Start() error

Start issues a power on for the virtual machine instance.

func (*Driver) Stop

func (d *Driver) Stop() error

Stop issues a power off for the virtual machine instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL