Documentation ¶
Index ¶
- type API
- func (a *API) CreateImage(name, resourceGroup, blobURI string) (armcompute.Image, error)
- func (a *API) CreateInstance(name, userdata, sshkey, resourceGroup, storageAccount string) (*Machine, error)
- func (a *API) CreateResourceGroup(prefix string) (string, error)
- func (a *API) CreateStorageAccount(resourceGroup string) (string, error)
- func (a *API) DeleteBlockBlob(storageaccount, key, container, blob string) error
- func (a *API) DeleteImage(name, resourceGroup string) error
- func (a *API) DeletePageBlob(storageaccount, key, container, blobname string) error
- func (a *API) GC(gracePeriod time.Duration) error
- func (a *API) GetBlockBlob(storageaccount, key, container, name string) (io.ReadCloser, error)
- func (a *API) GetConsoleOutput(name, resourceGroup, storageAccount string) ([]byte, error)
- func (a *API) GetIPAddresses(name, publicIPName, resourceGroup string) (string, string, error)
- func (a *API) GetPrivateIP(interfaceName, resourceGroup string) (string, error)
- func (a *API) GetPublicIP(name, resourceGroup string) (string, error)
- func (a *API) GetStorageServiceKeys(account, resourceGroup string) (armstorage.AccountListKeysResult, error)
- func (a *API) ListResourceGroups() ([]*armresources.ResourceGroup, error)
- func (a *API) PageBlobExists(storageaccount, key, container, blobname string) (bool, error)
- func (a *API) PrepareNetworkResources(resourceGroup string) (armnetwork.Subnet, error)
- func (a *API) SetupClients() error
- func (a *API) TerminateInstance(name, resourceGroup string) error
- func (a *API) TerminateResourceGroup(name string) error
- func (a *API) UploadPageBlob(storageaccount, key, file, container, blobname string) error
- type Machine
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new Azure client. If no publish settings file is provided or can't be parsed, an anonymous client is created.
func (*API) CreateImage ¶
func (a *API) CreateImage(name, resourceGroup, blobURI string) (armcompute.Image, error)
func (*API) CreateInstance ¶
func (*API) CreateStorageAccount ¶
func (*API) DeleteBlockBlob ¶
func (*API) DeleteImage ¶
DeleteImage removes Azure image
func (*API) DeletePageBlob ¶
func (*API) GetBlockBlob ¶
func (a *API) GetBlockBlob(storageaccount, key, container, name string) (io.ReadCloser, error)
func (*API) GetConsoleOutput ¶
func (*API) GetIPAddresses ¶
returns PublicIP, PrivateIP, error
func (*API) GetPrivateIP ¶
func (*API) GetStorageServiceKeys ¶
func (a *API) GetStorageServiceKeys(account, resourceGroup string) (armstorage.AccountListKeysResult, error)
func (*API) ListResourceGroups ¶
func (a *API) ListResourceGroups() ([]*armresources.ResourceGroup, error)
func (*API) PageBlobExists ¶
func (*API) PrepareNetworkResources ¶
func (a *API) PrepareNetworkResources(resourceGroup string) (armnetwork.Subnet, error)
func (*API) SetupClients ¶
func (*API) TerminateInstance ¶
func (*API) TerminateResourceGroup ¶
func (*API) UploadPageBlob ¶
type Options ¶
type Options struct { *platform.Options AzureCredentials string AzureSubscription string DiskURI string Publisher string Offer string Sku string Version string Size string Location string SubscriptionName string SubscriptionID string // Azure Storage API endpoint suffix. If unset, the Azure SDK default will be used. StorageEndpointSuffix string }
Click to show internal directories.
Click to hide internal directories.