mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 07:04:43 +00:00
feat(contracts): add published ports, snapshot request, and storage report types
This commit is contained in:
parent
501ae2abd5
commit
26b5d2966d
20 changed files with 893 additions and 81 deletions
|
|
@ -29,6 +29,11 @@ type Store interface {
|
|||
DeleteOperation(context.Context, contracthost.MachineID) error
|
||||
CreateSnapshot(context.Context, model.SnapshotRecord) error
|
||||
GetSnapshot(context.Context, contracthost.SnapshotID) (*model.SnapshotRecord, error)
|
||||
ListSnapshots(context.Context) ([]model.SnapshotRecord, error)
|
||||
ListSnapshotsByMachine(context.Context, contracthost.MachineID) ([]model.SnapshotRecord, error)
|
||||
DeleteSnapshot(context.Context, contracthost.SnapshotID) error
|
||||
CreatePublishedPort(context.Context, model.PublishedPortRecord) error
|
||||
GetPublishedPort(context.Context, contracthost.PublishedPortID) (*model.PublishedPortRecord, error)
|
||||
ListPublishedPorts(context.Context, contracthost.MachineID) ([]model.PublishedPortRecord, error)
|
||||
DeletePublishedPort(context.Context, contracthost.PublishedPortID) error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue