Versions in this module Expand all Collapse all v0 v0.2.0 Aug 12, 2021 Changes in this version + const EnvClusterIdentifier + var ErrNoValidProvidersFoundInChain = errors.New(...) + type ChainProvider struct + Providers []Provider + func (x *ChainProvider) Retrieve(ctx context.Context) (*Value, error) + func (x *ChainProvider) String() string + type Config struct + func NewChainProvider(providers ...Provider) *Config + func NewConfig(provider Provider) *Config + func NewConfigMapProvider(client client.Client, name, namespace string) *Config + func NewDefaultProvider() *Config + func NewEnvProvider() *Config + func (x *Config) Get(ctx context.Context) (*Value, error) + func (x *Config) Refresh() *Config + type ConfigMapProvider struct + Client client.Client + Name string + Namespace string + func (x *ConfigMapProvider) Retrieve(ctx context.Context) (*Value, error) + func (x *ConfigMapProvider) String() string + type DefaultProvider struct + func (x *DefaultProvider) Retrieve(context.Context) (*Value, error) + func (x *DefaultProvider) String() string + type EnvProvider struct + func (x *EnvProvider) Retrieve(ctx context.Context) (*Value, error) + func (x *EnvProvider) String() string + type Provider interface + Retrieve func(ctx context.Context) (*Value, error) + type Value struct + ClusterIdentifier string + func (v *Value) IsComplete() bool + func (v *Value) IsEmpty() bool + func (v *Value) Merge(v2 *Value) *Value