Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Inherit bool `yaml:"inherit"` // Whether to inherit system environment variables (default: true)
Providers []ProviderConfig `yaml:"providers"`
}
Config represents the main configuration structure
func (*Config) GetProvider ¶
func (c *Config) GetProvider(id string) (*ProviderConfig, error)
GetProvider returns a provider configuration by id
type ProviderConfig ¶
type ProviderConfig struct {
Kind string `yaml:"kind"`
ID string `yaml:"id,omitempty"` // Optional: defaults to 'kind'. Required if multiple providers share the same kind
Config map[string]interface{} `yaml:"-"` // Provider-specific configuration (e.g., path, region, endpoint, etc.)
Keys map[string]string `yaml:"keys,omitempty"` // Optional key mappings (source_key: target_key, or "==" to keep same name)
Env EnvVars `yaml:"env,omitempty"`
}
ProviderConfig represents a single provider configuration Each provider loads from a single source. To load multiple secrets from the same provider type, configure multiple provider instances with the same 'kind' but different 'id' values.
func (*ProviderConfig) UnmarshalYAML ¶
func (p *ProviderConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements custom YAML unmarshaling to capture provider-specific fields
Click to show internal directories.
Click to hide internal directories.