Documentation
¶
Overview ¶
Package nspawnops is the composition root for the nspawn isolation backend. The backend package cannot import the phase packages that implement its lifecycle operations, so this package binds them to an agent configuration and injects them as nspawn.Ops.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
type Params struct {
Log *slog.Logger
// Config is the agent configuration goal states are resolved from.
Config *config.AgentConfig
// Downloads optionally overrides artifact download sources.
Downloads *goalstates.DownloadOverrides
// Resolve overrides goal state resolution. Tests use it; the default is
// goalstates.ResolveMachine.
Resolve func(slot string) (*goalstates.MachineGoalState, error)
}
Params bind the operations to one machine's configuration.
Click to show internal directories.
Click to hide internal directories.