mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-15 05:02:05 +00:00
feat: local first snapshot implementation end to end
This commit is contained in:
parent
fc21e897ea
commit
30282928f5
4 changed files with 279 additions and 60 deletions
|
|
@ -81,10 +81,15 @@ type UploadSnapshotResponse struct {
|
|||
}
|
||||
|
||||
type RestoreSnapshotRequest struct {
|
||||
MachineID MachineID `json:"machine_id"`
|
||||
Artifact ArtifactRef `json:"artifact"`
|
||||
Snapshot DurableSnapshotSpec `json:"snapshot"`
|
||||
GuestConfig *GuestConfig `json:"guest_config,omitempty"`
|
||||
MachineID MachineID `json:"machine_id"`
|
||||
Artifact ArtifactRef `json:"artifact"`
|
||||
LocalSnapshot *LocalSnapshotSpec `json:"local_snapshot,omitempty"`
|
||||
Snapshot *DurableSnapshotSpec `json:"snapshot,omitempty"`
|
||||
GuestConfig *GuestConfig `json:"guest_config,omitempty"`
|
||||
}
|
||||
|
||||
type LocalSnapshotSpec struct {
|
||||
SnapshotID SnapshotID `json:"snapshot_id"`
|
||||
}
|
||||
|
||||
type DurableSnapshotSpec struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue