Documentation ¶
Index ¶
- func AzureEnvironmentByNameFromEndpoint(ctx context.Context, endpoint string, environmentName string) (*azure.Environment, error)
- func DetermineEnvironment(name string) (*azure.Environment, error)
- func IsEnvironmentAzureStack(ctx context.Context, endpoint string, environmentName string) (bool, error)
- func LoadEnvironmentFromUrl(endpoint string) (*azure.Environment, error)
- type Authentication
- type Environment
- type Suffixes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AzureEnvironmentByNameFromEndpoint ¶ added in v0.11.0
func AzureEnvironmentByNameFromEndpoint(ctx context.Context, endpoint string, environmentName string) (*azure.Environment, error)
AzureEnvironmentByName returns a specific Azure Environment from the specified endpoint
func DetermineEnvironment ¶
func DetermineEnvironment(name string) (*azure.Environment, error)
DetermineEnvironment determines what the Environment name is within the Azure SDK for Go and then returns the association environment, if it exists.
func IsEnvironmentAzureStack ¶ added in v0.11.0
func IsEnvironmentAzureStack(ctx context.Context, endpoint string, environmentName string) (bool, error)
IsEnvironmentAzureStack returns whether a specific Azure Environment is an Azure Stack environment
func LoadEnvironmentFromUrl ¶ added in v0.1.1
func LoadEnvironmentFromUrl(endpoint string) (*azure.Environment, error)
LoadEnvironmentFromUrl attempts to load the specified environment from the endpoint. if the endpoint is an empty string, or an environment can't be found at the endpoint url then an error is returned
Types ¶
type Authentication ¶ added in v0.11.0
type Environment ¶ added in v0.11.0
type Environment struct { Portal string `json:"portal"` Authentication Authentication `json:"authentication"` Media string `json:"media"` GraphAudience string `json:"graphAudience"` Graph string `json:"graph"` Name string `json:"name"` Suffixes Suffixes `json:"suffixes"` Batch string `json:"batch"` ResourceManager string `json:"resourceManager"` VmImageAliasDoc string `json:"vmImageAliasDoc"` ActiveDirectoryDataLake string `json:"activeDirectoryDataLake"` SqlManagement string `json:"sqlManagement"` Gallery string `json:"gallery"` }
type Suffixes ¶ added in v0.11.0
type Suffixes struct { AzureDataLakeStoreFileSystem string `json:"azureDataLakeStoreFileSystem"` AcrLoginServer string `json:"acrLoginServer"` SqlServerHostname string `json:"sqlServerHostname"` AzureDataLakeAnalyticsCatalogAndJob string `json:"azureDataLakeAnalyticsCatalogAndJob"` KeyVaultDns string `json:"keyVaultDns"` Storage string `json:"storage"` AzureFrontDoorEndpointSuffix string `json:"azureFrontDoorEndpointSuffix"` }
Click to show internal directories.
Click to hide internal directories.