configuration

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package configuration connects native configuration providers to Atmos stack definitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader func(context.Context, []string) (map[string]Provider, error)

Loader resolves the requested configuration providers through package policy and locks.

type Provider

Provider is the typed component capability boundary used by a discovery session.

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session holds one command's discovery result; it is never a process-global cache.

func New

func New(ctx context.Context, config *schema.AtmosConfiguration, command string, loader Loader) (*Session, error)

New snapshots the explicitly enabled scope without starting plugins or scanning directories.

func (*Session) ComponentFailure

func (s *Session) ComponentFailure(ctx context.Context, stack, component string) error

ComponentFailure returns the diagnostic of a unit that failed discovery, or nil for a healthy or unknown component. It waits for discovery so a bulk run can reject a broken unit before it runs any infrastructure command.

func (*Session) Discover

func (s *Session) Discover(ctx context.Context) (map[string]map[string]any, error)

Discover returns isolated definitions and shares only immutable evaluator results within this invocation.

func (*Session) ForRevision

func (s *Session) ForRevision(root string) (schema.ComponentConfigurationRuntime, error)

ForRevision creates an independent inventory in a different checkout. The host's trusted plugin selection, discovery scope, environment, and cancellation remain fixed for the invocation; no cached definitions or evaluated HCL are reused.

func (*Session) ForValidation

func (s *Session) ForValidation() schema.ComponentConfigurationRuntime

ForValidation shares cached imports but never registers additional executable units.

func (*Session) ImportComponents

func (s *Session) ImportComponents(ctx context.Context, uri string) (map[string]any, bool, error)

ImportComponents resolves an explicit provider import into Terraform components of the importing stack. The provider evaluates only the imported roots; automatic discovery scope (included_paths and excluded_paths) never filters an explicit import. The units keep their provider names but drop the provider's derived stack, so the same unit can be imported by several stacks, or through a mixin, and each stack gets its own component.

func (*Session) PlanIdentity

PlanIdentity fingerprints provider/options and watched source bytes without preparing the unit.

func (*Session) Prepare

Prepare reevaluates only the selected instance, after the scheduler's dependencies.

func (*Session) ProbeIAM

ProbeIAM reads only the Terragrunt flags before full evaluation. It must not run infrastructure commands or return a module configuration.

func (*Session) ResolveDeferredSource

ResolveDeferredSource prepares the unit again once the host has run its read-config after hooks, so that the provider resolves the registry source the first preparation left as written. The provider applies the same exclusion guard and errors policies as in a single preparation. Warnings were printed by the first preparation and are not repeated.

func (*Session) ResolveState

ResolveState locates state with no evaluator commands, writes, network, or output reads.

Jump to

Keyboard shortcuts

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