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 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 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 and rootfs.
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 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.
Types ¶
This section is empty.