keyvault

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package keyvault provides Azure Key Vault reference resolution helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKeyVaultReference

func IsKeyVaultReference(value string) bool

IsKeyVaultReference reports whether the value matches a supported reference format.

Types

type KeyVaultResolutionWarning

type KeyVaultResolutionWarning struct {
	Key string
	Err error
}

KeyVaultResolutionWarning captures non-fatal resolution failures.

type KeyVaultResolver

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

KeyVaultResolver resolves Azure Key Vault references to secret values.

func NewKeyVaultResolver

func NewKeyVaultResolver() (*KeyVaultResolver, error)

NewKeyVaultResolver builds a resolver using DefaultAzureCredential.

func (*KeyVaultResolver) ResolveEnvironmentVariables

func (r *KeyVaultResolver) ResolveEnvironmentVariables(ctx context.Context, envVars []string, options ResolveEnvironmentOptions) ([]string, []KeyVaultResolutionWarning, error)

ResolveEnvironmentVariables resolves references in KEY=VALUE entries.

func (*KeyVaultResolver) ResolveReference

func (r *KeyVaultResolver) ResolveReference(ctx context.Context, reference string) (string, error)

ResolveReference resolves a single Key Vault reference to its secret value.

type ResolveEnvironmentOptions

type ResolveEnvironmentOptions struct {
	StopOnError bool
}

ResolveEnvironmentOptions configures environment resolution behavior.

Jump to

Keyboard shortcuts

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