mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 05:02:05 +00:00
feat: deepen machine and storage contracts
This commit is contained in:
parent
6f0f0643fe
commit
04575d111c
5 changed files with 77 additions and 27 deletions
|
|
@ -1,6 +1,8 @@
|
|||
package host
|
||||
|
||||
import "time"
|
||||
type ArtifactID string
|
||||
|
||||
type ArtifactVersion string
|
||||
|
||||
type MachineID string
|
||||
|
||||
|
|
@ -23,12 +25,3 @@ const (
|
|||
VolumeKindSystem VolumeKind = "system"
|
||||
VolumeKindUser VolumeKind = "user"
|
||||
)
|
||||
|
||||
type Machine struct {
|
||||
ID MachineID `json:"id"`
|
||||
Phase MachinePhase `json:"phase"`
|
||||
RuntimeHost string `json:"runtime_host,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
StartedAt *time.Time `json:"started_at,omitempty"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue