mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 09:01:12 +00:00
feat: initial contracts
This commit is contained in:
parent
58f95324f4
commit
6f0f0643fe
7 changed files with 127 additions and 0 deletions
16
internal/store/store.go
Normal file
16
internal/store/store.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/getcompanion-ai/computer-host/internal/model"
|
||||
contracthost "github.com/getcompanion-ai/computer-host/contract"
|
||||
)
|
||||
|
||||
type Store interface {
|
||||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue