Documentation ¶
Index ¶
- Constants
- func GetAzureCloud(settings *azsettings.AzureSettings, credentials AzureCredentials) (string, error)
- type AadCurrentUserCredentials
- type AzureClientSecretCredentials
- type AzureClientSecretOboCredentials
- type AzureCredentials
- type AzureManagedIdentityCredentials
- type AzureWorkloadIdentityCredentials
Constants ¶
View Source
const ( AzureAuthCurrentUserIdentity = "currentuser" AzureAuthManagedIdentity = "msi" AzureAuthWorkloadIdentity = "workloadidentity" AzureAuthClientSecret = "clientsecret" AzureAuthClientSecretObo = "clientsecret-obo" )
Variables ¶
This section is empty.
Functions ¶
func GetAzureCloud ¶ added in v1.4.0
func GetAzureCloud(settings *azsettings.AzureSettings, credentials AzureCredentials) (string, error)
Types ¶
type AadCurrentUserCredentials ¶ added in v1.4.0
type AadCurrentUserCredentials struct { ServiceCredentialsEnabled bool ServiceCredentials AzureCredentials }
AadCurrentUserCredentials "Current User" user identity credentials of the current Grafana user.
func (*AadCurrentUserCredentials) AzureAuthType ¶ added in v1.4.0
func (credentials *AadCurrentUserCredentials) AzureAuthType() string
type AzureClientSecretCredentials ¶
type AzureClientSecretCredentials struct { AzureCloud string Authority string TenantId string ClientId string ClientSecret string }
AzureClientSecretCredentials "App Registration" AAD service identity credentials configured in the datasource.
func (*AzureClientSecretCredentials) AzureAuthType ¶
func (credentials *AzureClientSecretCredentials) AzureAuthType() string
type AzureClientSecretOboCredentials ¶ added in v1.4.0
type AzureClientSecretOboCredentials struct {
ClientSecretCredentials AzureClientSecretCredentials
}
AzureClientSecretOboCredentials "App Registration (On-Behalf-Of)" user identity credentials obtained using service identity configured in the datasource.
func (*AzureClientSecretOboCredentials) AzureAuthType ¶ added in v1.4.0
func (credentials *AzureClientSecretOboCredentials) AzureAuthType() string
type AzureCredentials ¶
type AzureCredentials interface {
AzureAuthType() string
}
func FromDatasourceData ¶
func FromDatasourceData(data map[string]interface{}, secureData map[string]string) (AzureCredentials, error)
type AzureManagedIdentityCredentials ¶
type AzureManagedIdentityCredentials struct {
ClientId string
}
AzureManagedIdentityCredentials "Managed Identity" service managed identity credentials configured for the current Grafana instance.
func (*AzureManagedIdentityCredentials) AzureAuthType ¶
func (credentials *AzureManagedIdentityCredentials) AzureAuthType() string
type AzureWorkloadIdentityCredentials ¶ added in v1.9.0
type AzureWorkloadIdentityCredentials struct { }
AzureWorkloadIdentityCredentials Uses Azure AD Workload Identity
func (*AzureWorkloadIdentityCredentials) AzureAuthType ¶ added in v1.9.0
func (credentials *AzureWorkloadIdentityCredentials) AzureAuthType() string
Click to show internal directories.
Click to hide internal directories.