Versions in this module Expand all Collapse all v0 v0.25.0 Nov 12, 2026 v0.24.0 Nov 12, 2026 Changes in this version + const CNIStateDir + const KubeletClientPKIDir + const KubeletDir + func Func(name string, do func(context.Context) error) phases.Task + func Logger(l *slog.Logger) *slog.Logger + func OrDefault(v, def string) string + func ResetCNIState(hostRoot string) error + func ResetKubeletIdentity(ns *goalstates.NodeStart) error + func RestartChanged(ctx context.Context, log *slog.Logger, wasRunning bool, units []ChangedUnit, ...) error + func RestoreSnapshot(log *slog.Logger, dir, hostRoot string) error + func Running(ctx context.Context, b isolation.Backend, root isolation.SlotRef) (bool, error) + func UnmountBelow(ctx context.Context, log *slog.Logger, run none.Runner, mountInfo string, ...) error + func UnmountBelowByPrefix(ctx context.Context, log *slog.Logger, run none.Runner, mountInfo string, ...) (map[string]error, error) + func UnmountStrictlyBelow(ctx context.Context, log *slog.Logger, run none.Runner, mountInfo string, ...) error + type ChangedUnit struct + Changed bool + Unit string + type GoalStateSource struct + Config *config.AgentConfig + Downloads *goalstates.DownloadOverrides + GoalState *goalstates.MachineGoalState + Log *slog.Logger + Resolve func(slot string) (*goalstates.MachineGoalState, error) + func (s GoalStateSource) For(slot string) (*goalstates.MachineGoalState, error) + type Hooks struct + CleanupNetwork func(ctx context.Context) error + ConfigSnapshotDir string + HostRoot string + Resolve func(slot string) (*goalstates.MachineGoalState, error) + SetupNetwork func(ctx context.Context) error + WaitLocalDNS func(ctx context.Context, ns *goalstates.NodeStart) error + func (h Hooks) AwaitLocalDNS(ctx context.Context, log *slog.Logger, ns *goalstates.NodeStart) error + func (h Hooks) CleanupHostNetwork(ctx context.Context, log *slog.Logger) error + func (h Hooks) SetupLocalDNSNetwork(ctx context.Context, log *slog.Logger, ns *goalstates.NodeStart) error + func (h Hooks) SnapshotDir(name string) string + type Snapshot struct + func TakeSnapshot(log *slog.Logger, dir, hostRoot string) (*Snapshot, error) + func TakeSnapshotOf(log *slog.Logger, dir, hostRoot string, paths []string) (*Snapshot, error) + func (s *Snapshot) Discard() + func (s *Snapshot) Restore() error + func (s *Snapshot) Restored() bool