Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + const FxGroup + type CertificateFiles struct + CertificatePath string + PrivateKeyPassphrase string + PrivateKeyPath string + RootCAPaths []string + type DefaultManager struct + ConfigLoaderFunc func(target interface{}, configPath string) error + Properties Properties + func NewDefaultManager(opts ...func(mgr *DefaultManager)) *DefaultManager + func (m *DefaultManager) Close() error + func (m *DefaultManager) MustRegister(items ...interface{}) + func (m *DefaultManager) Register(items ...interface{}) error + func (m *DefaultManager) Source(ctx context.Context, opts ...Options) (Source, error) + type Manager interface + Source func(ctx context.Context, opts ...Options) (Source, error) + type Option struct + ConfigPath string + Preset string + RawConfig interface{} + Type SourceType + type Options func(opt *Option) + func WithConfigPath(configPath string) Options + func WithPreset(presetName string) Options + func WithRawConfig(rawCfg interface{}) Options + func WithSourceProperties(props *SourceProperties) Options + func WithType(srcType SourceType, cfg interface{}) Options + type Properties struct + Presets map[string]json.RawMessage + Sources map[SourceType]json.RawMessage + func NewProperties() *Properties + type Registrar interface + MustRegister func(items ...interface{}) + Register func(items ...interface{}) error + type Source interface + Files func(ctx context.Context) (*CertificateFiles, error) + TLSConfig func(ctx context.Context, opts ...TLSOptions) (*tls.Config, error) + type SourceConfig struct + RawConfig json.RawMessage + type SourceFactory interface + LoadAndInit func(ctx context.Context, opts ...SourceOptions) (Source, error) + Type func() SourceType + type SourceOptions func(srcCfg *SourceConfig) + type SourceProperties struct + Preset string + Raw json.RawMessage + Type SourceType + func (p *SourceProperties) UnmarshalJSON(data []byte) error + type SourceType string + const SourceACM + const SourceFile + const SourceVault + type TLSOption struct + type TLSOptions func(opt *TLSOption)