mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 05:39:51 +00:00
47b202554e
This commit adds the Azure SDK for Azure key vault KMS integration to the Ceph CSI driver. Signed-off-by: Praveen M <m.praveen@ibm.com>
45 lines
1.5 KiB
Go
45 lines
1.5 KiB
Go
//go:build go1.18
|
|
// +build go1.18
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
package cloud
|
|
|
|
var (
|
|
// AzureChina contains configuration for Azure China.
|
|
AzureChina = Configuration{
|
|
ActiveDirectoryAuthorityHost: "https://login.chinacloudapi.cn/", Services: map[ServiceName]ServiceConfiguration{},
|
|
}
|
|
// AzureGovernment contains configuration for Azure Government.
|
|
AzureGovernment = Configuration{
|
|
ActiveDirectoryAuthorityHost: "https://login.microsoftonline.us/", Services: map[ServiceName]ServiceConfiguration{},
|
|
}
|
|
// AzurePublic contains configuration for Azure Public Cloud.
|
|
AzurePublic = Configuration{
|
|
ActiveDirectoryAuthorityHost: "https://login.microsoftonline.com/", Services: map[ServiceName]ServiceConfiguration{},
|
|
}
|
|
)
|
|
|
|
// ServiceName identifies a cloud service.
|
|
type ServiceName string
|
|
|
|
// ResourceManager is a global constant identifying Azure Resource Manager.
|
|
const ResourceManager ServiceName = "resourceManager"
|
|
|
|
// ServiceConfiguration configures a specific cloud service such as Azure Resource Manager.
|
|
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
|
|
}
|
|
|
|
// Configuration configures a cloud.
|
|
type Configuration struct {
|
|
// ActiveDirectoryAuthorityHost is the base URL of the cloud's Azure Active Directory.
|
|
ActiveDirectoryAuthorityHost string
|
|
// Services contains configuration for the cloud's services.
|
|
Services map[ServiceName]ServiceConfiguration
|
|
}
|