Versions in this module Expand all Collapse all v0 v0.2.1 Oct 9, 2026 v0.2.0 Oct 8, 2026 Changes in this version + const DefaultNamespace + const DefaultRefresh + const LinksEnvVar + const LinksFilename + const LinksPathEnvVar + const PlatformEnvVar + const RefreshEnvVar + const ResourcesNamespace + const ScopeFilename + const StoreIDEnvVar + const StoreKindEnvVar + func LoadScope(handlerID string) (map[string]bool, bool) + func RegisterProvider(p Provider) + func RegisteredProviders() []string + func ValuesFromJSON(raw []byte, source string) (map[string]string, error) + type AmbiguousNamespaceError struct + Registered []string + func (e *AmbiguousNamespaceError) Error() string + type Backend interface + Fetch func(ctx context.Context, storeID string) (map[string]string, error) + type EmptyBackend struct + func (EmptyBackend) Fetch(context.Context, string) (map[string]string, error) + type Link struct + ConfigKey string + Type string + type Links map[string]Link + func LoadLinks() (Links, error) + func (l Links) Find(kind, name string) (Link, error) + func (l Links) OfKind(kind string) Links + type MapBackend map[string]map[string]string + func (b MapBackend) Fetch(_ context.Context, storeID string) (map[string]string, error) + type MissingKeyError struct + Key string + Namespace string + func (e *MissingKeyError) Error() string + type MissingLinkError struct + Kind string + Known []string + Name string + func (e *MissingLinkError) Error() string + type MissingNamespaceError struct + Name string + Registered []string + func (e *MissingNamespaceError) Error() string + type MissingStoreError struct + StoreID string + func (e *MissingStoreError) Error() string + type Namespace interface + All func(ctx context.Context) (map[string]string, error) + Bind func(ctx context.Context, out any) error + Get func(ctx context.Context, key string) (string, error) + Lookup func(ctx context.Context, key string) (string, bool, error) + func NewNamespace(backend Backend, storeID string, opts ...NamespaceOption) Namespace + type NamespaceOption func(*namespace) + func WithPrefix(prefix string) NamespaceOption + func WithRefresh(interval time.Duration) NamespaceOption + type Platform string + const PlatformAWS + const PlatformAzure + const PlatformGCP + const PlatformLocal + const PlatformOther + func CurrentPlatform() Platform + type Provider interface + Backend func(kind StoreKind) (Backend, error) + Name func() string + Platform func() Platform + type SelfCaching interface + Caching func() bool + type Service struct + func FromEnvironment() (*Service, error) + func New() *Service + func (s *Service) All(ctx context.Context) (map[string]string, error) + func (s *Service) Bind(ctx context.Context, out any) error + func (s *Service) Get(ctx context.Context, key string) (string, error) + func (s *Service) Lookup(ctx context.Context, key string) (string, bool, error) + func (s *Service) Namespace(name string) (Namespace, error) + func (s *Service) Register(name string, ns Namespace) + func (s *Service) Registered() []string + func (s *Service) Resource(ctx context.Context, kind, name string) (string, error) + func (s *Service) ResourceKey(kind, name string) (string, error) + func (s *Service) WithLinks(links Links) *Service + type StoreKind string