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
|
|
@ -8,9 +8,17 @@ import (
|
|||
)
|
||||
|
||||
type Store interface {
|
||||
PutArtifact(context.Context, model.ArtifactRecord) error
|
||||
GetArtifact(context.Context, contracthost.ArtifactRef) (*model.ArtifactRecord, error)
|
||||
ListArtifacts(context.Context) ([]model.ArtifactRecord, error)
|
||||
CreateMachine(context.Context, model.MachineRecord) error
|
||||
GetMachine(context.Context, contracthost.MachineID) (*model.MachineRecord, error)
|
||||
ListMachines(context.Context) ([]model.MachineRecord, error)
|
||||
UpdateMachine(context.Context, model.MachineRecord) error
|
||||
DeleteMachine(context.Context, contracthost.MachineID) error
|
||||
CreateVolume(context.Context, model.VolumeRecord) error
|
||||
GetVolume(context.Context, contracthost.VolumeID) (*model.VolumeRecord, error)
|
||||
ListVolumes(context.Context) ([]model.VolumeRecord, error)
|
||||
UpdateVolume(context.Context, model.VolumeRecord) error
|
||||
DeleteVolume(context.Context, contracthost.VolumeID) error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue