Versions in this module Expand all Collapse all v0 v0.0.3 May 10, 2024 Changes in this version + var IsNilErr = errors.New("config is nil") + var NotAPtrErr = errors.New("config needs to be a pointer") + type Builder struct + func NewBuilder(staticSources ...*StaticSource) *Builder + func (builder *Builder) Build(config any) error + func (builder *Builder) BuildCtx(ctx context.Context, config any) error + func (builder *Builder) SetSecretManagers(managers ...SecretManager) + type Format string + const Json + const Toml + type Opener interface + Open func(filepath string) (io.ReadCloser, error) + type SecretManager interface + Prefix func() string + Secret func(ctx context.Context, key string) (string, error) + type StaticSource struct + func LoadSourcesWithOpener(opener Opener, filepaths ...string) ([]*StaticSource, error) + func NewSource(name string, format Format, reader io.ReadCloser) *StaticSource + func NewSourcesFromEmbeddedFileSystem(fs embed.FS, filepaths ...string) ([]*StaticSource, error) + func NewSourcesFromFilepaths(filepaths ...string) ([]*StaticSource, error)