Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BusinessMutationAllowed ¶ added in v0.9.3
BusinessMutationAllowed reports whether a persistent install phase may run Manager mutations, background refresh, or core start. Validation mode never allows business writes. An empty phase means no Unix install journal.
func CheckOrdinaryDaemonStart ¶ added in v0.9.3
func CheckOrdinaryDaemonStart(journal app.InstallJournal, present bool) error
CheckOrdinaryDaemonStart is the no-lock journal gate used by a normal daemon.
Types ¶
type BootstrapDecision ¶ added in v0.9.3
type BootstrapDecision struct {
AllowDaemon bool
RecoverRequired bool
RunValidation bool
CreateData bool
MigrateRequired bool
TargetAuthority bool
OldInit bool
ActivationPhase string
}
BootstrapDecision is the foreground Unix start classification. T18 wires default system mode; this task only exposes the decision.
func DecideForegroundBootstrap ¶ added in v0.9.3
func DecideForegroundBootstrap(journal app.InstallJournal, present, sourcePresent, root, system bool) (BootstrapDecision, error)
DecideForegroundBootstrap classifies root green-field, pending recover, activated target start, and non-root old initialization. It does not enable default system mode.
type Options ¶
type Options struct {
SnapshotSource logging.MachineSnapshotSource
DiagnosticReporter diagnostics.Reporter
Listen func(context.Context) (net.Listener, error)
OnReady func() error
Endpoint string
Token string
Version string
Ready chan<- struct{}
Store *state.Store
Runtime Runtime
ValidationMode bool
}