azure

package
v0.0.0-...-5957262 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACRNetworkAcls

func ACRNetworkAcls(t *testing.T, subscriptionID string, resourceGroupName string, acrName string) *containerregistry.NetworkRuleSet

ACRNetworkAcls - Like ACRNetworkAclsE but fails in the case an error is returned

func ACRNetworkAclsE

func ACRNetworkAclsE(subscriptionID string, resourceGroupName string, acrName string) (*containerregistry.NetworkRuleSet, error)

ACRNetworkAclsE - Return the newtwork ACLs for an ACR instance

func ACRRegistryE

func ACRRegistryE(subscriptionID string, resourceGroupName string, acrName string) (*containerregistry.Registry, error)

ACRRegistryE - Return the Registry structure for the given ACR

func ACRWebHook

func ACRWebHook(t *testing.T, subscriptionID string, resourceGroupName string, acrName string, webhookName string) *containerregistry.Webhook

ACRWebHook - Like ACRWebHookE but fails in the case an error is returned

func ACRWebHookCallback

func ACRWebHookCallback(t *testing.T, subscriptionID string, resourceGroupName string, acrName string, webhookName string) *containerregistry.CallbackConfig

ACRWebHookCallback - Like ACRWebHookCallbackE but fails in the case an error is returned

func ACRWebHookCallbackE

func ACRWebHookCallbackE(subscriptionID string, resourceGroupName string, acrName string, webhookName string) (*containerregistry.CallbackConfig, error)

ACRWebHookCallbackE - Get callback config for a webhook

func ACRWebHookE

func ACRWebHookE(subscriptionID string, resourceGroupName string, acrName string, webhookName string) (*containerregistry.Webhook, error)

ACRWebHookE - Return ACR Webhook definition

func CliServicePrincipalLogin

func CliServicePrincipalLogin(t *testing.T)

CliServicePrincipalLogin - Like CliServicePrincipalLoginE but fails in the case an error is returned

func CliServicePrincipalLoginE

func CliServicePrincipalLoginE(t *testing.T) error

CliServicePrincipalLoginE - Log into the local Azure CLI instance

func DeploymentServicePrincipalAuthorizer

func DeploymentServicePrincipalAuthorizer() (autorest.Authorizer, error)

DeploymentServicePrincipalAuthorizer - Returns an authorizer configured with the service principal used to execute the terraform commands

func GetAppGatewayProperties

func GetAppGatewayProperties(subscription string, resourceGroupName string, appGatewayName string) (*network.ApplicationGateway, error)

GetAppGatewayProperties - Get properties for an app gateway

func GetCache

func GetCache(t *testing.T, subscriptionID string, resourceGroupName string, cacheName string) *redis.ResourceType

GetCache - Retrieves the properties of a cache.

func GetCacheE

func GetCacheE(subscriptionID string, resourceGroupName string, cacheName string) (*redis.ResourceType, error)

GetCacheE - Retrieves the properties of a cache.

func GetCosmosDBAccount

func GetCosmosDBAccount(t *testing.T, subscriptionID string, resourceGroupName string, accountName string) *documentdb.DatabaseAccount

GetCosmosDBAccount - Retrieves the properties of a CosmosDB Database Account.

func GetKeyVaultSecretValue

func GetKeyVaultSecretValue(t *testing.T, vaultURI string, secretName string, secretVersion string) *string

GetKeyVaultSecretValue - Returns the keyvault secret value

func GetRedisCacheEntryValueStr

func GetRedisCacheEntryValueStr(t *testing.T, client *redis7Api.Client, cacheKey string) string

GetRedisCacheEntryValueStr - Retrieves a cache entry from the target redis cluster

func KeyVaultNetworkAcls

func KeyVaultNetworkAcls(t *testing.T, subscriptionID string, resourceGroupName string, keyVaultName string) *keyvault.NetworkRuleSet

KeyVaultNetworkAcls - Like KeyVaultNetworkAclsE but fails in the case an error is returned

func KeyVaultNetworkAclsE

func KeyVaultNetworkAclsE(subscriptionID string, resourceGroupName string, keyVaultName string) (*keyvault.NetworkRuleSet, error)

KeyVaultNetworkAclsE - Return the newtwork ACLs for a KeyVault instance

func KeyvaultServicePrincipalAuthorizer

func KeyvaultServicePrincipalAuthorizer() (autorest.Authorizer, error)

KeyvaultServicePrincipalAuthorizer - gets an OAuthTokenAuthorizer for use with Key Vault keys and secrets. Note that Key Vault *Vaults* are managed by Azure Resource Manager.

func ListAccountContainers

func ListAccountContainers(t *testing.T, subscriptionID string, resourceGroupName string, accountName string) *[]storage.ListContainerItem

ListAccountContainers - Lists the containers for a target storage account

func ListCachesByResourceGroup

func ListCachesByResourceGroup(t *testing.T, subscriptionID string, resourceGroupName string) *[]redis.ResourceType

