azcredentials

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

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

Jump to

Keyboard shortcuts

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