mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 08:03:40 +00:00
chore: clean types and align
This commit is contained in:
parent
3a256dc6e2
commit
caeb9dfaa7
3 changed files with 45 additions and 46 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue