azkeyvault

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureKeyVault

type AzureKeyVault struct {
	// contains filtered or unexported fields
}

func Provider

func Provider(config Config) (*AzureKeyVault, error)

func (*AzureKeyVault) Read

func (kv *AzureKeyVault) Read() (map[string]any, error)

func (*AzureKeyVault) ReadBytes

func (kv *AzureKeyVault) ReadBytes() ([]byte, error)

type Config

type Config struct {
	// KeyVaultUrl key vault url
	KeyVaultUrl string

	// Delim is the delimiter to use
	// when specifying config key paths, for instance a . for `parent.child.key`
	// or a / for `parent/child/key`.
	Delim string

	// TokenCredential Token credential to connect to the Azure Keyvault.
	// It can be created using client Id with client secret or client certificate.
	TokenCredential azcore.TokenCredential

	// If FlatPaths is true, then the loaded configuration is not split into
	// hierarchical maps based on the delimiter. The keys including the delimiter,
	// eg: app.db.name stays as-is in the confmap.
	FlatPaths bool
}

Jump to

Keyboard shortcuts

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