Documentation
¶
Overview ¶
Package nspawnlifecycle provides host-side nspawn lifecycle operations that applications can expose through their own CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigLoader ¶
type ConfigLoader func(ctx context.Context, machineName string) (cfg *config.AgentConfig, found bool, err error)
ConfigLoader returns the persisted config for a machine. found is false during the initial bootstrap window before the application persists config.
type Hooks ¶
type Hooks struct {
LoadConfig ConfigLoader
}
Hooks supplies application-owned lifecycle integration points.
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
Lifecycle implements reusable pre-start, post-start, and reconcile flows.
func New ¶
New returns a lifecycle implementation using shared agent behavior and the application's persisted-config loader.
func (*Lifecycle) PostStart ¶
PostStart repairs ephemeral NVIDIA state after the managed nspawn unit starts.
Click to show internal directories.
Click to hide internal directories.