Documentation
¶
Overview ¶
Package refcache defines the key shared by the process-wide caches behind Terraform references: !terraform.state, !terraform.output, and atmos.Component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthScope ¶
func AuthScope(authContext *schema.AuthContext, authManager any, disabled bool) any
AuthScope partitions cached values by the authentication actually supplied to a lookup. A target component can use a different identity from its caller, and identity names alone are not unique across independently configured managers. It returns nil when the caller supplies no credentials and authentication is not disabled.
func DeleteTarget ¶
DeleteTarget removes every cached variant of one target from a cache keyed by Key, whatever its credentials, inspection mode, or describe mode.
Types ¶
type Key ¶
type Key struct {
BasePath, ConfigPath string // Configuration root (HEAD vs BASE in describe affected).
Stack, Component string // Target.
Invocation any // ac.AuthManager; separates deferred invocations.
Auth any // Caller credentials, from AuthScope.
Inspection bool // Masked placeholders vs resolved values.
RawDescribe bool // Target described without YAML functions.
}
Key identifies one Terraform reference lookup in a process-wide cache. Every field changes the cached result, and the key is always comparable.