Documentation
¶
Overview ¶
Package deferred composes store lookups with their deferred dependencies.
Index ¶
- func LookupStore(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo, ...) (any, error)
- func NewRead(ac *schema.AtmosConfiguration, input, stack string, ...) deferred.Resolver[any]
- func NewValue(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo, ...) deferred.Resolver[any]
- func ReadStore(ac *schema.AtmosConfiguration, input, stack string, ...) (any, error)
- func ScopedStores(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo) store.StoreRegistry
- func WithStoreAuth(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo, name string, ...) (any, error)
- type StoreOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupStore ¶
func LookupStore(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo, opts StoreOptions) (any, error)
LookupStore retrieves a template's requested value using the same deferred identity policy.
func NewRead ¶
func NewRead(ac *schema.AtmosConfiguration, input, stack string, info *schema.ConfigAndStacksInfo) deferred.Resolver[any]
NewRead defers parsing and evaluation of a YAML store reference.
func NewValue ¶
func NewValue(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo, opts StoreOptions) deferred.Resolver[any]
NewValue defers a store read and its credential dependency until requested.
func ReadStore ¶
func ReadStore(ac *schema.AtmosConfiguration, input, stack string, info *schema.ConfigAndStacksInfo) (any, error)
List/describe store calls return errors to the value walker instead of exiting the process, so an unavailable identity can affect one value without aborting output.
func ScopedStores ¶
func ScopedStores(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo) store.StoreRegistry
ScopedStores gives secret providers lookup-local store handles. Every requested operation binds credentials and reads under one lock, including SOPS age keys. Unused stores remain unauthenticated, and the shared registry is never changed.
func WithStoreAuth ¶
func WithStoreAuth(ac *schema.AtmosConfiguration, info *schema.ConfigAndStacksInfo, name string, operation func() (any, error)) (any, error)
WithStoreAuth keeps credential binding and the operation on that binding atomic. The callback must not recursively access the same store; parsing and value/query processing belong outside this boundary. Unused lookups do not acquire it.
Types ¶
type StoreOptions ¶
type StoreOptions struct{ Name, Stack, Component, Key string }
StoreOptions identifies the store value requested by a template.