ListCachesByResourceGroup - Lists the caches by resource group

func ListNamespaceAuthRules

func ListNamespaceAuthRules(t *testing.T, subscriptionID string, namespace string, resourceGroup string) *[]string

ListNamespaceAuthRules - like ListNamespaceAuthRulesE but fails in the case an error is returned

func ListNamespaceAuthRulesE

func ListNamespaceAuthRulesE(subscriptionID string, namespace string, resourceGroup string) (*[]string, error)

ListNamespaceAuthRulesE - authenticate namespace client and enumerates all values to get list of authorization rules for the given namespace name, automatically crossing page boundaries as required.

func ListNamespaceTopics

func ListNamespaceTopics(t *testing.T, subscriptionID string, namespace string, resourceGroup string) *[]servicebus.SBTopic

ListNamespaceTopics - like ListNamespaceTopicsE but fails in the case an error is returned

func ListNamespaceTopicsE

func ListNamespaceTopicsE(subscriptionID string, namespace string, resourceGroup string) (*[]servicebus.SBTopic, error)

ListNamespaceTopicsE - authenticate topic client and enumerates all values, automatically crossing page boundaries as required.

func ListRoleAssignments

func ListRoleAssignments(t *testing.T, subscriptionID, objectID string) *[]authorization.RoleAssignment

ListRoleAssignments - Like ListRoleAssignmentsE but fails in the case an error is returned

func ListRoleAssignmentsE

func ListRoleAssignmentsE(subscriptionID, objectID string) (*[]authorization.RoleAssignment, error)

ListRoleAssignmentsE - Return the role assignments for an object ID

func ListServiceBusNamespace

func ListServiceBusNamespace(t *testing.T, subscriptionID string) *[]servicebus.SBNamespace

ListServiceBusNamespace - like ListServiceBusNamespaceE but fails in the case an error is returned

func ListServiceBusNamespaceByResourceGroup

func ListServiceBusNamespaceByResourceGroup(t *testing.T, subscriptionID string, resourceGroup string) *[]servicebus.SBNamespace

ListServiceBusNamespaceByResourceGroup like ListServiceBusNamespaceByResourceGroupE but fails in the case an error is returned

func ListServiceBusNamespaceByResourceGroupE

func ListServiceBusNamespaceByResourceGroupE(subscriptionID string, resourceGroup string) (*[]servicebus.SBNamespace, error)

ListServiceBusNamespaceByResourceGroupE list all SB namespaces in the given resource group

func ListServiceBusNamespaceE

func ListServiceBusNamespaceE(subscriptionID string) (*[]servicebus.SBNamespace, error)

ListServiceBusNamespaceE list all SB namespaces in all resource groups in the given subscription ID

func ListServiceBusNamespaceIDs

func ListServiceBusNamespaceIDs(t *testing.T, subscriptionID string) *[]string

ListServiceBusNamespaceIDs like ListServiceBusNamespaceIDsE but fails in the case an error is returned

func ListServiceBusNamespaceIDsByResourceGroup

func ListServiceBusNamespaceIDsByResourceGroup(t *testing.T, subscriptionID string, resourceGroup string) *[]string

ListServiceBusNamespaceIDsByResourceGroup like ListServiceBusNamespaceIDsByResourceGroupE but fails in the case an error is returned

func ListServiceBusNamespaceIDsByResourceGroupE

func ListServiceBusNamespaceIDsByResourceGroupE(subscriptionID string, resourceGroup string) (*[]string, error)

ListServiceBusNamespaceIDsByResourceGroupE list IDs of all SB namespaces in the given resource group

func ListServiceBusNamespaceIDsE

func ListServiceBusNamespaceIDsE(subscriptionID string) (*[]string, error)

ListServiceBusNamespaceIDsE list IDs of all SB namespaces in all resource groups in the given subscription ID

func ListServiceBusNamespaceNames

func ListServiceBusNamespaceNames(t *testing.T, subscriptionID string) *[]string

ListServiceBusNamespaceNames like ListServiceBusNamespaceNamesE but fails in the case an error is returned

func ListServiceBusNamespaceNamesByResourceGroup

func ListServiceBusNamespaceNamesByResourceGroup(t *testing.T, subscriptionID string, resourceGroup string) *[]string

ListServiceBusNamespaceNamesByResourceGroup like ListServiceBusNamespaceNamesByResourceGroupE but fails in the case an error is returned

func ListServiceBusNamespaceNamesByResourceGroupE

func ListServiceBusNamespaceNamesByResourceGroupE(subscriptionID string, resourceGroup string) (*[]string, error)

ListServiceBusNamespaceNamesByResourceGroupE list names of all SB namespaces in the given resource group

func ListServiceBusNamespaceNamesE

func ListServiceBusNamespaceNamesE(subscriptionID string) (*[]string, error)

ListServiceBusNamespaceNamesE list names of all SB namespaces in all resource groups in the given subscription ID

