Documentation
¶
Overview ¶
Package provider defines the interface and registry for secret providers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface {
// Name returns the name of the provider
Name() string
// Fetch fetches secrets from the provider based on the configuration
// config contains provider-specific configuration fields (e.g., path, region, endpoint, etc.)
Fetch(secretContext SecretContext, mapID string, config map[string]interface{}, keys map[string]string) ([]KeyValue, error)
}
Provider is the interface that all secret providers must implement
type ProviderSecretsMap ¶ added in v0.0.6
ProviderSecretsMap represents secrets organized by provider ID
type SecretContext ¶ added in v0.0.6
type SecretContext struct {
Ctx context.Context
SecretsResolver SecretsResolver
}
SecretContext provides context and resolver access to providers
type SecretsResolver ¶ added in v0.0.6
type SecretsResolver interface {
// Get returns secrets for a specific provider ID
Get(id string) map[string]string
// Map returns all provider secrets as a map
Map() map[string]map[string]string
}
SecretsResolver provides access to secrets from other providers This interface allows providers to access secrets without creating an import cycle
Click to show internal directories.
Click to hide internal directories.