feat: initial contracts

This commit is contained in:
Harivansh Rathi 2026-04-08 01:52:39 +00:00
parent 58f95324f4
commit 6f0f0643fe
7 changed files with 127 additions and 0 deletions

27
internal/model/types.go Normal file
View file

@ -0,0 +1,27 @@
package model
import (
"time"
contracthost "github.com/getcompanion-ai/computer-host/contract"
)
type MachineRecord struct {
ID contracthost.MachineID
Phase contracthost.MachinePhase
RuntimeHost string
Error string
CreatedAt time.Time
StartedAt *time.Time
}
type StoragePool string
type VolumeRecord struct {
ID contracthost.VolumeID
MachineID contracthost.MachineID
Kind contracthost.VolumeKind
Pool StoragePool
Path string
CreatedAt time.Time
}