azure

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidAzureClientErr = errors.New("invalid azure sdk client defined")
View Source
var MultipleMatchesErr = errors.New("multiple VM names match the provided prefix")
View Source
var NoMatchesErr = errors.New("no VM names match the provided prefix")

Functions

This section is empty.

Types

type BlobCopier

type BlobCopier interface {
	CopyBlob(container, name, sourceBlob string) error
}

type Client

type Client struct {
	BlobServiceClient     BlobCopier
	VirtualMachinesClient ComputeVirtualMachinesClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	subscriptionID string,
	clientID string,
	clientSecret string,
	tenantID string,
	resourceGroupName string,
	resourceManagerEndpoint string,
) (*Client, error)

func (*Client) Delete

func (s *Client) Delete(identifier string) error

func (*Client) Replace

func (s *Client) Replace(identifier string, vhdURL string) error

func (*Client) SetBlobServiceClient

func (s *Client) SetBlobServiceClient(storageAccountName string, storageAccountKey string, storageURL string) error

func (*Client) SetStorageAccountName

func (s *Client) SetStorageAccountName(name string)

func (*Client) SetStorageBaseURL

func (s *Client) SetStorageBaseURL(baseURL string)

func (*Client) SetStorageContainerName

func (s *Client) SetStorageContainerName(name string)

func (*Client) SetVMAdminPassword

func (s *Client) SetVMAdminPassword(password string)

type ComputeVirtualMachinesClient

type ComputeVirtualMachinesClient interface {
	Get(resourceGroupName string, vmName string, expand compute.InstanceViewTypes) (result compute.VirtualMachine, err error)
	ListAllNextResults(lastResults compute.VirtualMachineListResult) (result compute.VirtualMachineListResult, err error)
	CreateOrUpdate(resourceGroupName string, vmName string, parameters compute.VirtualMachine, cancel <-chan struct{}) (result autorest.Response, err error)
	Delete(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)
	Deallocate(resourceGroupName string, vmName string, cancel <-chan struct{}) (result autorest.Response, err error)
	List(resourceGroupName string) (result compute.VirtualMachineListResult, err error)
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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