Documentation
¶
Index ¶
- func CleanupMachine(log *slog.Logger, machineName string) phases.Task
- func CleanupRoutes(log *slog.Logger) phases.Task
- func ReloadSystemd(log *slog.Logger) phases.Task
- func RemoveAgentArtifacts(log *slog.Logger) phases.Task
- func RemoveAppliedConfig(log *slog.Logger, machineName string) phases.Task
- func RemoveMachine(log *slog.Logger, machineName string) phases.Task
- func RemoveNSpawnConfig(log *slog.Logger, machineName string) phases.Task
- func RemoveNetworkInterfaces(log *slog.Logger) phases.Task
- func RemoveWireGuardKeys(log *slog.Logger) phases.Task
- func StopDaemon(log *slog.Logger) phases.Task
- func StopMachine(log *slog.Logger, machineName string) phases.Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupMachine ¶
CleanupMachine returns a composite task that removes all artifacts of an nspawn machine: its nspawn configuration, rootfs, and applied config.
func CleanupRoutes ¶
CleanupRoutes returns a task that removes policy routing rules and flushes routing tables used by unbounded-net WireGuard gateways.
func ReloadSystemd ¶
ReloadSystemd returns a task that runs systemctl daemon-reload to pick up unit file changes made by other reset tasks.
func RemoveAgentArtifacts ¶
RemoveAgentArtifacts returns a task that removes the agent binary, install script, legacy uninstall script, config directory, and temp files.
func RemoveAppliedConfig ¶
RemoveAppliedConfig returns a task that removes the applied agent config file for the named machine. Errors are logged but do not fail the task.
func RemoveMachine ¶
RemoveMachine returns a task that removes the machine rootfs using machinectl and then force-removes the directory.
func RemoveNSpawnConfig ¶
RemoveNSpawnConfig returns a task that removes the nspawn configuration file and the systemd service override directory for the named machine.
func RemoveNetworkInterfaces ¶
RemoveNetworkInterfaces returns a task that removes all network interfaces created by unbounded-net: WireGuard interfaces (wg*), and tunnel/overlay interfaces (geneve0, vxlan0, ipip0, unbounded0, cbr0).
func RemoveWireGuardKeys ¶
RemoveWireGuardKeys returns a task that removes WireGuard private and public key files from /etc/wireguard.
func StopDaemon ¶
StopDaemon returns a task that stops, disables, and removes the unbounded-agent-daemon systemd unit. Errors from stop and disable are logged but do not fail the task since the unit may not be present.
Types ¶
This section is empty.