Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigs ¶ added in v0.2.3
func MapAndRedact ¶
MapAndRedact converts Config struct to a map and redacts unsafe fields. Fields tagged safe:"true" are always included as-is. Unsafe fields are omitted when empty (empty string, nil pointer/interface) and shown as "redacted" when set. Safe struct fields recurse so their own field-level safe tags are respected.
Types ¶
type AWSSecretsManagerClient ¶ added in v0.2.3
type AWSSecretsManagerClient interface {
GetSecretValue(ctx context.Context, input *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}
type AWSSecretsManagerOption ¶ added in v0.2.3
type AWSSecretsManagerOption struct {
// contains filtered or unexported fields
}
func (*AWSSecretsManagerOption) Apply ¶ added in v0.2.3
func (o *AWSSecretsManagerOption) Apply(cfg any) error
type FileOption ¶ added in v0.2.3
type FileOption struct {
// contains filtered or unexported fields
}
func (*FileOption) Apply ¶ added in v0.2.3
func (o *FileOption) Apply(cfg any) error
type Option ¶ added in v0.2.3
func NewAWSSecretsManagerOption ¶ added in v0.2.3
func NewAWSSecretsManagerOption(client AWSSecretsManagerClient, secretNames ...string) Option
func NewEnvOption ¶ added in v0.2.3
func NewEnvOption() Option