func ListTopicAuthRules

func ListTopicAuthRules(t *testing.T, subscriptionID string, namespace string, resourceGroup string, topicName string) *[]string

ListTopicAuthRules - like ListTopicAuthRulesE but fails in the case an error is returned

func ListTopicAuthRulesE

func ListTopicAuthRulesE(subscriptionID string, namespace string, resourceGroup string, topicName string) (*[]string, error)

ListTopicAuthRulesE - authenticate topic client and enumerates all values to get list of authorization rules for the given topic name, automatically crossing page boundaries as required.

func ListTopicSubscriptions

func ListTopicSubscriptions(t *testing.T, subscriptionID string, namespace string, resourceGroup string, topicName string) *[]servicebus.SBSubscription

ListTopicSubscriptions - like ListTopicSubscriptionsE but fails in the case an error is returned

func ListTopicSubscriptionsE

func ListTopicSubscriptionsE(subscriptionID string, namespace string, resourceGroup string, topicName string) ([]servicebus.SBSubscription, error)

ListTopicSubscriptionsE - authenticate subscriptions client and enumerates all values, automatically crossing page boundaries as required.

func ListTopicSubscriptionsName

func ListTopicSubscriptionsName(t *testing.T, subscriptionID string, namespace string, resourceGroup string, topicName string) *[]string

ListTopicSubscriptionsName - like ListTopicSubscriptionsNameE but fails in the case an error is returned

func ListTopicSubscriptionsNameE

func ListTopicSubscriptionsNameE(subscriptionID string, namespace string, resourceGroup string, topicName string) (*[]string, error)

ListTopicSubscriptionsNameE - authenticate subscriptions client and enumerates all values to get list of subscriptions for the given topic name, automatically crossing page boundaries as required.

func RedisClient

func RedisClient(t *testing.T, hostname string, accessKey string) *redis7Api.Client

RedisClient - Instantiate a new client from redis's collection pool

func RemoveRedisCacheEntry

func RemoveRedisCacheEntry(t *testing.T, client *redis7Api.Client, cacheKey string) int64

RemoveRedisCacheEntry - Removes a cache entry from the target redis cluster

func RoleName

func RoleName(t *testing.T, subscriptionID, roleID string) string

RoleName - Like RoleNameE but fails in the case an error is returned

func RoleNameE

func RoleNameE(subscriptionID, roleID string) (string, error)

RoleNameE - Get the name of a role

func ServicePrincipalAuthorizer

func ServicePrincipalAuthorizer(clientID string, clientSecret string, resource string) (autorest.Authorizer, error)

ServicePrincipalAuthorizer - Configures a service principal authorizer that can be used to create bearer tokens

func SetRedisCacheEntry

func SetRedisCacheEntry(t *testing.T, client *redis7Api.Client, cacheKey string, cacheValue interface{}, expiration time.Duration) string

SetRedisCacheEntry - Sets a cache entry on the target redis cluster

func VnetSubnetsList

func VnetSubnetsList(t *testing.T, subscriptionID string, resourceGroupName string, vnetName string) []string

VnetSubnetsList - Like VnetSubnetsListE but fails in the case an error is returned

func VnetSubnetsListE

func VnetSubnetsListE(subscriptionID string, resourceGroupName string, vnetName string) ([]string, error)

VnetSubnetsListE - Return the subnets that exist wihin a given VNET

func WebAppAuthSettingsClientIDE

func WebAppAuthSettingsClientIDE(subscriptionID string, resourceGroupName string, webAppName string) (*string, error)

WebAppAuthSettingsClientIDE - Return the authn/authz settings for a webapp

func WebAppCDUri

func WebAppCDUri(t *testing.T, subscriptionID string, resourceGroupName string, webAppName string) string

WebAppCDUri - Like WebAppCDUriE but fails in the case an error is returned

func WebAppCDUriE

func WebAppCDUriE(subscriptionID string, resourceGroupName string, webAppName string) (string, error)

WebAppCDUriE - Return the CD URL that can be used to trigger an ACR pull and redeploy

func WebAppEasyAuthClientID

func WebAppEasyAuthClientID(t *testing.T, subscriptionID string, resourceGroupName string, webAppName string) *string

WebAppEasyAuthClientID - Like WebAppAuthSettingsClientIDE but fails in the case an error is returned

func WebAppSiteConfiguration

func WebAppSiteConfiguration(t *testing.T, subscriptionID string, resourceGroupName string, webAppName string) *web.SiteConfig

WebAppSiteConfiguration - Like WebAppSiteConfigurationE but fails in the case an error is returned

func WebAppSiteConfigurationE

func WebAppSiteConfigurationE(subscriptionID string, resourceGroupName string, webAppName string) (*web.SiteConfig, error)

WebAppSiteConfigurationE - Return the configuration for a webapp

Types

This section is empty.

Jump to

Keyboard shortcuts

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