Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(provider ProviderCreator)
Types ¶
type List ¶
type List []string
List holds the command-line-provided set of configuration provider names.
type Provider ¶
type Provider interface { Name() string FetchConfig() (config.Config, error) IsOnline() bool ShouldRetry() bool BackoffDuration() time.Duration }
Provider represents an external source of configuration. The source can be local to the host system or it may be remote. The provider dictates whether or not the source is online, if the caller should try again when the source is offline, and how long the caller should wait before retries.
type ProviderCreator ¶
func Get ¶
func Get(name string) ProviderCreator
Click to show internal directories.
Click to hide internal directories.