banger/internal/daemon
Thales Maciel 4930d82cb9
Refactor VM lifecycle around capabilities
Make host-integrated VM features fit a standard Go extension path instead of adding more one-off branches through vm.go. This is the enabling refactor for future work like shared mounts, not the /work feature itself.

Add a daemon capability pipeline plus a structured guest-config builder, then move the existing /root work-disk mount, built-in DNS, and NAT wiring onto those hooks. Generalize Firecracker drive config at the same time so later storage features can extend machine setup without another hardcoded path.

Add banger doctor on top of the shared readiness checks, update the docs to describe the new architecture, and cover the new seams with guest-config, capability, report, CLI, and full go test verification. Also verify make build and a real ./banger doctor run on the host.
2026-03-18 19:28:26 -03:00
..
capabilities.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
capabilities_test.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
daemon.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
daemon_test.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
doctor.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
imagebuild.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
imagebuild_test.go Add tmux resurrect defaults to rebuilt images 2026-03-18 17:44:12 -03:00
images.go Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
logger.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
logger_test.go Move avoidable daemon shell-outs into Go 2026-03-17 17:13:07 -03:00
nat.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
nat_test.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
preflight.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
snapshot.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
snapshot_test.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
vm.go Refactor VM lifecycle around capabilities 2026-03-18 19:28:26 -03:00
vm_test.go Add concurrent multi-VM CLI actions 2026-03-18 14:04:16 -03:00