mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 06:04:38 +00:00
feat: initial contracts
This commit is contained in:
parent
58f95324f4
commit
6f0f0643fe
7 changed files with 127 additions and 0 deletions
27
internal/model/types.go
Normal file
27
internal/model/types.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue