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 ¶
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 ¶
AddOptions names a remote project or a local Directory and optional overrides. Options supplies the same connection and application dependencies as init.
type Client ¶
type Client interface {
Close() error
Ping(context.Context) error
ListRealms(context.Context) ([]api.RealmDoc, error)
ListSpaces(context.Context, string) ([]api.SpaceDoc, error)
ListStacks(context.Context, string, string) ([]api.StackDoc, error)
ListCells(context.Context, string, string, string) ([]api.CellDoc, error)
GetSecret(context.Context, api.SecretDoc) (kukeonv1.GetSecretResult, error)
CreateSecret(context.Context, api.SecretDoc) (kukeonv1.CreateSecretResult, error)
ApplyDocumentsForTeam(context.Context, []byte, string) (kukeonv1.ApplyDocumentsResult, error)
}
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
}