chore: clean types and align

This commit is contained in:
Harivansh Rathi 2026-04-07 15:49:26 -04:00
parent 3a256dc6e2
commit caeb9dfaa7
3 changed files with 45 additions and 46 deletions

View file

@ -5,6 +5,18 @@ import "time"
// Phase represents the lifecycle phase of a local microVM.
type Phase string
// MachineState describes the current host local state for a machine.
type MachineState struct {
ID MachineID
Phase Phase
PID int
RuntimeHost string
SocketPath string
TapName string
StartedAt *time.Time
Error string
}
const (
// PhaseProvisioning means host-local resources are still being prepared.
PhaseProvisioning Phase = "provisioning"
@ -17,15 +29,3 @@ const (
// PhaseError means the runtime observed a terminal failure.
PhaseError Phase = "error"
)
// MachineState describes the current host-local state for a machine.
type MachineState struct {
ID MachineID
Phase Phase
PID int
RuntimeHost string
SocketPath string
TapName string
StartedAt *time.Time
Error string
}