azure

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAzureConfigFromBackendConfig

func NewAzureConfigFromBackendConfig(backendId string, sessionConfig AzureSessionBackendConfig) (*autorest.Authorizer, error)

Types

type AzureKeyVaultBackend

type AzureKeyVaultBackend struct {
	BackendId string
	Config    AzureKeyVaultBackendConfig
	Secret    map[string]string
}

func NewAzureKeyVaultBackend

func NewAzureKeyVaultBackend(backendId string, bc map[string]interface{}) (*AzureKeyVaultBackend, error)

func (*AzureKeyVaultBackend) GetSecretOutput

func (b *AzureKeyVaultBackend) GetSecretOutput(secretKey string) secret.SecretOutput

type AzureKeyVaultBackendConfig

type AzureKeyVaultBackendConfig struct {
	AzureSession AzureSessionBackendConfig `mapstructure:"azure_session"`
	BackendType  string                    `mapstructure:"backend_type"`
	ForceString  bool                      `mapstructure:"force_string"`
	KeyVaultURL  string                    `mapstructure:"keyvaulturl"`
	SecretId     string                    `mapstructure:"secret_id"`
}

type AzureSessionBackendConfig

type AzureSessionBackendConfig struct {
	AzureTenantId            string `mapstructure:"azure_tenant_id"`
	AzureClientId            string `mapstructure:"azure_client_id"`
	AzureClientSecret        string `mapstructure:"azure_client_secret"`
	AzureCertificatePath     string `mapstructure:"azure_certificate_path"`
	AzureCertificatePassword string `mapstructure:"azure_certificate_password"`
}

Jump to

Keyboard shortcuts

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