package cloud
import "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud"
Index ¶
Variables ¶
var ( // AzureChina contains configuration for Azure China. AzureChina = Configuration{ LoginEndpoint: "https://login.chinacloudapi.cn/", Services: map[ServiceName]ServiceConfiguration{}, } // AzureGovernment contains configuration for Azure Government. AzureGovernment = Configuration{ LoginEndpoint: "https://login.microsoftonline.us/", Services: map[ServiceName]ServiceConfiguration{}, } // AzurePublicCloud contains configuration for Azure Public Cloud. AzurePublicCloud = Configuration{ LoginEndpoint: "https://login.microsoftonline.com/", Services: map[ServiceName]ServiceConfiguration{}, } )
Types ¶
type Configuration ¶
type Configuration struct { // LoginEndpoint is the base URL of the cloud's Azure Active Directory. LoginEndpoint string // Services contains configuration for the cloud's services. Services map[ServiceName]ServiceConfiguration }
Configuration configures a cloud.
type ServiceConfiguration ¶
type ServiceConfiguration struct { // Audience is the audience the client will request for its access tokens. Audience string // Endpoint is the service's base URL. Endpoint string }
ServiceConfiguration configures a specific cloud service such as Azure Resource Manager.
type ServiceName ¶
type ServiceName string
ServiceName identifies a cloud service.
const ResourceManager ServiceName = "resourceManager"
ResourceManager is a global constant identifying Azure Resource Manager.
Source Files ¶
Tools for package owners.