initialize

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package initialize applies the operator team's configuration without managing cells.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(ctx context.Context, client Client, result *compose.Result) ([]string, error)

Apply preflights all sources/scopes before writing anything to the daemon. It never retries an ambiguous write. Secrets stay outside the document stream. Required secrets that are absent and have no creation source do not block application; Apply returns one remediation line per missing runtime secret.

Types

type AddOptions

type AddOptions struct {
	Options

	Name, Source, Branch, Tag, Commit string
	Directory                         string
}

AddOptions names a remote project or a local Directory and optional overrides. Options supplies the same connection and application dependencies as init.

type Client

Client deliberately has no cell lifecycle methods. Init can only read scope, create explicitly sourced secrets, and apply blueprint/config documents.

type Options

type Options struct {
	Root, Home, Host, Configuration string
	Force                           bool
	Sources                         map[string]fs.FS
	Client                          Client
}

Options supplies operator paths and optional test/embedding dependencies. An injected Client remains caller-owned; otherwise Run opens and closes it.

type Result

type Result struct {
	Bootstrap bootstrap.Result
	EntryPath string
	Resources int
	// MissingSecrets lists one remediation line per required runtime secret that
	// does not exist yet; cells using it fail to start until it is created.
	MissingSecrets []string
}

func Add

func Add(ctx context.Context, opts AddOptions) (Result, error)

Add assembles an inheriting declaration without bootstrapping/resetting global configuration. Every remote is validated before transport; project access is checked even when it contributes no definitions.

func Run

func Run(ctx context.Context, opts Options) (Result, error)

Run initializes only when configuration is absent, unless Force resets it. Partial daemon application is not rolled back; a forced rerun converges the team.

Jump to

Keyboard shortcuts

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