Documentation
¶
Index ¶
- Variables
- func LoadAzureCredentials() (map[string]string, error)
- func NewServicePrincipalTokenFromCredentials(c map[string]string, scope string) (*azure.ServicePrincipalToken, error)
- type AzureClient
- func (c *AzureClient) CreateInstance(resourceGroupName, storageAccountName, location string, ...) error
- func (c *AzureClient) DeleteInstance(resourceGroupName, storageAccountName string) error
- func (c *AzureClient) GetAccessKeys(...) (string, string, error)
- func (c *AzureClient) GetInstanceState(resourceGroupName, storageAccountName string) (string, string, error)
- func (c *AzureClient) RegenerateAccessKeys(resourceGroupName, storageAccountName string) error
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 ¶
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
Click to show internal directories.
Click to hide internal directories.