Documentation
¶
Overview ¶
Package bootstrap composes plugin descriptors, runtimes, and existing Atmos registries.
Index ¶
- func ComponentOptions(ctx context.Context, atmos *schema.AtmosConfiguration) ([]provideroptions.Provider, error)
- func ConfigurationProviders(ctx context.Context, atmos *schema.AtmosConfiguration) (map[string]bool, bool, error)
- func DescribePackage(directory string, definition *manifest.Config, bindings []extension.Binding) (*pluginv1.DescribeResponse, error)
- func Descriptors() (*extension.Registry, error)
- func LoadComponents(ctx context.Context, atmos *schema.AtmosConfiguration, ...) (*componentadapter.Registry, error)
- func Prepare(ctx context.Context, atmos *schema.AtmosConfiguration, options ...Option) (func(), error)
- func PrepareAvailable(ctx context.Context, atmos *schema.AtmosConfiguration, options ...Option) (func(), error)
- func ProjectDirectory(config *schema.AtmosConfiguration) string
- func RegisterComponentFlags(ctx context.Context, atmos *schema.AtmosConfiguration, root *cobra.Command) error
- func Run(ctx context.Context, atmos *schema.AtmosConfiguration, alias string, ...) error
- type ComponentReference
- type ConstructorSet
- type Option
- type Output
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 ConfigurationProviders ¶
func ConfigurationProviders(ctx context.Context, atmos *schema.AtmosConfiguration) (map[string]bool, bool, error)
ConfigurationProviders lists the configuration providers that the enabled plugin packages export for component discovery. It reads the lock file for registry packages and the manifest for local builds, and never installs, restores, or starts a package. The complete result is false when an enabled package is neither locked nor local, because its exports are unknown until it is installed.
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 ¶
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.
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.