configsource

package
v0.96.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook interface {
	OnNew()
	OnRetrieve(scheme string, retrieved map[string]any)
	OnShutdown()
}

Hook is a means of providing introspection to a confmap.Provider's lifecycle, useful for evaluating Retrieve()'ed content.

type Provider

type Provider interface {
	Wrap(provider confmap.Provider) confmap.Provider
}

Provider is the entrypoint for existing confmap.Providers to be provided with configsource.ConfigSource retrieval functionality. Once Wrap()'ed, their Retrieve() method as invoked by the service's confmap.Resolver will be further resolved by any applicable ConfigSource directives (including any initial `config_sources:` settings declarations).

func New

func New(logger *zap.Logger, hooks []Hook) Provider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL