mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 03:00:42 +00:00
24 lines
1 KiB
Go
24 lines
1 KiB
Go
package store
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/getcompanion-ai/computer-host/internal/model"
|
|
contracthost "github.com/getcompanion-ai/computer-host/contract"
|
|
)
|
|
|
|
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
|
|
}
|