deferred

package
v1.232.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package deferred composes store lookups with their deferred dependencies.

Index

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

NewRead defers parsing and evaluation of a YAML store reference.

func NewValue

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL