feat: local first snapshot implementation end to end

This commit is contained in:
Harivansh Rathi 2026-04-10 21:32:09 +00:00
parent fc21e897ea
commit 30282928f5
4 changed files with 279 additions and 60 deletions

View file

@ -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 {