daemon

package
v0.9.3-dev.8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: GPL-3.0 Imports: 10 Imported by: 0 modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BusinessMutationAllowed added in v0.9.3

func BusinessMutationAllowed(phase string, validationMode bool) bool

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.

func Run

func Run(parent context.Context, options Options) error

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
}

type Runtime

type Runtime interface {
	Run(context.Context) error
}

Jump to

Keyboard shortcuts

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