bootstrap

package
v1.235.0-nightly.45090... Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 45 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 bootstrap composes plugin descriptors, runtimes, and existing Atmos registries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComponentOptions

func ComponentOptions(ctx context.Context, atmos *schema.AtmosConfiguration) ([]provideroptions.Provider, error)

ComponentOptions reads the static option declarations of the enabled configuration providers from their package manifests. It never installs, restores, verifies, or starts a package, so command registration and help stay cheap. A package that is not installed yet contributes nothing; the command that uses the provider reports that instead.

func DescribePackage

func DescribePackage(directory string, definition *manifest.Config, bindings []extension.Binding) (*pluginv1.DescribeResponse, error)

DescribePackage derives the required runtime handshake from validated package metadata.

func Descriptors

func Descriptors() (*extension.Registry, error)

Descriptors declares supported extension types. Lifecycle code receives this registry rather than switching over a closed list of capability names.

func LoadComponents

func LoadComponents(ctx context.Context, atmos *schema.AtmosConfiguration, references []ComponentReference, options ...Option) (*componentadapter.Registry, error)

LoadComponents restores only referenced configuration providers and composes a private registry. Package installation alone never calls discovery or starts a native process. The caller supplies references from explicitly enabled config.

func Prepare

func Prepare(ctx context.Context, atmos *schema.AtmosConfiguration, options ...Option) (func(), error)

Prepare restores the project packages the configuration needs (see neededPackages) and registers their exports before auth initialization. Native binaries launch lazily when their services run.

func PrepareAvailable

func PrepareAvailable(ctx context.Context, atmos *schema.AtmosConfiguration, options ...Option) (func(), error)

PrepareAvailable temporarily registers verified local auth plugins needed by configured registry identities. It never restores packages or contacts a registry.

func ProjectDirectory

func ProjectDirectory(config *schema.AtmosConfiguration) string

ProjectDirectory locates project-local plugin state using resolved config provenance.

func RegisterComponentFlags

func RegisterComponentFlags(ctx context.Context, atmos *schema.AtmosConfiguration, root *cobra.Command) error

RegisterComponentFlags adds the options of the enabled configuration providers to the subcommands of root they apply to. Declaration and collision problems are returned; a package that cannot be read is skipped here because the command that uses the provider reports it when it activates.

func Run

func Run(ctx context.Context, atmos *schema.AtmosConfiguration, alias string, arguments []string, output Output) error

Run executes the selected command export of an installed package.

Types

type ComponentReference

type ComponentReference struct{ Provider, Capability string }

ComponentReference requests one independently negotiated configuration capability.

type ConstructorSet

type ConstructorSet struct {
	Batch       authregistry.Registration
	Services    adapter.Services
	Credentials *credential.Registry
	Commands    map[string]*extension.Activation
	Components  []*extension.Activation
}

ConstructorSet accumulates all package exports before atomically installing them.

type Option

type Option func(*adapter.Services)

Option configures Atmos-owned runtime dependencies at the composition root.

func WithInteraction

func WithInteraction(browser api.Browser, available func() bool) Option

WithInteraction supplies browser and interactivity services for embedders and tests. Plugin package settings cannot override this decision.

type Output

type Output struct {
	Stdout, Stderr io.Writer
	// OnStart identifies the selected command before invoking the plugin.
	OnStart func(alias, name, description string)
}

Output selects command data and diagnostic streams.

Jump to

Keyboard shortcuts

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