Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
Hook is a means of providing introspection to a confmap.Provider's lifecycle, useful for evaluating Retrieve()'ed content.
type ProviderWrapper ¶ added in v0.101.0
type ProviderWrapper struct {
// contains filtered or unexported fields
}
ProviderWrapper 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 (*ProviderWrapper) ResolveForWrapped ¶ added in v0.101.0
func (pw *ProviderWrapper) ResolveForWrapped(ctx context.Context, uri string, onChange confmap.WatcherFunc, w *wrappedProvider) (*confmap.Retrieved, error)
ResolveForWrapped will retrieve from the wrappedProvider and, if possible, resolve all config source directives with their resolved values. If the wrappedProvider's retrieved value is only valid AsRaw() (scalar/array) then that will be returned without further evaluation.
func (*ProviderWrapper) Wrap ¶ added in v0.101.0
func (pw *ProviderWrapper) Wrap(provider confmap.ProviderFactory) confmap.ProviderFactory
Wrap registers the provided confmap.ProviderWrapper in a provider store to proxy its methods and expose ConfigSource content resolution capabilities.