azure_client

package
v0.0.0-...-8d027c9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFoundSubscriptionID = errors.New("No subscriptionID provided in environment variables")
	ErrNotFoundTenantID       = errors.New("No tenantID provided in environment variables")
	ErrNotFoundClientID       = errors.New("No clientID provided in environment variables")
	ErrNotFoundClientSecret   = errors.New("No clientSecret provided in environment variables")
)

Functions

func LoadAzureCredentials

func LoadAzureCredentials() (map[string]string, error)

LoadAzureCredentials reads credentials from environment variables

func NewServicePrincipalTokenFromCredentials

func NewServicePrincipalTokenFromCredentials(c map[string]string, scope string) (*azure.ServicePrincipalToken, error)

NewServicePrincipalTokenFromCredentials creates a new ServicePrincipalToken using values of the passed credentials map.

Types

type AzureClient

type AzureClient struct {
	GroupsClient   *resources.GroupsClient
	AccountsClient *storage.AccountsClient
}

func NewClient

func NewClient() *AzureClient

func (*AzureClient) CreateInstance

func (c *AzureClient) CreateInstance(resourceGroupName, storageAccountName, location string, accountType storage.AccountType) error

func (*AzureClient) DeleteInstance

func (c *AzureClient) DeleteInstance(resourceGroupName, storageAccountName string) error

func (*AzureClient) GetAccessKeys

func (c *AzureClient) GetAccessKeys(resourceGroupName, storageAccountName, containerName, containerAccessType string) (string, string, error)

func (*AzureClient) GetInstanceState

func (c *AzureClient) GetInstanceState(resourceGroupName, storageAccountName string) (string, string, error)

func (*AzureClient) RegenerateAccessKeys

func (c *AzureClient) RegenerateAccessKeys(resourceGroupName, storageAccountName string) error

Jump to

Keyboard shortcuts

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