deferred

package
v1.233.0-rc.0 Latest Latest
Warning

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

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

Documentation

Overview

Package deferred binds deferred evaluation to stack configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheFor

CacheFor returns an invocation-local cache for the target's raw configuration, including inherited auth. Callers must resolve authentication before loading values. Unsupported configuration values safely disable caching without affecting evaluation.

func StoreValue added in v1.232.0

func StoreValue(ac *schema.AtmosConfiguration, key string, lookup func() (any, error)) (any, error)

StoreValue memoizes successful template store reads for one invocation. In-flight reads of the same key share a result, while nil values and errors remain retryable.

func TargetSection

func TargetSection(ac *schema.AtmosConfiguration, component, stack string, describe func() (map[string]any, error)) (map[string]any, error)

TargetSection returns the unevaluated target configuration for deferred authentication. Only raw describes (component templates and YAML functions disabled) may be supplied. Each caller receives its own copy before inherited authentication is applied. Stack locals can still recurse during loading, so misses must not wait on other in-flight describes: the existing lookup cycle detector owns recursion.

Types

This section is empty.

Jump to

Keyboard shortcuts

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