Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateConfig ¶
type TemplateConfig struct {
// Templates is a map of template expressions using dot notation: PG_URI: pgsql://{{.aws_prod.PG_USERNAME}}:{{.aws_prod.PG_PASSWORD}}@{{.aws_generic.PG_HOST}}
Templates map[string]string `yaml:"templates"`
}
TemplateConfig represents the configuration for template provider
type TemplateProvider ¶
type TemplateProvider struct{}
TemplateProvider implements the provider interface for template-based secret manipulation
func (*TemplateProvider) Fetch ¶
func (p *TemplateProvider) Fetch(secretContext provider.SecretContext, mapID string, config map[string]interface{}, keys map[string]string) ([]provider.KeyValue, error)
Fetch fetches secrets by resolving template expressions The templates map contains template expressions using dot notation: PG_URI: pgsql://{{.aws_prod.PG_USERNAME}}:{{.aws_prod.PG_PASSWORD}}@{{.aws_generic.PG_HOST}}
func (*TemplateProvider) Name ¶
func (p *TemplateProvider) Name() string
Name returns the provider name
Click to show internal directories.
Click to hide internal directories.