mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 06:04:38 +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
15
contract/storage.go
Normal file
15
contract/storage.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package host
|
||||
|
||||
import "time"
|
||||
|
||||
type ArtifactRef struct {
|
||||
ID ArtifactID `json:"id"`
|
||||
Version ArtifactVersion `json:"version"`
|
||||
}
|
||||
|
||||
type Volume struct {
|
||||
ID VolumeID `json:"id"`
|
||||
Kind VolumeKind `json:"kind"`
|
||||
AttachedMachineID *MachineID `json:"attached_machine_id,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue