Skip to content

An open-source, faster Devin alternative

TypeScript

promotion, stop

Brian Reardon56327727e754
diff --git a/internal/api/sandbox.go b/internal/api/sandbox.go
index b9b3d94b..492af6c4 100644
--- a/internal/api/sandbox.go
+++ b/internal/api/sandbox.go
@@ -1921,6 +1921,10 @@ func (s *Server) hibernateSandboxRemote(c echo.Context, sandboxID string) error
return c.JSON(http.StatusNotFound, map[string]string{"error": "sandbox not found"})
}
if session.Status != "running" {
+ // Idempotent: an already-hibernated (paused or deep) box is "hibernated".
+ if session.Status == "hibernated" {
+ return c.JSON(http.StatusOK, map[string]interface{}{"sandboxID": sandboxID, "status": "hibernated"})
+ }
return c.JSON(http.StatusBadRequest, map[string]string{"error": "sandbox is not running"})
}
@@ -1929,44 +1933,27 @@ func (s *Server) hibernateSandboxRemote(c echo.Context, sandboxID string) error
return c.JSON(http.StatusServiceUnavailable, map[string]string{"error": "worker unreachable"})
}
- grpcCtx, cancel := context.WithTimeout(c.Request().Context(), 60*time.Second)
+ grpcCtx, cancel := context.WithTimeout(c.Request().Context(), 30*time.Second)
defer cancel()
- grpcResp, err := client.HibernateSandbox(grpcCtx, &pb.HibernateSandboxRequest{
- SandboxId: sandboxID,
- })
- if err != nil {
- return c.JSON(http.StatusInternalServerError, map[string]string{
- "error": "hibernate failed: " + err.Error(),
- })
- }
-
- // Record hibernation in PG
- orgID, _ := auth.GetOrgID(c)
- _, superseded, _ := s.store.CreateHibernation(c.Request().Context(), sandboxID, orgID,
- grpcResp.CheckpointKey, grpcResp.SizeBytes,
- session.Region, session.Template, session.Config)
- s.deleteSupersededHibernation(superseded)
- _ = s.store.UpdateSandboxSessionStatus(c.Request().Context(), sandboxID, "hibernated", nil)
-
- // Invalidate the proxy route cache: wake may land the sandbox on a
- // different worker, so subsequent data-plane requests must re-resolve
- // the routing from the DB instead of hitting the old worker.
- if s.sandboxAPIProxy != nil {
- s.sandboxAPIProxy.InvalidateRouteCache(sandboxID)
+ // Customer "hibernate" maps to the RAM-resident pause tier: instant (QMP
+ // stop + guest-RAM pageout), unbilled, stays on this worker for a fast
+ // resume. The platform silently promotes it to deep (savevm) hibernation
+ // later — idle age (1h), the per-org paused cap, or memory pressure — so the
+ // customer only ever sees "hibernated". No checkpoint key/size to return.
+ if _, err := client.PauseSandbox(grpcCtx, &pb.PauseSandboxRequest{SandboxId: sandboxID}); err != nil {
+ return c.JSON(http.StatusInternalServerError, map[string]string{"error": "hibernate failed: " + err.Error()})
}
-
- resp := map[string]interface{}{
- "sandboxID": sandboxID,
- "status": "hibernated",
- "hibernationKey": grpcResp.CheckpointKey,
- "sizeBytes": grpcResp.SizeBytes,
+ if _, err := s.store.SetSandboxPaused(c.Request().Context(), sandboxID); err != nil {
+ log.Printf("hibernate: sandbox %s paused but DB update failed: %v", sandboxID, err)
}
- // Worker emits the "hibernated" lifecycle event before removing the
- // per-sandbox SQLite — events-ingest picks it up and updates D1.
-
- return c.JSON(http.StatusOK, resp)
+ // No route-cache invalidation: a paused box stays on session.WorkerID, and
+ // the proxy forwards resume traffic straight there.
+ return c.JSON(http.StatusOK, map[string]interface{}{
+ "sandboxID": sandboxID,
+ "status": "hibernated",
+ })
}
func (s *Server) wakeSandbox(c echo.Context) error {
diff --git a/internal/controlplane/scaler.go b/internal/controlplane/scaler.go
index d7b2fe24..a2c2db50 100644
--- a/internal/controlplane/scaler.go
+++ b/internal/controlplane/scaler.go
@@ -629,22 +629,30 @@ func (s *Scaler) hibernateBatch(workerID string, count int) {
}
hibernated := 0
- for _, sb := range listResp.Sandboxes {
+ // Prefer paused victims: they're already stopped/idle and customer-invisible
+ // ("hibernated" either way), so promoting them to deep is the least
+ // disruptive way to relieve pressure. Only evict running (active) sandboxes
+ // if paused victims aren't enough.
+ for _, want := range []string{"paused", "running"} {
if hibernated >= count {
break
}
- if sb.Status != "running" {
- continue
- }
- _, err := client.HibernateSandbox(ctx, &pb.HibernateSandboxRequest{
- SandboxId: sb.SandboxId,
- })
- if err != nil {
- log.Printf("scaler: emergency: hibernate %s failed: %v", sb.SandboxId, err)
- continue
+ for _, sb := range listResp.Sandboxes {
+ if hibernated >= count {
+ break
+ }
+ if sb.Status != want {
+ continue
+ }
+ if _, err := client.HibernateSandbox(ctx, &pb.HibernateSandboxRequest{
+ SandboxId: sb.SandboxId,
+ }); err != nil {
+ log.Printf("scaler: emergency: hibernate %s failed: %v", sb.SandboxId, err)
+ continue
+ }
+ hibernated++
+ log.Printf("scaler: emergency: hibernated %s (%s) on worker %s", sb.SandboxId, want, workerID)
}
- hibernated++
- log.Printf("scaler: emergency: hibernated %s on worker %s", sb.SandboxId, workerID)
}
log.Printf("scaler: emergency batch complete for %s: %d/%d hibernated",
diff --git a/internal/db/migrations/052_paused_hibernation_mode.down.sql b/internal/db/migrations/052_paused_hibernation_mode.down.sql
new file mode 100644
index 00000000..b623373f
--- /dev/null
+++ b/internal/db/migrations/052_paused_hibernation_mode.down.sql
@@ -0,0 +1,3 @@
+DROP INDEX IF EXISTS idx_sandbox_sessions_paused;
+ALTER TABLE sandbox_sessions DROP COLUMN IF EXISTS paused_at;
+ALTER TABLE sandbox_sessions DROP COLUMN IF EXISTS hibernation_mode;
diff --git a/internal/db/migrations/052_paused_hibernation_mode.up.sql b/internal/db/migrations/052_paused_hibernation_mode.up.sql
new file mode 100644
index 00000000..50563d41
--- /dev/null
+++ b/internal/db/migrations/052_paused_hibernation_mode.up.sql
@@ -0,0 +1,17 @@
+-- Two-tier hibernation. The customer-facing sandbox status stays 'hibernated',
+-- but internally a hibernated sandbox is one of:
+-- 'paused' — QMP stop + guest RAM paged out to swap; stays RAM-resident on its
+-- worker, unbilled, resumes instantly (QMP cont).
+-- 'deep' — savevm'd to the checkpoint store and evicted from the worker.
+-- NULL while running. The platform silently promotes paused → deep on idle age
+-- (1h) or the per-org paused cap (100), so customers only ever see 'hibernated'.
+ALTER TABLE sandbox_sessions ADD COLUMN hibernation_mode TEXT;
+
+-- When the sandbox was paused (NULL unless hibernation_mode = 'paused'). Drives
+-- the 1h idle→deep promotion and the oldest-first ordering for the 100-cap.
+ALTER TABLE sandbox_sessions ADD COLUMN paused_at TIMESTAMPTZ;
+
+-- The promotion reconciler scans paused rows by org (cap) and by age (1h).
+CREATE INDEX idx_sandbox_sessions_paused
+ ON sandbox_sessions(org_id, paused_at)
+ WHERE hibernation_mode = 'paused';
diff --git a/internal/db/pause.go b/internal/db/pause.go
new file mode 100644
index 00000000..29387901
--- /dev/null
+++ b/internal/db/pause.go
@@ -0,0 +1,97 @@
+package db
+
+import (
+ "context"
+ "time"
+
+ "github.com/google/uuid"
+)
+
+// PausedRef identifies a paused sandbox the promotion reconciler should deep-
+// hibernate, along with the worker that currently holds its RAM.
+type PausedRef struct {
+ SandboxID string
+ OrgID uuid.UUID
+ WorkerID string
+}
+
+// SetSandboxPaused transitions a running sandbox into the RAM-resident paused
+// tier: customer-visible status stays "hibernated", hibernation_mode becomes
+// "paused", paused_at is stamped. CAS on status='running' so a concurrent
+// stop/deep-hibernate/terminate wins cleanly. Returns whether a row changed.
+func (s *Store) SetSandboxPaused(ctx context.Context, sandboxID string) (bool, error) {
+ tag, err := s.pool.Exec(ctx,
+ `UPDATE sandbox_sessions
+ SET status = 'hibernated', hibernation_mode = 'paused', paused_at = now()
+ WHERE sandbox_id = $1 AND status = 'running'`, sandboxID)
+ if err != nil {
+ return false, err
+ }
+ return tag.RowsAffected() > 0, nil
+}
+
+// SetSandboxResumed transitions a paused sandbox back to running (QMP cont on
+// its existing worker — worker_id is unchanged). Clears the paused markers.
+func (s *Store) SetSandboxResumed(ctx context.Context, sandboxID string) error {
+ _, err := s.pool.Exec(ctx,
+ `UPDATE sandbox_sessions
+ SET status = 'running', hibernation_mode = NULL, paused_at = NULL
+ WHERE sandbox_id = $1`, sandboxID)
+ return err
+}
+
+// SetSandboxDeep marks a paused sandbox as deep-hibernated (savevm'd + evicted).
+// status stays "hibernated"; only the internal tier changes. CAS on
+// hibernation_mode='paused' so it no-ops if the box already resumed or was
+// promoted by another reconciler pass.
+func (s *Store) SetSandboxDeep(ctx context.Context, sandboxID string) (bool, error) {
+ tag, err := s.pool.Exec(ctx,
+ `UPDATE sandbox_sessions
+ SET hibernation_mode = 'deep', paused_at = NULL
+ WHERE sandbox_id = $1 AND hibernation_mode = 'paused'`, sandboxID)
+ if err != nil {
+ return false, err
+ }
+ return tag.RowsAffected() > 0, nil
+}
+
+// CountPausedByOrg returns how many paused (RAM-resident) sandboxes an org has.
+func (s *Store) CountPausedByOrg(ctx context.Context, orgID uuid.UUID) (int, error) {
+ var n int
+ err := s.pool.QueryRow(ctx,
+ `SELECT count(*) FROM sandbox_sessions
+ WHERE org_id = $1 AND hibernation_mode = 'paused'`, orgID).Scan(&n)
+ return n, err
+}
+
+// ListPausedToPromote returns paused sandboxes that should be promoted to deep
+// hibernation, either because they've been paused longer than ageCutoff (idle
+// too long) or because their org is over the per-org paused cap (the oldest
+// excess, oldest-first). One row per sandbox even if it matches both.
+func (s *Store) ListPausedToPromote(ctx context.Context, ageCutoff time.Time, orgCap int) ([]PausedRef, error) {
+ rows, err := s.pool.Query(ctx,
+ `SELECT sandbox_id, org_id, worker_id FROM (
+ SELECT sandbox_id, org_id, worker_id, paused_at,
+ row_number() OVER (PARTITION BY org_id ORDER BY paused_at ASC) AS rn,
+ count(*) OVER (PARTITION BY org_id) AS cnt
+ FROM sandbox_sessions
+ WHERE hibernation_mode = 'paused'
+ ) t
+ WHERE paused_at < $1 -- idle longer than the age cutoff
+ OR (cnt > $2 AND rn <= cnt - $2) -- oldest excess over the per-org cap
+ ORDER BY paused_at ASC`, ageCutoff, orgCap)
+ if err != nil {
+ return nil, err
+ }
+ defer rows.Close()
+
+ var refs []PausedRef
+ for rows.Next() {
+ var r PausedRef
+ if err := rows.Scan(&r.SandboxID, &r.OrgID, &r.WorkerID); err != nil {
+ return nil, err
+ }
+ refs = append(refs, r)
+ }
+ return refs, rows.Err()
+}
diff --git a/internal/db/store.go b/internal/db/store.go
index a6ff7308..24a9fea9 100644
--- a/internal/db/store.go
+++ b/internal/db/store.go
@@ -199,6 +199,7 @@ func (s *Store) Migrate(ctx context.Context) error {
{49, "migrations/049_sandbox_webhooks.up.sql"},
{50, "migrations/050_checkpoint_kind.up.sql"},
{51, "migrations/051_image_cache_is_public.up.sql"},
+ {52, "migrations/052_paused_hibernation_mode.up.sql"},
}
for _, m := range migrations {
@@ -748,6 +749,13 @@ type SandboxSession struct {
// stored — set once via SetSandboxPreviewAuth and rotated via the same.
PreviewAuthHash *string `json:"-"`
PreviewAuthScheme *string `json:"-"`
+
+ // Two-tier hibernation (customer status stays "hibernated"):
+ // HibernationMode: nil while running, "paused" (RAM-resident on WorkerID),
+ // or "deep" (savevm'd + evicted). PausedAt is set iff mode == "paused".
+ // Only populated by GetSandboxSession / GetSandboxSessionInOrg.
+ HibernationMode *string `json:"-"`
+ PausedAt *time.Time `json:"-"`
}
// SetSandboxPreviewAuth installs or rotates the per-sandbox bearer-token gate
@@ -1308,12 +1316,12 @@ func (s *Store) ReapStalePendingSessions(ctx context.Context, olderThan time.Dur
func (s *Store) GetSandboxSession(ctx context.Context, sandboxID string) (*SandboxSession, error) {
session := &SandboxSession{}
err := s.pool.QueryRow(ctx,
- `SELECT id, sandbox_id, org_id, user_id, template, region, worker_id, status, config, metadata, started_at, stopped_at, error_msg, based_on_checkpoint_id, last_patch_sequence, patch_error, golden_version, secret_store_id, preview_auth_hash, preview_auth_scheme
+ `SELECT id, sandbox_id, org_id, user_id, template, region, worker_id, status, config, metadata, started_at, stopped_at, error_msg, based_on_checkpoint_id, last_patch_sequence, patch_error, golden_version, secret_store_id, preview_auth_hash, preview_auth_scheme, hibernation_mode, paused_at
FROM sandbox_sessions WHERE sandbox_id = $1 ORDER BY started_at DESC LIMIT 1`, sandboxID,
).Scan(&session.ID, &session.SandboxID, &session.OrgID, &session.UserID, &session.Template,
&session.Region, &session.WorkerID, &session.Status, &session.Config, &session.Metadata,
&session.StartedAt, &session.StoppedAt, &session.ErrorMsg, &session.BasedOnCheckpointID, &session.LastPatchSequence, &session.PatchError, &session.GoldenVersion,
- &session.SecretStoreID, &session.PreviewAuthHash, &session.PreviewAuthScheme)
+ &session.SecretStoreID, &session.PreviewAuthHash, &session.PreviewAuthScheme, &session.HibernationMode, &session.PausedAt)
if err != nil {
return nil, fmt.Errorf("sandbox session not found: %w", err)
}
@@ -1329,14 +1337,14 @@ func (s *Store) GetSandboxSession(ctx context.Context, sandboxID string) (*Sandb
func (s *Store) GetSandboxSessionInOrg(ctx context.Context, orgID uuid.UUID, sandboxID string) (*SandboxSession, error) {
session := &SandboxSession{}
err := s.pool.QueryRow(ctx,
- `SELECT id, sandbox_id, org_id, user_id, template, region, worker_id, status, config, metadata, started_at, stopped_at, error_msg, based_on_checkpoint_id, last_patch_sequence, patch_error, golden_version, secret_store_id, preview_auth_hash, preview_auth_scheme
+ `SELECT id, sandbox_id, org_id, user_id, template, region, worker_id, status, config, metadata, started_at, stopped_at, error_msg, based_on_checkpoint_id, last_patch_sequence, patch_error, golden_version, secret_store_id, preview_auth_hash, preview_auth_scheme, hibernation_mode, paused_at
FROM sandbox_sessions
WHERE org_id = $1 AND sandbox_id = $2
ORDER BY started_at DESC LIMIT 1`, orgID, sandboxID,
).Scan(&session.ID, &session.SandboxID, &session.OrgID, &session.UserID, &session.Template,
&session.Region, &session.WorkerID, &session.Status, &session.Config, &session.Metadata,
&session.StartedAt, &session.StoppedAt, &session.ErrorMsg, &session.BasedOnCheckpointID, &session.LastPatchSequence, &session.PatchError, &session.GoldenVersion,
- &session.SecretStoreID, &session.PreviewAuthHash, &session.PreviewAuthScheme)
+ &session.SecretStoreID, &session.PreviewAuthHash, &session.PreviewAuthScheme, &session.HibernationMode, &session.PausedAt)
if err != nil {
return nil, fmt.Errorf("sandbox session not found: %w", err)
}
diff --git a/internal/proxy/sandbox_api_proxy.go b/internal/proxy/sandbox_api_proxy.go
index 0b13f8f8..bff05e37 100644
--- a/internal/proxy/sandbox_api_proxy.go
+++ b/internal/proxy/sandbox_api_proxy.go
@@ -260,6 +260,17 @@ func (p *SandboxAPIProxy) ProxyHandler(c echo.Context) error {
// If hibernated, wake on demand.
if session.Status == "hibernated" {
+ // Paused tier: the VM is RAM-resident on its worker (QMP stop), not
+ // savevm'd. Forward straight to that worker, which resumes it (QMP cont)
+ // on this request via the router — instant, no checkpoint restore, no
+ // 524. Only if the worker is gone do we fall through to the deep-restore
+ // paths below (its RAM is lost with the worker, same as a running box).
+ if session.HibernationMode != nil && *session.HibernationMode == "paused" {
+ if w := p.registry.GetWorker(session.WorkerID); w != nil && w.HTTPAddr != "" {
+ return p.forward(c, sandboxID, w.HTTPAddr, session.WorkerID)
+ }
+ log.Printf("sandbox-api-proxy: paused sandbox %s: owning worker %s gone, trying recovery", sandboxID, session.WorkerID)
+ }
// Async exec path (POST /exec/run-async, GET …/result): never hold the
// connection on the restore — a large cold checkpoint can exceed
// Cloudflare's 100s and 524. Claim a worker (atomic CAS) and forward
diff --git a/internal/qemu/manager.go b/internal/qemu/manager.go
index a4844ffa..103a16b0 100644
--- a/internal/qemu/manager.go
+++ b/internal/qemu/manager.go
@@ -274,6 +274,11 @@ type VMInstance struct {
// ticked) but doesn't represent a running sandbox here. The stale-incoming
// reaper destroys any whose migration never completes within the timeout.
incomingMigrationAt time.Time
+
+ // Set when the VM is paused (QMP stop + guest-RAM paged out to swap) — the
+ // customer-facing "hibernated" fast tier that stays resident on this worker.
+ // Zero = running. Drives the paused→deep promotion sweep. Guarded by opMu.
+ pausedAt time.Time
}
// SandboxMeta is persisted to sandbox-meta.json for recovery after hard kills.
diff --git a/internal/qemu/pause.go b/internal/qemu/pause.go
new file mode 100644
index 00000000..edd2656e
--- /dev/null
+++ b/internal/qemu/pause.go
@@ -0,0 +1,115 @@
+package qemu
+
+import (
+ "context"
+ "fmt"
+ "log"
+ "time"
+
+ "github.com/opensandbox/opensandbox/pkg/types"
+)
+
+// pauseReclaimMinRegionBytes is the size floor for a /proc/<pid>/maps region to
+// be treated as guest RAM (and paged out on pause). QEMU's own heap/stacks are
+// far below this; guest RAM regions are >= the configured memory.
+const pauseReclaimMinRegionBytes = 64 << 20 // 64 MiB
+
+// Pause freezes a running VM's vCPUs (QMP stop) and proactively pages its guest
+// memory out to the host swap tier, dropping the paused VM's physical footprint
+// to its compressed working set. Unlike Hibernate (savevm → evict), the VM stays
+// resident on this worker, so Resume is an instant QMP cont with a lazy
+// page-fault warm-up. No guest cooperation, no file-backed memory, no savevm —
+// so it avoids the qcow2/ext4 corruption surface entirely.
+//
+// Idempotent: pausing an already-paused VM is a no-op. Serialized with other
+// destructive VM ops via opMu.
+func (m *Manager) Pause(_ context.Context, sandboxID string) (reclaimedBytes uint64, err error) {
+ vm, err := m.getVM(sandboxID)
+ if err != nil {
+ return 0, err
+ }
+ if !vm.opMu.TryLock() {
+ return 0, fmt.Errorf("another operation is in progress on sandbox %s — try again shortly", sandboxID)
+ }
+ defer vm.opMu.Unlock()
+
+ if !vm.pausedAt.IsZero() {
+ return 0, nil // already paused
+ }
+ if vm.qmp == nil {
+ return 0, fmt.Errorf("no QMP client for sandbox %s", sandboxID)
+ }
+
+ if err := vm.qmp.Stop(); err != nil {
+ return 0, fmt.Errorf("qmp stop: %w", err)
+ }
+ vm.pausedAt = time.Now()
+ vm.Status = types.SandboxStatusPaused
+
+ // Stop billing: flush the final running slice, exactly like hibernate. The
+ // usage ticker skips non-running VMs, so a paused VM accrues nothing while
+ // resident. Resume calls OnSandboxWake to start billing again.
+ if m.lifecycleObs != nil {
+ m.lifecycleObs.OnSandboxHibernate(sandboxID, vm.MemoryMB, vm.CpuCount, vm.StartedAt)
+ }
+
+ // Proactively reclaim now that the vCPUs are frozen (nothing will re-fault
+ // the pages immediately). Best-effort: a failure here just means less
+ // physical reclaim — the kernel still swaps the cold pages under pressure —
+ // not a broken pause, so we keep the VM paused regardless.
+ t0 := time.Now()
+ advised, rErr := reclaimGuestRAM(vm.pid, pauseReclaimMinRegionBytes)
+ if rErr != nil {
+ log.Printf("qemu: pause %s: stopped; reclaim best-effort failed: %v", sandboxID, rErr)
+ } else {
+ log.Printf("qemu: pause %s: stopped + advised %d MiB to swap in %dms",
+ sandboxID, advised>>20, time.Since(t0).Milliseconds())
+ }
+ return advised, nil
+}
+
+// Resume restores a paused VM's vCPUs (QMP cont). Paged-out guest memory faults
+// back from swap lazily as the guest runs — instant, no savevm/loadvm restore.
+//
+// Idempotent: resuming a non-paused VM is a no-op.
+func (m *Manager) Resume(_ context.Context, sandboxID string) error {
+ vm, err := m.getVM(sandboxID)
+ if err != nil {
+ return err
+ }
+ if !vm.opMu.TryLock() {
+ return fmt.Errorf("another operation is in progress on sandbox %s — try again shortly", sandboxID)
+ }
+ defer vm.opMu.Unlock()
+
+ if vm.pausedAt.IsZero() {
+ return nil // not paused
+ }
+ if vm.qmp == nil {
+ return fmt.Errorf("no QMP client for sandbox %s", sandboxID)
+ }
+
+ if err := vm.qmp.Cont(); err != nil {
+ return fmt.Errorf("qmp cont: %w", err)
+ }
+ vm.pausedAt = time.Time{}
+ vm.Status = types.SandboxStatusRunning
+
+ // Resume billing (the VM is a live running sandbox again).
+ if m.lifecycleObs != nil {
+ m.lifecycleObs.OnSandboxWake(sandboxID)
+ }
+ log.Printf("qemu: resume %s: vCPUs running", sandboxID)
+ return nil
+}
+
+// IsPaused reports whether the VM is currently paused and, if so, since when.
+// A best-effort read for the promotion sweeper and status projection; the
+// pausedAt read is not opMu-guarded (a benign race for a monotonic timestamp).
+func (m *Manager) IsPaused(sandboxID string) (since time.Time, paused bool) {
+ vm, err := m.getVM(sandboxID)
+ if err != nil {
+ return time.Time{}, false
+ }
+ return vm.pausedAt, !vm.pausedAt.IsZero()
+}
diff --git a/internal/qemu/reclaim_linux.go b/internal/qemu/reclaim_linux.go
new file mode 100644
index 00000000..2a03576f
--- /dev/null
+++ b/internal/qemu/reclaim_linux.go
@@ -0,0 +1,127 @@
+//go:build linux
+
+package qemu
+
+import (
+ "bufio"
+ "fmt"
+ "os"
+ "strconv"
+ "strings"
+ "syscall"
+ "unsafe"
+
+ "golang.org/x/sys/unix"
+)
+
+// iovec mirrors C `struct iovec` for process_madvise. base holds an address in
+// the TARGET process's address space — it is never dereferenced here, so it's a
+// plain uintptr (avoids the unsafe.Pointer(uintptr) foreign-address pattern that
+// go vet flags). On 64-bit both fields are 8 bytes, matching the kernel ABI.
+type iovec struct {
+ base uintptr
+ length uintptr
+}
+
+// reclaimGuestRAM proactively pages a (stopped) VM's guest memory out to the
+// host swap tier (zram + disk fallback) so a paused VM's physical footprint
+// drops to its compressed/needed set — without touching the guest, without
+// file-backed memory, and without savevm (so it never hits the qcow2/ext4
+// corruption surface). It process_madvise(MADV_PAGEOUT)s the large anonymous
+// rw-p mappings in /proc/<pid>/maps (guest RAM); QEMU's own heap/stacks are far
+// below minRegionBytes and stay resident.
+//
+// Preconditions: the vCPUs are already QMP-stopped (so nothing immediately
+// re-faults the pages) and the caller has CAP_SYS_NICE + ptrace access to pid
+// (the worker runs as root). Best-effort — returns the bytes advised.
+func reclaimGuestRAM(pid int, minRegionBytes uint64) (uint64, error) {
+ iovs, total, err := guestRAMRegions(pid, minRegionBytes)
+ if err != nil {
+ return 0, err
+ }
+ if len(iovs) == 0 {
+ return 0, nil
+ }
+
+ pidfd, _, errno := syscall.Syscall(unix.SYS_PIDFD_OPEN, uintptr(pid), 0, 0)
+ if errno != 0 {
+ return 0, fmt.Errorf("pidfd_open(%d): %w", pid, errno)
+ }
+ defer syscall.Close(int(pidfd))
+
+ // process_madvise may advise fewer bytes than requested per call; resume
+ // from where it stopped so every region is covered.
+ off := 0
+ for off < len(iovs) {
+ n, _, errno := syscall.Syscall6(unix.SYS_PROCESS_MADVISE,
+ pidfd,
+ uintptr(unsafe.Pointer(&iovs[off])),
+ uintptr(len(iovs)-off),
+ uintptr(unix.MADV_PAGEOUT),
+ 0, 0)
+ if errno != 0 {
+ return total, fmt.Errorf("process_madvise: %w", errno)
+ }
+ if n == 0 {
+ break // nothing advanced — avoid an infinite loop
+ }
+ // Advance past fully-advised iovecs; shrink a partially-advised one.
+ adv := uintptr(n)
+ for off < len(iovs) && adv >= iovs[off].length {
+ adv -= iovs[off].length
+ off++
+ }
+ if adv > 0 && off < len(iovs) {
+ iovs[off].base += adv
+ iovs[off].length -= adv
+ }
+ }
+ return total, nil
+}
+
+// guestRAMRegions parses /proc/<pid>/maps and returns iovecs for the large
+// anonymous rw-p mappings (guest RAM) plus their total size. File-backed guest
+// memory is intentionally out of scope (we don't use memory-backend-file).
+func guestRAMRegions(pid int, minRegionBytes uint64) ([]iovec, uint64, error) {
+ f, err := os.Open(fmt.Sprintf("/proc/%d/maps", pid))
+ if err != nil {
+ return nil, 0, err
+ }
+ defer f.Close()
+
+ var iovs []iovec
+ var total uint64
+ sc := bufio.NewScanner(f)
+ sc.Buffer(make([]byte, 256*1024), 1024*1024)
+ for sc.Scan() {
+ // format: start-end perms offset dev inode [pathname]
+ fields := strings.Fields(sc.Text())
+ if len(fields) < 5 {
+ continue
+ }
+ perms := fields[1]
+ // Guest RAM is private, readable, writable. Skip shared/exec/read-only.
+ if len(perms) < 4 || perms[0] != 'r' || perms[1] != 'w' || perms[3] != 'p' {
+ continue
+ }
+ // Anonymous only: no pathname, or a kernel-synthesised [anon:...] name.
+ // A real file path means file-backed memory — not us.
+ if len(fields) >= 6 && fields[5] != "" && !strings.HasPrefix(fields[5], "[anon") {
+ continue
+ }
+ dash := strings.IndexByte(fields[0], '-')
+ if dash < 0 {
+ continue
+ }
+ start, err1 := strconv.ParseUint(fields[0][:dash], 16, 64)
+ end, err2 := strconv.ParseUint(fields[0][dash+1:], 16, 64)
+ if err1 != nil || err2 != nil || end <= start {
+ continue
+ }
+ if sz := end - start; sz >= minRegionBytes {
+ iovs = append(iovs, iovec{base: uintptr(start), length: uintptr(sz)})
+ total += sz
+ }
+ }
+ return iovs, total, sc.Err()
+}
diff --git a/internal/qemu/reclaim_other.go b/internal/qemu/reclaim_other.go
new file mode 100644
index 00000000..968b3297
--- /dev/null
+++ b/internal/qemu/reclaim_other.go
@@ -0,0 +1,11 @@
+//go:build !linux
+
+package qemu
+
+import "fmt"
+
+// reclaimGuestRAM is Linux-only (process_madvise + /proc/<pid>/maps). On other
+// platforms it's a no-op error so the package still builds for local dev.
+func reclaimGuestRAM(pid int, minRegionBytes uint64) (uint64, error) {
+ return 0, fmt.Errorf("guest RAM reclaim not supported on this platform")
+}
diff --git a/internal/sandbox/router.go b/internal/sandbox/router.go
index 76b1aa8e..5d9cd82a 100644
--- a/internal/sandbox/router.go
+++ b/internal/sandbox/router.go
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"log"
+ "os"
"sync"
"time"
@@ -20,6 +21,7 @@ const (
StateWaking
StateHibernating // transitional: hibernate in progress, blocks new operations
StateCreating // async creation in progress — commands wait until ready
+ StatePaused // RAM-resident on this worker (QMP stop + guest RAM paged out); instant resume via QMP cont
)
func (s SandboxState) String() string {
@@ -34,6 +36,8 @@ func (s SandboxState) String() string {
return "hibernating"
case StateCreating:
return "creating"
+ case StatePaused:
+ return "paused"
default:
return "unknown"
}
@@ -79,6 +83,12 @@ type SandboxRouter struct {
onHibernate func(sandboxID string, result *HibernateResult)
onKill func(sandboxID string)
+ // pausePromoteAfter is how long a box may stay in the RAM-resident paused
+ // tier before it's promoted to deep hibernation (savevm + evict), reclaiming
+ // its worker RAM/swap. Armed as a per-box timer on pause. Default 1h;
+ // override via OSB_PAUSE_PROMOTE_AFTER (Go duration) for testing.
+ pausePromoteAfter time.Duration
+
mu sync.RWMutex
sandboxes map[string]*sandboxEntry
@@ -88,16 +98,23 @@ type SandboxRouter struct {
// NewSandboxRouter creates a new sandbox router.
func NewSandboxRouter(cfg RouterConfig) *SandboxRouter {
dt := cfg.DefaultTimeout
+ promoteAfter := time.Hour
+ if v := os.Getenv("OSB_PAUSE_PROMOTE_AFTER"); v != "" {
+ if d, err := time.ParseDuration(v); err == nil && d > 0 {
+ promoteAfter = d
+ }
+ }
// 0 = no auto-timeout (sandboxes run until explicitly killed/hibernated)
return &SandboxRouter{
- manager: cfg.Manager,
- checkpointStore: cfg.CheckpointStore,
- store: cfg.Store,
- workerID: cfg.WorkerID,
- defaultTimeout: dt,
- onHibernate: cfg.OnHibernate,
- onKill: cfg.OnKill,
- sandboxes: make(map[string]*sandboxEntry),
+ manager: cfg.Manager,
+ checkpointStore: cfg.CheckpointStore,
+ store: cfg.Store,
+ workerID: cfg.WorkerID,
+ defaultTimeout: dt,
+ onHibernate: cfg.OnHibernate,
+ onKill: cfg.OnKill,
+ pausePromoteAfter: promoteAfter,
+ sandboxes: make(map[string]*sandboxEntry),
}
}
@@ -404,6 +421,25 @@ func (r *SandboxRouter) ensureRunning(ctx context.Context, sandboxID string) err
return ctx.Err()
}
+ case StatePaused:
+ // RAM-resident on this worker — resume is an instant QMP cont, not a
+ // checkpoint restore. Reuse the StateWaking machinery so concurrent
+ // requests queue on the single resume.
+ entry.state = StateWaking
+ entry.wakeCh = make(chan struct{})
+ entry.wakeErr = nil
+ entry.mu.Unlock()
+
+ r.doResume(ctx, sandboxID, entry)
+
+ entry.mu.Lock()
+ err := entry.wakeErr
+ entry.mu.Unlock()
+ if err != nil {
+ return fmt.Errorf("auto-resume failed for sandbox %s: %w", sandboxID, err)
+ }
+ return nil
+
default:
entry.mu.Unlock()
return fmt.Errorf("sandbox %s in unexpected state: %v", sandboxID, entry.state)
@@ -489,6 +525,160 @@ func (r *SandboxRouter) doWake(ctx context.Context, sandboxID string, entry *san
entry.mu.Unlock()
}
+// pausableManager is the optional Manager capability for the RAM-resident pause
+// tier (implemented by the QEMU manager). Type-asserted so non-QEMU backends
+// aren't forced to implement it.
+type pausableManager interface {
+ Pause(ctx context.Context, sandboxID string) (reclaimedBytes uint64, err error)
+ Resume(ctx context.Context, sandboxID string) error
+}
+
+// MarkPaused records that a sandbox was paused out-of-band (e.g. an explicit
+// customer hibernate handled at the control plane via the PauseSandbox RPC), so
+// the router routes the next request through doResume instead of a checkpoint
+// wake. No-op if the sandbox isn't tracked.
+func (r *SandboxRouter) MarkPaused(sandboxID string) {
+ r.mu.RLock()
+ entry, ok := r.sandboxes[sandboxID]
+ r.mu.RUnlock()
+ if !ok {
+ return
+ }
+ entry.mu.Lock()
+ if entry.timer != nil {
+ entry.timer.Stop()
+ entry.timer = nil
+ }
+ entry.state = StatePaused
+ entry.mu.Unlock()
+ r.armPromoteTimer(sandboxID)
+}
+
+// armPromoteTimer (re)arms the per-box timer that promotes a paused VM to deep
+// hibernation after pausePromoteAfter (default 1h), reclaiming its worker
+// RAM/swap. Event-driven — no polling. A resume or promotion stops it.
+func (r *SandboxRouter) armPromoteTimer(sandboxID string) {
+ if r.pausePromoteAfter <= 0 {
+ return
+ }
+ r.mu.RLock()
+ entry, ok := r.sandboxes[sandboxID]
+ r.mu.RUnlock()
+ if !ok {
+ return
+ }
+ entry.mu.Lock()
+ if entry.state == StatePaused {
+ if entry.timer != nil {
+ entry.timer.Stop()
+ }
+ entry.timer = time.AfterFunc(r.pausePromoteAfter, func() { r.promoteToDeep(sandboxID) })
+ }
+ entry.mu.Unlock()
+}
+
+// promoteToDeep deep-hibernates a still-paused VM (savevm + evict). manager
+// Hibernate handles the paused case internally (it un-freezes the vCPUs so the
+// guest can quiesce before savevm). DB goes mode paused→deep (status stays
+// "hibernated"); no-op if the box already resumed or was promoted.
+func (r *SandboxRouter) promoteToDeep(sandboxID string) {
+ r.mu.RLock()
+ entry, ok := r.sandboxes[sandboxID]
+ r.mu.RUnlock()
+ if !ok {
+ return
+ }
+ entry.mu.Lock()
+ if entry.state != StatePaused || r.checkpointStore == nil {
+ entry.mu.Unlock()
+ return
+ }
+ entry.state = StateHibernating // block routing during savevm
+ entry.timer = nil
+ entry.mu.Unlock()
+
+ ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
+ defer cancel()
+
+ // Fully un-pause through the tested Resume path (QMP cont) and let the guest
+ // fault its RAM back from swap and settle, THEN run the normal Hibernate.
+ // This routes promotion through the exact savevm path a running-box hibernate
+ // uses, instead of a Cont-then-immediately-savevm special case that could
+ // capture the disk mid-flush.
+ if pm, ok := r.manager.(pausableManager); ok {
+ if err := pm.Resume(ctx, sandboxID); err != nil {
+ log.Printf("router: promote %s: resume-before-hibernate failed, keeping paused: %v", sandboxID, err)
+ entry.mu.Lock()
+ entry.state = StatePaused
+ entry.mu.Unlock()
+ return
+ }
+ time.Sleep(time.Second) // let the guest settle after faulting RAM back in
+ }
+
+ result, err := r.manager.Hibernate(ctx, sandboxID, r.checkpointStore)
+ if err != nil {
+ log.Printf("router: promote %s to deep failed, keeping paused: %v", sandboxID, err)
+ entry.mu.Lock()
+ entry.state = StatePaused
+ entry.mu.Unlock()
+ return
+ }
+ if r.store != nil {
+ if _, dbErr := r.store.SetSandboxDeep(ctx, sandboxID); dbErr != nil {
+ log.Printf("router: promote %s: SetSandboxDeep failed: %v", sandboxID, dbErr)
+ }
+ }
+ entry.mu.Lock()
+ entry.state = StateHibernated
+ entry.timer = nil
+ entry.mu.Unlock()
+ if r.onHibernate != nil {
+ r.onHibernate(sandboxID, result)
+ }
+ log.Printf("router: promoted paused sandbox %s to deep hibernation", sandboxID)
+}
+
+// doResume brings a paused VM back with an instant QMP cont (no checkpoint
+// restore). Mirrors doWake's queueing contract: the caller has moved the entry
+// to StateWaking with a fresh wakeCh; we set wakeErr and the terminal state,
+// then close wakeCh.
+func (r *SandboxRouter) doResume(_ context.Context, sandboxID string, entry *sandboxEntry) {
+ resumeCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
+ defer cancel()
+
+ var resumeErr error
+ defer func() {
+ entry.mu.Lock()
+ entry.wakeErr = resumeErr
+ if resumeErr != nil {
+ entry.state = StatePaused // revert — still resident, just not resumed
+ } else {
+ entry.state = StateRunning
+ if entry.timeout > 0 {
+ entry.timer = time.AfterFunc(entry.timeout, func() { r.onTimeout(sandboxID) })
+ }
+ }
+ close(entry.wakeCh)
+ entry.wakeCh = nil
+ entry.mu.Unlock()
+ }()
+
+ pm, ok := r.manager.(pausableManager)
+ if !ok {
+ resumeErr = fmt.Errorf("resume not supported by this backend")
+ return
+ }
+ if err := pm.Resume(resumeCtx, sandboxID); err != nil {
+ resumeErr = err
+ return
+ }
+ if r.store != nil {
+ _ = r.store.SetSandboxResumed(resumeCtx, sandboxID)
+ }
+ log.Printf("router: auto-resumed paused sandbox %s", sandboxID)
+}
+
// resetTimeout resets the rolling timeout for a sandbox.
func (r *SandboxRouter) resetTimeout(sandboxID string) {
r.mu.RLock()
@@ -540,6 +730,30 @@ func (r *SandboxRouter) onTimeout(sandboxID string) {
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
defer cancel()
+ // Prefer the RAM-resident pause tier: instant, unbilled, no savevm, and it
+ // stays on this worker for a fast resume. Deep hibernation happens later,
+ // off the hot path, via the promotion reconciler (1h idle / per-org cap) or
+ // memory pressure. Fall through to deep hibernate if pause is unsupported or
+ // fails.
+ if pm, ok := r.manager.(pausableManager); ok {
+ if _, err := pm.Pause(ctx, sandboxID); err == nil {
+ if r.store != nil {
+ if _, dbErr := r.store.SetSandboxPaused(ctx, sandboxID); dbErr != nil {
+ log.Printf("router: sandbox %s paused but DB update failed: %v", sandboxID, dbErr)
+ }
+ }
+ entry.mu.Lock()
+ entry.state = StatePaused
+ entry.timer = nil
+ entry.mu.Unlock()
+ r.armPromoteTimer(sandboxID)
+ log.Printf("router: sandbox %s paused on idle (RAM-resident)", sandboxID)
+ return
+ } else {
+ log.Printf("router: pause failed for %s, falling back to deep hibernate: %v", sandboxID, err)
+ }
+ }
+
// Try hibernate if checkpoint store is available
if r.checkpointStore != nil {
result, err := r.manager.Hibernate(ctx, sandboxID, r.checkpointStore)
diff --git a/internal/worker/grpc_server.go b/internal/worker/grpc_server.go
index c9bb45e8..3bf365a7 100644
--- a/internal/worker/grpc_server.go
+++ b/internal/worker/grpc_server.go
@@ -744,6 +744,51 @@ func (s *GRPCServer) ExecSessionResult(ctx context.Context, req *pb.ExecSessionR
return resp, nil
}
+// pausableManager is the optional capability a manager backend implements to
+// support the RAM-resident pause tier (QEMU: stop + guest-RAM pageout). Kept as
+// a local capability interface (like LiveMigrator) so non-QEMU backends and
+// test mocks don't have to implement it.
+type pausableManager interface {
+ Pause(ctx context.Context, sandboxID string) (reclaimedBytes uint64, err error)
+ Resume(ctx context.Context, sandboxID string) error
+}
+
+// PauseSandbox freezes the VM's vCPUs and pages its guest RAM out to swap — the
+// RAM-resident fast tier. The VM stays on this worker (no checkpoint store
+// needed); ResumeSandbox brings it back instantly.
+func (s *GRPCServer) PauseSandbox(ctx context.Context, req *pb.PauseSandboxRequest) (*pb.PauseSandboxResponse, error) {
+ pm, ok := s.manager.(pausableManager)
+ if !ok {
+ return nil, fmt.Errorf("pause not supported by this worker backend")
+ }
+ reclaimed, err := pm.Pause(ctx, req.SandboxId)
+ if err != nil {
+ return nil, fmt.Errorf("failed to pause sandbox: %w", err)
+ }
+ // Record it in the router so the next routed request resumes (QMP cont)
+ // instead of attempting a checkpoint wake.
+ if s.router != nil {
+ s.router.MarkPaused(req.SandboxId)
+ }
+ return &pb.PauseSandboxResponse{
+ SandboxId: req.SandboxId,
+ ReclaimedBytes: int64(reclaimed),
+ }, nil
+}
+
+// ResumeSandbox restores a paused VM's vCPUs (QMP cont). Paged-out guest memory
+// faults back from swap lazily — instant, no savevm/loadvm restore.
+func (s *GRPCServer) ResumeSandbox(ctx context.Context, req *pb.ResumeSandboxRequest) (*pb.ResumeSandboxResponse, error) {
+ pm, ok := s.manager.(pausableManager)
+ if !ok {
+ return nil, fmt.Errorf("resume not supported by this worker backend")
+ }
+ if err := pm.Resume(ctx, req.SandboxId); err != nil {
+ return nil, fmt.Errorf("failed to resume sandbox: %w", err)
+ }
+ return &pb.ResumeSandboxResponse{SandboxId: req.SandboxId}, nil
+}
+
func (s *GRPCServer) HibernateSandbox(ctx context.Context, req *pb.HibernateSandboxRequest) (*pb.HibernateSandboxResponse, error) {
if s.checkpointStore == nil {
return nil, fmt.Errorf("hibernation not configured on this worker")
@@ -766,6 +811,16 @@ func (s *GRPCServer) HibernateSandbox(ctx context.Context, req *pb.HibernateSand
s.router.MarkHibernated(req.SandboxId, 600*time.Second)
}
+ // Record the deep tier: a HibernateSandbox always produces a savevm'd,
+ // evicted checkpoint. CAS on mode='paused' (the box was in the pause tier
+ // and is being promoted); a no-op otherwise. Lets the proxy route wake to
+ // the deep-restore path instead of trying the (now-evicted) worker.
+ if s.store != nil {
+ if _, err := s.store.SetSandboxDeep(ctx, req.SandboxId); err != nil {
+ log.Printf("grpc: SetSandboxDeep(%s) failed: %v", req.SandboxId, err)
+ }
+ }
+
// Emit hibernated lifecycle event BEFORE removing the per-sandbox SQLite.
// The SandboxDBManager's OnRemove hook flushes synchronously so this event
// reaches events-ingest and updates D1 sandboxes_index.
diff --git a/internal/worker/http_server.go b/internal/worker/http_server.go
index 1a1b1be2..6781efbf 100644
--- a/internal/worker/http_server.go
+++ b/internal/worker/http_server.go
@@ -2,6 +2,7 @@ package worker
import (
"net/http"
+ "os"
"sync"
"github.com/labstack/echo/v4"
@@ -77,6 +78,14 @@ func NewHTTPServer(mgr sandbox.Manager, ptyMgr *sandbox.PTYManager, execMgr *san
return c.JSON(http.StatusOK, map[string]string{"status": "ok", "role": "worker"})
})
+ // Debug-only pause/resume hooks for measuring the RAM-resident pause tier
+ // (localhost, no auth). Gated by OSB_DEBUG_PAUSE=1 — never registered in
+ // normal operation. Scaffolding for Phase-1 validation; remove before GA.
+ if os.Getenv("OSB_DEBUG_PAUSE") == "1" {
+ e.POST("/debug/pause/:id", s.debugPause)
+ e.POST("/debug/resume/:id", s.debugResume)
+ }
+
// All sandbox routes require JWT auth
api := e.Group("")
api.Use(auth.SandboxJWTMiddleware(jwtIssuer))
@@ -136,3 +145,28 @@ func (s *HTTPServer) Start(addr string) error {
func (s *HTTPServer) Close() error {
return s.echo.Close()
}
+
+// debugPause / debugResume are OSB_DEBUG_PAUSE-gated measurement hooks for the
+// RAM-resident pause tier. Not part of the product surface.
+func (s *HTTPServer) debugPause(c echo.Context) error {
+ pm, ok := s.manager.(pausableManager)
+ if !ok {
+ return c.JSON(http.StatusServiceUnavailable, map[string]string{"error": "pause not supported"})
+ }
+ reclaimed, err := pm.Pause(c.Request().Context(), c.Param("id"))
+ if err != nil {
+ return c.JSON(http.StatusInternalServerError, map[string]string{"error": err.Error()})
+ }
+ return c.JSON(http.StatusOK, map[string]any{"reclaimedBytes": reclaimed})
+}
+
+func (s *HTTPServer) debugResume(c echo.Context) error {
+ pm, ok := s.manager.(pausableManager)
+ if !ok {
+ return c.JSON(http.StatusServiceUnavailable, map[string]string{"error": "resume not supported"})
+ }
+ if err := pm.Resume(c.Request().Context(), c.Param("id")); err != nil {
+ return c.JSON(http.StatusInternalServerError, map[string]string{"error": err.Error()})
+ }
+ return c.JSON(http.StatusOK, map[string]string{"status": "resumed"})
+}
diff --git a/pkg/types/sandbox.go b/pkg/types/sandbox.go
index a1e7fc17..78b87ec6 100644
--- a/pkg/types/sandbox.go
+++ b/pkg/types/sandbox.go
@@ -14,6 +14,12 @@ const (
SandboxStatusStopped SandboxStatus = "stopped"
SandboxStatusError SandboxStatus = "error"
SandboxStatusHibernated SandboxStatus = "hibernated"
+ // SandboxStatusPaused is a worker-internal status: the VM is RAM-resident but
+ // vCPU-stopped with guest RAM paged out (the fast hibernation tier). Not
+ // billed (usage ticker skips non-running) but distinct from "hibernated" so
+ // emergency hibernation can prefer paused victims. The control plane always
+ // projects it as "hibernated" to customers.
+ SandboxStatusPaused SandboxStatus = "paused"
)
// Sandbox represents a running sandbox instance.
diff --git a/proto/worker/worker.pb.go b/proto/worker/worker.pb.go
index d0c6bddc..f798a977 100644
--- a/proto/worker/worker.pb.go
+++ b/proto/worker/worker.pb.go
@@ -1829,6 +1829,191 @@ func (x *WakeSandboxResponse) GetStatus() string {
return ""
}
+type PauseSandboxRequest struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *PauseSandboxRequest) Reset() {
+ *x = PauseSandboxRequest{}
+ mi := &file_proto_worker_worker_proto_msgTypes[31]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *PauseSandboxRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PauseSandboxRequest) ProtoMessage() {}
+
+func (x *PauseSandboxRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_worker_worker_proto_msgTypes[31]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PauseSandboxRequest.ProtoReflect.Descriptor instead.
+func (*PauseSandboxRequest) Descriptor() ([]byte, []int) {
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{31}
+}
+
+func (x *PauseSandboxRequest) GetSandboxId() string {
+ if x != nil {
+ return x.SandboxId
+ }
+ return ""
+}
+
+type PauseSandboxResponse struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
+ // Bytes advised out to swap (MADV_PAGEOUT) — for reclaim observability.
+ ReclaimedBytes int64 `protobuf:"varint,2,opt,name=reclaimed_bytes,json=reclaimedBytes,proto3" json:"reclaimed_bytes,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *PauseSandboxResponse) Reset() {
+ *x = PauseSandboxResponse{}
+ mi := &file_proto_worker_worker_proto_msgTypes[32]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *PauseSandboxResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PauseSandboxResponse) ProtoMessage() {}
+
+func (x *PauseSandboxResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_worker_worker_proto_msgTypes[32]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use PauseSandboxResponse.ProtoReflect.Descriptor instead.
+func (*PauseSandboxResponse) Descriptor() ([]byte, []int) {
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{32}
+}
+
+func (x *PauseSandboxResponse) GetSandboxId() string {
+ if x != nil {
+ return x.SandboxId
+ }
+ return ""
+}
+
+func (x *PauseSandboxResponse) GetReclaimedBytes() int64 {
+ if x != nil {
+ return x.ReclaimedBytes
+ }
+ return 0
+}
+
+type ResumeSandboxRequest struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ResumeSandboxRequest) Reset() {
+ *x = ResumeSandboxRequest{}
+ mi := &file_proto_worker_worker_proto_msgTypes[33]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ResumeSandboxRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ResumeSandboxRequest) ProtoMessage() {}
+
+func (x *ResumeSandboxRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_worker_worker_proto_msgTypes[33]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ResumeSandboxRequest.ProtoReflect.Descriptor instead.
+func (*ResumeSandboxRequest) Descriptor() ([]byte, []int) {
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{33}
+}
+
+func (x *ResumeSandboxRequest) GetSandboxId() string {
+ if x != nil {
+ return x.SandboxId
+ }
+ return ""
+}
+
+type ResumeSandboxResponse struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ResumeSandboxResponse) Reset() {
+ *x = ResumeSandboxResponse{}
+ mi := &file_proto_worker_worker_proto_msgTypes[34]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ResumeSandboxResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ResumeSandboxResponse) ProtoMessage() {}
+
+func (x *ResumeSandboxResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_proto_worker_worker_proto_msgTypes[34]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ResumeSandboxResponse.ProtoReflect.Descriptor instead.
+func (*ResumeSandboxResponse) Descriptor() ([]byte, []int) {
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{34}
+}
+
+func (x *ResumeSandboxResponse) GetSandboxId() string {
+ if x != nil {
+ return x.SandboxId
+ }
+ return ""
+}
+
type SaveAsTemplateRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
@@ -1839,7 +2024,7 @@ type SaveAsTemplateRequest struct {
func (x *SaveAsTemplateRequest) Reset() {
*x = SaveAsTemplateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[31]
+ mi := &file_proto_worker_worker_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1851,7 +2036,7 @@ func (x *SaveAsTemplateRequest) String() string {
func (*SaveAsTemplateRequest) ProtoMessage() {}
func (x *SaveAsTemplateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[31]
+ mi := &file_proto_worker_worker_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1864,7 +2049,7 @@ func (x *SaveAsTemplateRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SaveAsTemplateRequest.ProtoReflect.Descriptor instead.
func (*SaveAsTemplateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{31}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{35}
}
func (x *SaveAsTemplateRequest) GetSandboxId() string {
@@ -1891,7 +2076,7 @@ type SaveAsTemplateResponse struct {
func (x *SaveAsTemplateResponse) Reset() {
*x = SaveAsTemplateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[32]
+ mi := &file_proto_worker_worker_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1903,7 +2088,7 @@ func (x *SaveAsTemplateResponse) String() string {
func (*SaveAsTemplateResponse) ProtoMessage() {}
func (x *SaveAsTemplateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[32]
+ mi := &file_proto_worker_worker_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1916,7 +2101,7 @@ func (x *SaveAsTemplateResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SaveAsTemplateResponse.ProtoReflect.Descriptor instead.
func (*SaveAsTemplateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{32}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{36}
}
func (x *SaveAsTemplateResponse) GetRootfsS3Key() string {
@@ -1945,7 +2130,7 @@ type BuildTemplateRequest struct {
func (x *BuildTemplateRequest) Reset() {
*x = BuildTemplateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[33]
+ mi := &file_proto_worker_worker_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1957,7 +2142,7 @@ func (x *BuildTemplateRequest) String() string {
func (*BuildTemplateRequest) ProtoMessage() {}
func (x *BuildTemplateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[33]
+ mi := &file_proto_worker_worker_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1970,7 +2155,7 @@ func (x *BuildTemplateRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use BuildTemplateRequest.ProtoReflect.Descriptor instead.
func (*BuildTemplateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{33}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{37}
}
func (x *BuildTemplateRequest) GetName() string {
@@ -2011,7 +2196,7 @@ type BuildTemplateResponse struct {
func (x *BuildTemplateResponse) Reset() {
*x = BuildTemplateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[34]
+ mi := &file_proto_worker_worker_proto_msgTypes[38]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2023,7 +2208,7 @@ func (x *BuildTemplateResponse) String() string {
func (*BuildTemplateResponse) ProtoMessage() {}
func (x *BuildTemplateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[34]
+ mi := &file_proto_worker_worker_proto_msgTypes[38]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2036,7 +2221,7 @@ func (x *BuildTemplateResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use BuildTemplateResponse.ProtoReflect.Descriptor instead.
func (*BuildTemplateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{34}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{38}
}
func (x *BuildTemplateResponse) GetImageRef() string {
@@ -2068,7 +2253,7 @@ type ExecSessionCreateRequest struct {
func (x *ExecSessionCreateRequest) Reset() {
*x = ExecSessionCreateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[35]
+ mi := &file_proto_worker_worker_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2080,7 +2265,7 @@ func (x *ExecSessionCreateRequest) String() string {
func (*ExecSessionCreateRequest) ProtoMessage() {}
func (x *ExecSessionCreateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[35]
+ mi := &file_proto_worker_worker_proto_msgTypes[39]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2093,7 +2278,7 @@ func (x *ExecSessionCreateRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionCreateRequest.ProtoReflect.Descriptor instead.
func (*ExecSessionCreateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{35}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{39}
}
func (x *ExecSessionCreateRequest) GetSandboxId() string {
@@ -2154,7 +2339,7 @@ type ExecSessionCreateResponse struct {
func (x *ExecSessionCreateResponse) Reset() {
*x = ExecSessionCreateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[36]
+ mi := &file_proto_worker_worker_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2166,7 +2351,7 @@ func (x *ExecSessionCreateResponse) String() string {
func (*ExecSessionCreateResponse) ProtoMessage() {}
func (x *ExecSessionCreateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[36]
+ mi := &file_proto_worker_worker_proto_msgTypes[40]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2179,7 +2364,7 @@ func (x *ExecSessionCreateResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionCreateResponse.ProtoReflect.Descriptor instead.
func (*ExecSessionCreateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{36}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{40}
}
func (x *ExecSessionCreateResponse) GetSessionId() string {
@@ -2198,7 +2383,7 @@ type ExecSessionListRequest struct {
func (x *ExecSessionListRequest) Reset() {
*x = ExecSessionListRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[37]
+ mi := &file_proto_worker_worker_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2210,7 +2395,7 @@ func (x *ExecSessionListRequest) String() string {
func (*ExecSessionListRequest) ProtoMessage() {}
func (x *ExecSessionListRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[37]
+ mi := &file_proto_worker_worker_proto_msgTypes[41]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2223,7 +2408,7 @@ func (x *ExecSessionListRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionListRequest.ProtoReflect.Descriptor instead.
func (*ExecSessionListRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{37}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{41}
}
func (x *ExecSessionListRequest) GetSandboxId() string {
@@ -2242,7 +2427,7 @@ type ExecSessionListResponse struct {
func (x *ExecSessionListResponse) Reset() {
*x = ExecSessionListResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[38]
+ mi := &file_proto_worker_worker_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2254,7 +2439,7 @@ func (x *ExecSessionListResponse) String() string {
func (*ExecSessionListResponse) ProtoMessage() {}
func (x *ExecSessionListResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[38]
+ mi := &file_proto_worker_worker_proto_msgTypes[42]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2267,7 +2452,7 @@ func (x *ExecSessionListResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionListResponse.ProtoReflect.Descriptor instead.
func (*ExecSessionListResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{38}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{42}
}
func (x *ExecSessionListResponse) GetSessions() []*ExecSessionInfoEntry {
@@ -2292,7 +2477,7 @@ type ExecSessionInfoEntry struct {
func (x *ExecSessionInfoEntry) Reset() {
*x = ExecSessionInfoEntry{}
- mi := &file_proto_worker_worker_proto_msgTypes[39]
+ mi := &file_proto_worker_worker_proto_msgTypes[43]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2304,7 +2489,7 @@ func (x *ExecSessionInfoEntry) String() string {
func (*ExecSessionInfoEntry) ProtoMessage() {}
func (x *ExecSessionInfoEntry) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[39]
+ mi := &file_proto_worker_worker_proto_msgTypes[43]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2317,7 +2502,7 @@ func (x *ExecSessionInfoEntry) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionInfoEntry.ProtoReflect.Descriptor instead.
func (*ExecSessionInfoEntry) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{39}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{43}
}
func (x *ExecSessionInfoEntry) GetSessionId() string {
@@ -2380,7 +2565,7 @@ type ExecSessionKillRequest struct {
func (x *ExecSessionKillRequest) Reset() {
*x = ExecSessionKillRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[40]
+ mi := &file_proto_worker_worker_proto_msgTypes[44]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2392,7 +2577,7 @@ func (x *ExecSessionKillRequest) String() string {
func (*ExecSessionKillRequest) ProtoMessage() {}
func (x *ExecSessionKillRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[40]
+ mi := &file_proto_worker_worker_proto_msgTypes[44]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2405,7 +2590,7 @@ func (x *ExecSessionKillRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionKillRequest.ProtoReflect.Descriptor instead.
func (*ExecSessionKillRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{40}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{44}
}
func (x *ExecSessionKillRequest) GetSandboxId() string {
@@ -2437,7 +2622,7 @@ type ExecSessionKillResponse struct {
func (x *ExecSessionKillResponse) Reset() {
*x = ExecSessionKillResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[41]
+ mi := &file_proto_worker_worker_proto_msgTypes[45]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2449,7 +2634,7 @@ func (x *ExecSessionKillResponse) String() string {
func (*ExecSessionKillResponse) ProtoMessage() {}
func (x *ExecSessionKillResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[41]
+ mi := &file_proto_worker_worker_proto_msgTypes[45]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2462,7 +2647,7 @@ func (x *ExecSessionKillResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionKillResponse.ProtoReflect.Descriptor instead.
func (*ExecSessionKillResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{41}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{45}
}
type ExecSessionResultRequest struct {
@@ -2475,7 +2660,7 @@ type ExecSessionResultRequest struct {
func (x *ExecSessionResultRequest) Reset() {
*x = ExecSessionResultRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[42]
+ mi := &file_proto_worker_worker_proto_msgTypes[46]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2487,7 +2672,7 @@ func (x *ExecSessionResultRequest) String() string {
func (*ExecSessionResultRequest) ProtoMessage() {}
func (x *ExecSessionResultRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[42]
+ mi := &file_proto_worker_worker_proto_msgTypes[46]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2500,7 +2685,7 @@ func (x *ExecSessionResultRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionResultRequest.ProtoReflect.Descriptor instead.
func (*ExecSessionResultRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{42}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{46}
}
func (x *ExecSessionResultRequest) GetSandboxId() string {
@@ -2530,7 +2715,7 @@ type ExecSessionResultResponse struct {
func (x *ExecSessionResultResponse) Reset() {
*x = ExecSessionResultResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[43]
+ mi := &file_proto_worker_worker_proto_msgTypes[47]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2542,7 +2727,7 @@ func (x *ExecSessionResultResponse) String() string {
func (*ExecSessionResultResponse) ProtoMessage() {}
func (x *ExecSessionResultResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[43]
+ mi := &file_proto_worker_worker_proto_msgTypes[47]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2555,7 +2740,7 @@ func (x *ExecSessionResultResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExecSessionResultResponse.ProtoReflect.Descriptor instead.
func (*ExecSessionResultResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{43}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{47}
}
func (x *ExecSessionResultResponse) GetRunning() bool {
@@ -2602,7 +2787,7 @@ type GetSandboxStatsRequest struct {
func (x *GetSandboxStatsRequest) Reset() {
*x = GetSandboxStatsRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[44]
+ mi := &file_proto_worker_worker_proto_msgTypes[48]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2614,7 +2799,7 @@ func (x *GetSandboxStatsRequest) String() string {
func (*GetSandboxStatsRequest) ProtoMessage() {}
func (x *GetSandboxStatsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[44]
+ mi := &file_proto_worker_worker_proto_msgTypes[48]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2627,7 +2812,7 @@ func (x *GetSandboxStatsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetSandboxStatsRequest.ProtoReflect.Descriptor instead.
func (*GetSandboxStatsRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{44}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{48}
}
func (x *GetSandboxStatsRequest) GetSandboxId() string {
@@ -2651,7 +2836,7 @@ type GetSandboxStatsResponse struct {
func (x *GetSandboxStatsResponse) Reset() {
*x = GetSandboxStatsResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[45]
+ mi := &file_proto_worker_worker_proto_msgTypes[49]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2663,7 +2848,7 @@ func (x *GetSandboxStatsResponse) String() string {
func (*GetSandboxStatsResponse) ProtoMessage() {}
func (x *GetSandboxStatsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[45]
+ mi := &file_proto_worker_worker_proto_msgTypes[49]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2676,7 +2861,7 @@ func (x *GetSandboxStatsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetSandboxStatsResponse.ProtoReflect.Descriptor instead.
func (*GetSandboxStatsResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{45}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{49}
}
func (x *GetSandboxStatsResponse) GetCpuPercent() float64 {
@@ -2740,7 +2925,7 @@ type CreateCheckpointRequest struct {
func (x *CreateCheckpointRequest) Reset() {
*x = CreateCheckpointRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[46]
+ mi := &file_proto_worker_worker_proto_msgTypes[50]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2752,7 +2937,7 @@ func (x *CreateCheckpointRequest) String() string {
func (*CreateCheckpointRequest) ProtoMessage() {}
func (x *CreateCheckpointRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[46]
+ mi := &file_proto_worker_worker_proto_msgTypes[50]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2765,7 +2950,7 @@ func (x *CreateCheckpointRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateCheckpointRequest.ProtoReflect.Descriptor instead.
func (*CreateCheckpointRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{46}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{50}
}
func (x *CreateCheckpointRequest) GetSandboxId() string {
@@ -2819,7 +3004,7 @@ type CreateCheckpointResponse struct {
func (x *CreateCheckpointResponse) Reset() {
*x = CreateCheckpointResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[47]
+ mi := &file_proto_worker_worker_proto_msgTypes[51]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2831,7 +3016,7 @@ func (x *CreateCheckpointResponse) String() string {
func (*CreateCheckpointResponse) ProtoMessage() {}
func (x *CreateCheckpointResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[47]
+ mi := &file_proto_worker_worker_proto_msgTypes[51]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2844,7 +3029,7 @@ func (x *CreateCheckpointResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateCheckpointResponse.ProtoReflect.Descriptor instead.
func (*CreateCheckpointResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{47}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{51}
}
func (x *CreateCheckpointResponse) GetRootfsS3Key() string {
@@ -2878,7 +3063,7 @@ type RestoreCheckpointRequest struct {
func (x *RestoreCheckpointRequest) Reset() {
*x = RestoreCheckpointRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[48]
+ mi := &file_proto_worker_worker_proto_msgTypes[52]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2890,7 +3075,7 @@ func (x *RestoreCheckpointRequest) String() string {
func (*RestoreCheckpointRequest) ProtoMessage() {}
func (x *RestoreCheckpointRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[48]
+ mi := &file_proto_worker_worker_proto_msgTypes[52]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2903,7 +3088,7 @@ func (x *RestoreCheckpointRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RestoreCheckpointRequest.ProtoReflect.Descriptor instead.
func (*RestoreCheckpointRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{48}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{52}
}
func (x *RestoreCheckpointRequest) GetSandboxId() string {
@@ -2929,7 +3114,7 @@ type RestoreCheckpointResponse struct {
func (x *RestoreCheckpointResponse) Reset() {
*x = RestoreCheckpointResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[49]
+ mi := &file_proto_worker_worker_proto_msgTypes[53]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2941,7 +3126,7 @@ func (x *RestoreCheckpointResponse) String() string {
func (*RestoreCheckpointResponse) ProtoMessage() {}
func (x *RestoreCheckpointResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[49]
+ mi := &file_proto_worker_worker_proto_msgTypes[53]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2954,7 +3139,7 @@ func (x *RestoreCheckpointResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RestoreCheckpointResponse.ProtoReflect.Descriptor instead.
func (*RestoreCheckpointResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{49}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{53}
}
func (x *RestoreCheckpointResponse) GetSuccess() bool {
@@ -2977,7 +3162,7 @@ type SetSandboxLimitsRequest struct {
func (x *SetSandboxLimitsRequest) Reset() {
*x = SetSandboxLimitsRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[50]
+ mi := &file_proto_worker_worker_proto_msgTypes[54]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2989,7 +3174,7 @@ func (x *SetSandboxLimitsRequest) String() string {
func (*SetSandboxLimitsRequest) ProtoMessage() {}
func (x *SetSandboxLimitsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[50]
+ mi := &file_proto_worker_worker_proto_msgTypes[54]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3002,7 +3187,7 @@ func (x *SetSandboxLimitsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetSandboxLimitsRequest.ProtoReflect.Descriptor instead.
func (*SetSandboxLimitsRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{50}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{54}
}
func (x *SetSandboxLimitsRequest) GetSandboxId() string {
@@ -3048,7 +3233,7 @@ type SetSandboxLimitsResponse struct {
func (x *SetSandboxLimitsResponse) Reset() {
*x = SetSandboxLimitsResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[51]
+ mi := &file_proto_worker_worker_proto_msgTypes[55]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3060,7 +3245,7 @@ func (x *SetSandboxLimitsResponse) String() string {
func (*SetSandboxLimitsResponse) ProtoMessage() {}
func (x *SetSandboxLimitsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[51]
+ mi := &file_proto_worker_worker_proto_msgTypes[55]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3073,7 +3258,7 @@ func (x *SetSandboxLimitsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetSandboxLimitsResponse.ProtoReflect.Descriptor instead.
func (*SetSandboxLimitsResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{51}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{55}
}
// Live migration messages
@@ -3086,7 +3271,7 @@ type PreCopyDrivesRequest struct {
func (x *PreCopyDrivesRequest) Reset() {
*x = PreCopyDrivesRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[52]
+ mi := &file_proto_worker_worker_proto_msgTypes[56]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3098,7 +3283,7 @@ func (x *PreCopyDrivesRequest) String() string {
func (*PreCopyDrivesRequest) ProtoMessage() {}
func (x *PreCopyDrivesRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[52]
+ mi := &file_proto_worker_worker_proto_msgTypes[56]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3111,7 +3296,7 @@ func (x *PreCopyDrivesRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use PreCopyDrivesRequest.ProtoReflect.Descriptor instead.
func (*PreCopyDrivesRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{52}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{56}
}
func (x *PreCopyDrivesRequest) GetSandboxId() string {
@@ -3155,7 +3340,7 @@ type PreCopyDrivesResponse struct {
func (x *PreCopyDrivesResponse) Reset() {
*x = PreCopyDrivesResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[53]
+ mi := &file_proto_worker_worker_proto_msgTypes[57]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3167,7 +3352,7 @@ func (x *PreCopyDrivesResponse) String() string {
func (*PreCopyDrivesResponse) ProtoMessage() {}
func (x *PreCopyDrivesResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[53]
+ mi := &file_proto_worker_worker_proto_msgTypes[57]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3180,7 +3365,7 @@ func (x *PreCopyDrivesResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use PreCopyDrivesResponse.ProtoReflect.Descriptor instead.
func (*PreCopyDrivesResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{53}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{57}
}
func (x *PreCopyDrivesResponse) GetRootfsKey() string {
@@ -3263,7 +3448,7 @@ type HostList struct {
func (x *HostList) Reset() {
*x = HostList{}
- mi := &file_proto_worker_worker_proto_msgTypes[54]
+ mi := &file_proto_worker_worker_proto_msgTypes[58]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3275,7 +3460,7 @@ func (x *HostList) String() string {
func (*HostList) ProtoMessage() {}
func (x *HostList) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[54]
+ mi := &file_proto_worker_worker_proto_msgTypes[58]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3288,7 +3473,7 @@ func (x *HostList) ProtoReflect() protoreflect.Message {
// Deprecated: Use HostList.ProtoReflect.Descriptor instead.
func (*HostList) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{54}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{58}
}
func (x *HostList) GetHosts() []string {
@@ -3326,7 +3511,7 @@ type PrepareMigrationIncomingRequest struct {
func (x *PrepareMigrationIncomingRequest) Reset() {
*x = PrepareMigrationIncomingRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[55]
+ mi := &file_proto_worker_worker_proto_msgTypes[59]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3338,7 +3523,7 @@ func (x *PrepareMigrationIncomingRequest) String() string {
func (*PrepareMigrationIncomingRequest) ProtoMessage() {}
func (x *PrepareMigrationIncomingRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[55]
+ mi := &file_proto_worker_worker_proto_msgTypes[59]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3351,7 +3536,7 @@ func (x *PrepareMigrationIncomingRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use PrepareMigrationIncomingRequest.ProtoReflect.Descriptor instead.
func (*PrepareMigrationIncomingRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{55}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{59}
}
func (x *PrepareMigrationIncomingRequest) GetSandboxId() string {
@@ -3476,7 +3661,7 @@ type PrepareMigrationIncomingResponse struct {
func (x *PrepareMigrationIncomingResponse) Reset() {
*x = PrepareMigrationIncomingResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[56]
+ mi := &file_proto_worker_worker_proto_msgTypes[60]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3488,7 +3673,7 @@ func (x *PrepareMigrationIncomingResponse) String() string {
func (*PrepareMigrationIncomingResponse) ProtoMessage() {}
func (x *PrepareMigrationIncomingResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[56]
+ mi := &file_proto_worker_worker_proto_msgTypes[60]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3501,7 +3686,7 @@ func (x *PrepareMigrationIncomingResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use PrepareMigrationIncomingResponse.ProtoReflect.Descriptor instead.
func (*PrepareMigrationIncomingResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{56}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{60}
}
func (x *PrepareMigrationIncomingResponse) GetIncomingAddr() string {
@@ -3529,7 +3714,7 @@ type UpdateSandboxSecretRequest struct {
func (x *UpdateSandboxSecretRequest) Reset() {
*x = UpdateSandboxSecretRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[57]
+ mi := &file_proto_worker_worker_proto_msgTypes[61]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3541,7 +3726,7 @@ func (x *UpdateSandboxSecretRequest) String() string {
func (*UpdateSandboxSecretRequest) ProtoMessage() {}
func (x *UpdateSandboxSecretRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[57]
+ mi := &file_proto_worker_worker_proto_msgTypes[61]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3554,7 +3739,7 @@ func (x *UpdateSandboxSecretRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateSandboxSecretRequest.ProtoReflect.Descriptor instead.
func (*UpdateSandboxSecretRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{57}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{61}
}
func (x *UpdateSandboxSecretRequest) GetSandboxId() string {
@@ -3590,7 +3775,7 @@ type UpdateSandboxSecretResponse struct {
func (x *UpdateSandboxSecretResponse) Reset() {
*x = UpdateSandboxSecretResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[58]
+ mi := &file_proto_worker_worker_proto_msgTypes[62]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3602,7 +3787,7 @@ func (x *UpdateSandboxSecretResponse) String() string {
func (*UpdateSandboxSecretResponse) ProtoMessage() {}
func (x *UpdateSandboxSecretResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[58]
+ mi := &file_proto_worker_worker_proto_msgTypes[62]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3615,7 +3800,7 @@ func (x *UpdateSandboxSecretResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateSandboxSecretResponse.ProtoReflect.Descriptor instead.
func (*UpdateSandboxSecretResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{58}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{62}
}
func (x *UpdateSandboxSecretResponse) GetUpdated() bool {
@@ -3635,7 +3820,7 @@ type LiveMigrateRequest struct {
func (x *LiveMigrateRequest) Reset() {
*x = LiveMigrateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[59]
+ mi := &file_proto_worker_worker_proto_msgTypes[63]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3647,7 +3832,7 @@ func (x *LiveMigrateRequest) String() string {
func (*LiveMigrateRequest) ProtoMessage() {}
func (x *LiveMigrateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[59]
+ mi := &file_proto_worker_worker_proto_msgTypes[63]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3660,7 +3845,7 @@ func (x *LiveMigrateRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use LiveMigrateRequest.ProtoReflect.Descriptor instead.
func (*LiveMigrateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{59}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{63}
}
func (x *LiveMigrateRequest) GetSandboxId() string {
@@ -3685,7 +3870,7 @@ type LiveMigrateResponse struct {
func (x *LiveMigrateResponse) Reset() {
*x = LiveMigrateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[60]
+ mi := &file_proto_worker_worker_proto_msgTypes[64]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3697,7 +3882,7 @@ func (x *LiveMigrateResponse) String() string {
func (*LiveMigrateResponse) ProtoMessage() {}
func (x *LiveMigrateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[60]
+ mi := &file_proto_worker_worker_proto_msgTypes[64]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3710,7 +3895,7 @@ func (x *LiveMigrateResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use LiveMigrateResponse.ProtoReflect.Descriptor instead.
func (*LiveMigrateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{60}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{64}
}
type CompleteMigrationIncomingRequest struct {
@@ -3722,7 +3907,7 @@ type CompleteMigrationIncomingRequest struct {
func (x *CompleteMigrationIncomingRequest) Reset() {
*x = CompleteMigrationIncomingRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[61]
+ mi := &file_proto_worker_worker_proto_msgTypes[65]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3734,7 +3919,7 @@ func (x *CompleteMigrationIncomingRequest) String() string {
func (*CompleteMigrationIncomingRequest) ProtoMessage() {}
func (x *CompleteMigrationIncomingRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[61]
+ mi := &file_proto_worker_worker_proto_msgTypes[65]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3747,7 +3932,7 @@ func (x *CompleteMigrationIncomingRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CompleteMigrationIncomingRequest.ProtoReflect.Descriptor instead.
func (*CompleteMigrationIncomingRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{61}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{65}
}
func (x *CompleteMigrationIncomingRequest) GetSandboxId() string {
@@ -3765,7 +3950,7 @@ type CompleteMigrationIncomingResponse struct {
func (x *CompleteMigrationIncomingResponse) Reset() {
*x = CompleteMigrationIncomingResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[62]
+ mi := &file_proto_worker_worker_proto_msgTypes[66]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3777,7 +3962,7 @@ func (x *CompleteMigrationIncomingResponse) String() string {
func (*CompleteMigrationIncomingResponse) ProtoMessage() {}
func (x *CompleteMigrationIncomingResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[62]
+ mi := &file_proto_worker_worker_proto_msgTypes[66]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3790,7 +3975,7 @@ func (x *CompleteMigrationIncomingResponse) ProtoReflect() protoreflect.Message
// Deprecated: Use CompleteMigrationIncomingResponse.ProtoReflect.Descriptor instead.
func (*CompleteMigrationIncomingResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{62}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{66}
}
// Golden snapshot management
@@ -3802,7 +3987,7 @@ type RebuildGoldenSnapshotRequest struct {
func (x *RebuildGoldenSnapshotRequest) Reset() {
*x = RebuildGoldenSnapshotRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[63]
+ mi := &file_proto_worker_worker_proto_msgTypes[67]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3814,7 +3999,7 @@ func (x *RebuildGoldenSnapshotRequest) String() string {
func (*RebuildGoldenSnapshotRequest) ProtoMessage() {}
func (x *RebuildGoldenSnapshotRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[63]
+ mi := &file_proto_worker_worker_proto_msgTypes[67]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3827,7 +4012,7 @@ func (x *RebuildGoldenSnapshotRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use RebuildGoldenSnapshotRequest.ProtoReflect.Descriptor instead.
func (*RebuildGoldenSnapshotRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{63}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{67}
}
type RebuildGoldenSnapshotResponse struct {
@@ -3840,7 +4025,7 @@ type RebuildGoldenSnapshotResponse struct {
func (x *RebuildGoldenSnapshotResponse) Reset() {
*x = RebuildGoldenSnapshotResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[64]
+ mi := &file_proto_worker_worker_proto_msgTypes[68]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -3852,7 +4037,7 @@ func (x *RebuildGoldenSnapshotResponse) String() string {
func (*RebuildGoldenSnapshotResponse) ProtoMessage() {}
func (x *RebuildGoldenSnapshotResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[64]
+ mi := &file_proto_worker_worker_proto_msgTypes[68]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -3865,7 +4050,7 @@ func (x *RebuildGoldenSnapshotResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use RebuildGoldenSnapshotResponse.ProtoReflect.Descriptor instead.
func (*RebuildGoldenSnapshotResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{64}
+ return file_proto_worker_worker_proto_rawDescGZIP(), []int{68}
}
func (x *RebuildGoldenSnapshotResponse) GetOldVersion() string {
@@ -4033,7 +4218,20 @@ const file_proto_worker_worker_proto_rawDesc = "" +
"\x13WakeSandboxResponse\x12\x1d\n" +
"\n" +
"sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x16\n" +
- "\x06status\x18\x02 \x01(\tR\x06status\"W\n" +
+ "\x06status\x18\x02 \x01(\tR\x06status\"4\n" +
+ "\x13PauseSandboxRequest\x12\x1d\n" +
+ "\n" +
+ "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"^\n" +
+ "\x14PauseSandboxResponse\x12\x1d\n" +
+ "\n" +
+ "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12'\n" +
+ "\x0freclaimed_bytes\x18\x02 \x01(\x03R\x0ereclaimedBytes\"5\n" +
+ "\x14ResumeSandboxRequest\x12\x1d\n" +
+ "\n" +
+ "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"6\n" +
+ "\x15ResumeSandboxResponse\x12\x1d\n" +
+ "\n" +
+ "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"W\n" +
"\x15SaveAsTemplateRequest\x12\x1d\n" +
"\n" +
"sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x1f\n" +
@@ -4223,7 +4421,7 @@ const file_proto_worker_worker_proto_rawDesc = "" +
"\vold_version\x18\x01 \x01(\tR\n" +
"oldVersion\x12\x1f\n" +
"\vnew_version\x18\x02 \x01(\tR\n" +
- "newVersion2\xe5\x13\n" +
+ "newVersion2\xfe\x14\n" +
"\rSandboxWorker\x12L\n" +
"\rCreateSandbox\x12\x1c.worker.CreateSandboxRequest\x1a\x1d.worker.CreateSandboxResponse\x12O\n" +
"\x0eDestroySandbox\x12\x1d.worker.DestroySandboxRequest\x1a\x1e.worker.DestroySandboxResponse\x12C\n" +
@@ -4242,7 +4440,9 @@ const file_proto_worker_worker_proto_rawDesc = "" +
"\x0fExecSessionKill\x12\x1e.worker.ExecSessionKillRequest\x1a\x1f.worker.ExecSessionKillResponse\x12X\n" +
"\x11ExecSessionResult\x12 .worker.ExecSessionResultRequest\x1a!.worker.ExecSessionResultResponse\x12U\n" +
"\x10HibernateSandbox\x12\x1f.worker.HibernateSandboxRequest\x1a .worker.HibernateSandboxResponse\x12F\n" +
- "\vWakeSandbox\x12\x1a.worker.WakeSandboxRequest\x1a\x1b.worker.WakeSandboxResponse\x12L\n" +
+ "\vWakeSandbox\x12\x1a.worker.WakeSandboxRequest\x1a\x1b.worker.WakeSandboxResponse\x12I\n" +
+ "\fPauseSandbox\x12\x1b.worker.PauseSandboxRequest\x1a\x1c.worker.PauseSandboxResponse\x12L\n" +
+ "\rResumeSandbox\x12\x1c.worker.ResumeSandboxRequest\x1a\x1d.worker.ResumeSandboxResponse\x12L\n" +
"\rRebootSandbox\x12\x1c.worker.RebootSandboxRequest\x1a\x1d.worker.RebootSandboxResponse\x12X\n" +
"\x11PowerCycleSandbox\x12 .worker.PowerCycleSandboxRequest\x1a!.worker.PowerCycleSandboxResponse\x12O\n" +
"\x0eSaveAsTemplate\x12\x1d.worker.SaveAsTemplateRequest\x1a\x1e.worker.SaveAsTemplateResponse\x12U\n" +
@@ -4271,7 +4471,7 @@ func file_proto_worker_worker_proto_rawDescGZIP() []byte {
}
var file_proto_worker_worker_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_proto_worker_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 76)
+var file_proto_worker_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 80)
var file_proto_worker_worker_proto_goTypes = []any{
(ExecOutputChunk_Stream)(0), // 0: worker.ExecOutputChunk.Stream
(*CreateSandboxRequest)(nil), // 1: worker.CreateSandboxRequest
@@ -4305,71 +4505,75 @@ var file_proto_worker_worker_proto_goTypes = []any{
(*HibernateSandboxResponse)(nil), // 29: worker.HibernateSandboxResponse
(*WakeSandboxRequest)(nil), // 30: worker.WakeSandboxRequest
(*WakeSandboxResponse)(nil), // 31: worker.WakeSandboxResponse
- (*SaveAsTemplateRequest)(nil), // 32: worker.SaveAsTemplateRequest
- (*SaveAsTemplateResponse)(nil), // 33: worker.SaveAsTemplateResponse
- (*BuildTemplateRequest)(nil), // 34: worker.BuildTemplateRequest
- (*BuildTemplateResponse)(nil), // 35: worker.BuildTemplateResponse
- (*ExecSessionCreateRequest)(nil), // 36: worker.ExecSessionCreateRequest
- (*ExecSessionCreateResponse)(nil), // 37: worker.ExecSessionCreateResponse
- (*ExecSessionListRequest)(nil), // 38: worker.ExecSessionListRequest
- (*ExecSessionListResponse)(nil), // 39: worker.ExecSessionListResponse
- (*ExecSessionInfoEntry)(nil), // 40: worker.ExecSessionInfoEntry
- (*ExecSessionKillRequest)(nil), // 41: worker.ExecSessionKillRequest
- (*ExecSessionKillResponse)(nil), // 42: worker.ExecSessionKillResponse
- (*ExecSessionResultRequest)(nil), // 43: worker.ExecSessionResultRequest
- (*ExecSessionResultResponse)(nil), // 44: worker.ExecSessionResultResponse
- (*GetSandboxStatsRequest)(nil), // 45: worker.GetSandboxStatsRequest
- (*GetSandboxStatsResponse)(nil), // 46: worker.GetSandboxStatsResponse
- (*CreateCheckpointRequest)(nil), // 47: worker.CreateCheckpointRequest
- (*CreateCheckpointResponse)(nil), // 48: worker.CreateCheckpointResponse
- (*RestoreCheckpointRequest)(nil), // 49: worker.RestoreCheckpointRequest
- (*RestoreCheckpointResponse)(nil), // 50: worker.RestoreCheckpointResponse
- (*SetSandboxLimitsRequest)(nil), // 51: worker.SetSandboxLimitsRequest
- (*SetSandboxLimitsResponse)(nil), // 52: worker.SetSandboxLimitsResponse
- (*PreCopyDrivesRequest)(nil), // 53: worker.PreCopyDrivesRequest
- (*PreCopyDrivesResponse)(nil), // 54: worker.PreCopyDrivesResponse
- (*HostList)(nil), // 55: worker.HostList
- (*PrepareMigrationIncomingRequest)(nil), // 56: worker.PrepareMigrationIncomingRequest
- (*PrepareMigrationIncomingResponse)(nil), // 57: worker.PrepareMigrationIncomingResponse
- (*UpdateSandboxSecretRequest)(nil), // 58: worker.UpdateSandboxSecretRequest
- (*UpdateSandboxSecretResponse)(nil), // 59: worker.UpdateSandboxSecretResponse
- (*LiveMigrateRequest)(nil), // 60: worker.LiveMigrateRequest
- (*LiveMigrateResponse)(nil), // 61: worker.LiveMigrateResponse
- (*CompleteMigrationIncomingRequest)(nil), // 62: worker.CompleteMigrationIncomingRequest
- (*CompleteMigrationIncomingResponse)(nil), // 63: worker.CompleteMigrationIncomingResponse
- (*RebuildGoldenSnapshotRequest)(nil), // 64: worker.RebuildGoldenSnapshotRequest
- (*RebuildGoldenSnapshotResponse)(nil), // 65: worker.RebuildGoldenSnapshotResponse
- nil, // 66: worker.CreateSandboxRequest.EnvsEntry
- nil, // 67: worker.CreateSandboxRequest.SecretAllowedHostsEntry
- nil, // 68: worker.CreateSandboxRequest.SecretEnvsEntry
- nil, // 69: worker.ExecCommandRequest.EnvsEntry
- nil, // 70: worker.ExecSessionCreateRequest.EnvsEntry
- nil, // 71: worker.PreCopyDrivesResponse.SealedTokensEntry
- nil, // 72: worker.PreCopyDrivesResponse.TokenHostsEntry
- nil, // 73: worker.PreCopyDrivesResponse.SealedNamesEntry
- nil, // 74: worker.PrepareMigrationIncomingRequest.SealedTokensEntry
- nil, // 75: worker.PrepareMigrationIncomingRequest.TokenHostsEntry
- nil, // 76: worker.PrepareMigrationIncomingRequest.SealedNamesEntry
+ (*PauseSandboxRequest)(nil), // 32: worker.PauseSandboxRequest
+ (*PauseSandboxResponse)(nil), // 33: worker.PauseSandboxResponse
+ (*ResumeSandboxRequest)(nil), // 34: worker.ResumeSandboxRequest
+ (*ResumeSandboxResponse)(nil), // 35: worker.ResumeSandboxResponse
+ (*SaveAsTemplateRequest)(nil), // 36: worker.SaveAsTemplateRequest
+ (*SaveAsTemplateResponse)(nil), // 37: worker.SaveAsTemplateResponse
+ (*BuildTemplateRequest)(nil), // 38: worker.BuildTemplateRequest
+ (*BuildTemplateResponse)(nil), // 39: worker.BuildTemplateResponse
+ (*ExecSessionCreateRequest)(nil), // 40: worker.ExecSessionCreateRequest
+ (*ExecSessionCreateResponse)(nil), // 41: worker.ExecSessionCreateResponse
+ (*ExecSessionListRequest)(nil), // 42: worker.ExecSessionListRequest
+ (*ExecSessionListResponse)(nil), // 43: worker.ExecSessionListResponse
+ (*ExecSessionInfoEntry)(nil), // 44: worker.ExecSessionInfoEntry
+ (*ExecSessionKillRequest)(nil), // 45: worker.ExecSessionKillRequest
+ (*ExecSessionKillResponse)(nil), // 46: worker.ExecSessionKillResponse
+ (*ExecSessionResultRequest)(nil), // 47: worker.ExecSessionResultRequest
+ (*ExecSessionResultResponse)(nil), // 48: worker.ExecSessionResultResponse
+ (*GetSandboxStatsRequest)(nil), // 49: worker.GetSandboxStatsRequest
+ (*GetSandboxStatsResponse)(nil), // 50: worker.GetSandboxStatsResponse
+ (*CreateCheckpointRequest)(nil), // 51: worker.CreateCheckpointRequest
+ (*CreateCheckpointResponse)(nil), // 52: worker.CreateCheckpointResponse
+ (*RestoreCheckpointRequest)(nil), // 53: worker.RestoreCheckpointRequest
+ (*RestoreCheckpointResponse)(nil), // 54: worker.RestoreCheckpointResponse
+ (*SetSandboxLimitsRequest)(nil), // 55: worker.SetSandboxLimitsRequest
+ (*SetSandboxLimitsResponse)(nil), // 56: worker.SetSandboxLimitsResponse
+ (*PreCopyDrivesRequest)(nil), // 57: worker.PreCopyDrivesRequest
+ (*PreCopyDrivesResponse)(nil), // 58: worker.PreCopyDrivesResponse
+ (*HostList)(nil), // 59: worker.HostList
+ (*PrepareMigrationIncomingRequest)(nil), // 60: worker.PrepareMigrationIncomingRequest
+ (*PrepareMigrationIncomingResponse)(nil), // 61: worker.PrepareMigrationIncomingResponse
+ (*UpdateSandboxSecretRequest)(nil), // 62: worker.UpdateSandboxSecretRequest
+ (*UpdateSandboxSecretResponse)(nil), // 63: worker.UpdateSandboxSecretResponse
+ (*LiveMigrateRequest)(nil), // 64: worker.LiveMigrateRequest
+ (*LiveMigrateResponse)(nil), // 65: worker.LiveMigrateResponse
+ (*CompleteMigrationIncomingRequest)(nil), // 66: worker.CompleteMigrationIncomingRequest
+ (*CompleteMigrationIncomingResponse)(nil), // 67: worker.CompleteMigrationIncomingResponse
+ (*RebuildGoldenSnapshotRequest)(nil), // 68: worker.RebuildGoldenSnapshotRequest
+ (*RebuildGoldenSnapshotResponse)(nil), // 69: worker.RebuildGoldenSnapshotResponse
+ nil, // 70: worker.CreateSandboxRequest.EnvsEntry
+ nil, // 71: worker.CreateSandboxRequest.SecretAllowedHostsEntry
+ nil, // 72: worker.CreateSandboxRequest.SecretEnvsEntry
+ nil, // 73: worker.ExecCommandRequest.EnvsEntry
+ nil, // 74: worker.ExecSessionCreateRequest.EnvsEntry
+ nil, // 75: worker.PreCopyDrivesResponse.SealedTokensEntry
+ nil, // 76: worker.PreCopyDrivesResponse.TokenHostsEntry
+ nil, // 77: worker.PreCopyDrivesResponse.SealedNamesEntry
+ nil, // 78: worker.PrepareMigrationIncomingRequest.SealedTokensEntry
+ nil, // 79: worker.PrepareMigrationIncomingRequest.TokenHostsEntry
+ nil, // 80: worker.PrepareMigrationIncomingRequest.SealedNamesEntry
}
var file_proto_worker_worker_proto_depIdxs = []int32{
- 66, // 0: worker.CreateSandboxRequest.envs:type_name -> worker.CreateSandboxRequest.EnvsEntry
- 67, // 1: worker.CreateSandboxRequest.secret_allowed_hosts:type_name -> worker.CreateSandboxRequest.SecretAllowedHostsEntry
- 68, // 2: worker.CreateSandboxRequest.secret_envs:type_name -> worker.CreateSandboxRequest.SecretEnvsEntry
+ 70, // 0: worker.CreateSandboxRequest.envs:type_name -> worker.CreateSandboxRequest.EnvsEntry
+ 71, // 1: worker.CreateSandboxRequest.secret_allowed_hosts:type_name -> worker.CreateSandboxRequest.SecretAllowedHostsEntry
+ 72, // 2: worker.CreateSandboxRequest.secret_envs:type_name -> worker.CreateSandboxRequest.SecretEnvsEntry
10, // 3: worker.ListSandboxesResponse.sandboxes:type_name -> worker.GetSandboxResponse
- 69, // 4: worker.ExecCommandRequest.envs:type_name -> worker.ExecCommandRequest.EnvsEntry
+ 73, // 4: worker.ExecCommandRequest.envs:type_name -> worker.ExecCommandRequest.EnvsEntry
0, // 5: worker.ExecOutputChunk.stream:type_name -> worker.ExecOutputChunk.Stream
21, // 6: worker.ListDirResponse.entries:type_name -> worker.DirEntry
26, // 7: worker.PTYInput.resize:type_name -> worker.PTYResize
- 70, // 8: worker.ExecSessionCreateRequest.envs:type_name -> worker.ExecSessionCreateRequest.EnvsEntry
- 40, // 9: worker.ExecSessionListResponse.sessions:type_name -> worker.ExecSessionInfoEntry
- 71, // 10: worker.PreCopyDrivesResponse.sealed_tokens:type_name -> worker.PreCopyDrivesResponse.SealedTokensEntry
- 72, // 11: worker.PreCopyDrivesResponse.token_hosts:type_name -> worker.PreCopyDrivesResponse.TokenHostsEntry
- 73, // 12: worker.PreCopyDrivesResponse.sealed_names:type_name -> worker.PreCopyDrivesResponse.SealedNamesEntry
- 74, // 13: worker.PrepareMigrationIncomingRequest.sealed_tokens:type_name -> worker.PrepareMigrationIncomingRequest.SealedTokensEntry
- 75, // 14: worker.PrepareMigrationIncomingRequest.token_hosts:type_name -> worker.PrepareMigrationIncomingRequest.TokenHostsEntry
- 76, // 15: worker.PrepareMigrationIncomingRequest.sealed_names:type_name -> worker.PrepareMigrationIncomingRequest.SealedNamesEntry
- 55, // 16: worker.PreCopyDrivesResponse.TokenHostsEntry.value:type_name -> worker.HostList
- 55, // 17: worker.PrepareMigrationIncomingRequest.TokenHostsEntry.value:type_name -> worker.HostList
+ 74, // 8: worker.ExecSessionCreateRequest.envs:type_name -> worker.ExecSessionCreateRequest.EnvsEntry
+ 44, // 9: worker.ExecSessionListResponse.sessions:type_name -> worker.ExecSessionInfoEntry
+ 75, // 10: worker.PreCopyDrivesResponse.sealed_tokens:type_name -> worker.PreCopyDrivesResponse.SealedTokensEntry
+ 76, // 11: worker.PreCopyDrivesResponse.token_hosts:type_name -> worker.PreCopyDrivesResponse.TokenHostsEntry
+ 77, // 12: worker.PreCopyDrivesResponse.sealed_names:type_name -> worker.PreCopyDrivesResponse.SealedNamesEntry
+ 78, // 13: worker.PrepareMigrationIncomingRequest.sealed_tokens:type_name -> worker.PrepareMigrationIncomingRequest.SealedTokensEntry
+ 79, // 14: worker.PrepareMigrationIncomingRequest.token_hosts:type_name -> worker.PrepareMigrationIncomingRequest.TokenHostsEntry
+ 80, // 15: worker.PrepareMigrationIncomingRequest.sealed_names:type_name -> worker.PrepareMigrationIncomingRequest.SealedNamesEntry
+ 59, // 16: worker.PreCopyDrivesResponse.TokenHostsEntry.value:type_name -> worker.HostList
+ 59, // 17: worker.PrepareMigrationIncomingRequest.TokenHostsEntry.value:type_name -> worker.HostList
1, // 18: worker.SandboxWorker.CreateSandbox:input_type -> worker.CreateSandboxRequest
3, // 19: worker.SandboxWorker.DestroySandbox:input_type -> worker.DestroySandboxRequest
9, // 20: worker.SandboxWorker.GetSandbox:input_type -> worker.GetSandboxRequest
@@ -4381,59 +4585,63 @@ var file_proto_worker_worker_proto_depIdxs = []int32{
20, // 26: worker.SandboxWorker.ListDir:input_type -> worker.ListDirRequest
23, // 27: worker.SandboxWorker.CreatePTY:input_type -> worker.CreatePTYRequest
25, // 28: worker.SandboxWorker.PTYStream:input_type -> worker.PTYInput
- 36, // 29: worker.SandboxWorker.ExecSessionCreate:input_type -> worker.ExecSessionCreateRequest
- 38, // 30: worker.SandboxWorker.ExecSessionList:input_type -> worker.ExecSessionListRequest
- 41, // 31: worker.SandboxWorker.ExecSessionKill:input_type -> worker.ExecSessionKillRequest
- 43, // 32: worker.SandboxWorker.ExecSessionResult:input_type -> worker.ExecSessionResultRequest
+ 40, // 29: worker.SandboxWorker.ExecSessionCreate:input_type -> worker.ExecSessionCreateRequest
+ 42, // 30: worker.SandboxWorker.ExecSessionList:input_type -> worker.ExecSessionListRequest
+ 45, // 31: worker.SandboxWorker.ExecSessionKill:input_type -> worker.ExecSessionKillRequest
+ 47, // 32: worker.SandboxWorker.ExecSessionResult:input_type -> worker.ExecSessionResultRequest
28, // 33: worker.SandboxWorker.HibernateSandbox:input_type -> worker.HibernateSandboxRequest
30, // 34: worker.SandboxWorker.WakeSandbox:input_type -> worker.WakeSandboxRequest
- 5, // 35: worker.SandboxWorker.RebootSandbox:input_type -> worker.RebootSandboxRequest
- 7, // 36: worker.SandboxWorker.PowerCycleSandbox:input_type -> worker.PowerCycleSandboxRequest
- 32, // 37: worker.SandboxWorker.SaveAsTemplate:input_type -> worker.SaveAsTemplateRequest
- 47, // 38: worker.SandboxWorker.CreateCheckpoint:input_type -> worker.CreateCheckpointRequest
- 49, // 39: worker.SandboxWorker.RestoreCheckpoint:input_type -> worker.RestoreCheckpointRequest
- 34, // 40: worker.SandboxWorker.BuildTemplate:input_type -> worker.BuildTemplateRequest
- 45, // 41: worker.SandboxWorker.GetSandboxStats:input_type -> worker.GetSandboxStatsRequest
- 51, // 42: worker.SandboxWorker.SetSandboxLimits:input_type -> worker.SetSandboxLimitsRequest
- 58, // 43: worker.SandboxWorker.UpdateSandboxSecret:input_type -> worker.UpdateSandboxSecretRequest
- 53, // 44: worker.SandboxWorker.PreCopyDrives:input_type -> worker.PreCopyDrivesRequest
- 56, // 45: worker.SandboxWorker.PrepareMigrationIncoming:input_type -> worker.PrepareMigrationIncomingRequest
- 60, // 46: worker.SandboxWorker.LiveMigrate:input_type -> worker.LiveMigrateRequest
- 62, // 47: worker.SandboxWorker.CompleteMigrationIncoming:input_type -> worker.CompleteMigrationIncomingRequest
- 64, // 48: worker.SandboxWorker.RebuildGoldenSnapshot:input_type -> worker.RebuildGoldenSnapshotRequest
- 2, // 49: worker.SandboxWorker.CreateSandbox:output_type -> worker.CreateSandboxResponse
- 4, // 50: worker.SandboxWorker.DestroySandbox:output_type -> worker.DestroySandboxResponse
- 10, // 51: worker.SandboxWorker.GetSandbox:output_type -> worker.GetSandboxResponse
- 12, // 52: worker.SandboxWorker.ListSandboxes:output_type -> worker.ListSandboxesResponse
- 14, // 53: worker.SandboxWorker.ExecCommand:output_type -> worker.ExecCommandResponse
- 15, // 54: worker.SandboxWorker.ExecCommandStream:output_type -> worker.ExecOutputChunk
- 17, // 55: worker.SandboxWorker.ReadFile:output_type -> worker.ReadFileResponse
- 19, // 56: worker.SandboxWorker.WriteFile:output_type -> worker.WriteFileResponse
- 22, // 57: worker.SandboxWorker.ListDir:output_type -> worker.ListDirResponse
- 24, // 58: worker.SandboxWorker.CreatePTY:output_type -> worker.CreatePTYResponse
- 27, // 59: worker.SandboxWorker.PTYStream:output_type -> worker.PTYOutput
- 37, // 60: worker.SandboxWorker.ExecSessionCreate:output_type -> worker.ExecSessionCreateResponse
- 39, // 61: worker.SandboxWorker.ExecSessionList:output_type -> worker.ExecSessionListResponse
- 42, // 62: worker.SandboxWorker.ExecSessionKill:output_type -> worker.ExecSessionKillResponse
- 44, // 63: worker.SandboxWorker.ExecSessionResult:output_type -> worker.ExecSessionResultResponse
- 29, // 64: worker.SandboxWorker.HibernateSandbox:output_type -> worker.HibernateSandboxResponse
- 31, // 65: worker.SandboxWorker.WakeSandbox:output_type -> worker.WakeSandboxResponse
- 6, // 66: worker.SandboxWorker.RebootSandbox:output_type -> worker.RebootSandboxResponse
- 8, // 67: worker.SandboxWorker.PowerCycleSandbox:output_type -> worker.PowerCycleSandboxResponse
- 33, // 68: worker.SandboxWorker.SaveAsTemplate:output_type -> worker.SaveAsTemplateResponse
- 48, // 69: worker.SandboxWorker.CreateCheckpoint:output_type -> worker.CreateCheckpointResponse
- 50, // 70: worker.SandboxWorker.RestoreCheckpoint:output_type -> worker.RestoreCheckpointResponse
- 35, // 71: worker.SandboxWorker.BuildTemplate:output_type -> worker.BuildTemplateResponse
- 46, // 72: worker.SandboxWorker.GetSandboxStats:output_type -> worker.GetSandboxStatsResponse
- 52, // 73: worker.SandboxWorker.SetSandboxLimits:output_type -> worker.SetSandboxLimitsResponse
- 59, // 74: worker.SandboxWorker.UpdateSandboxSecret:output_type -> worker.UpdateSandboxSecretResponse
- 54, // 75: worker.SandboxWorker.PreCopyDrives:output_type -> worker.PreCopyDrivesResponse
- 57, // 76: worker.SandboxWorker.PrepareMigrationIncoming:output_type -> worker.PrepareMigrationIncomingResponse
- 61, // 77: worker.SandboxWorker.LiveMigrate:output_type -> worker.LiveMigrateResponse
- 63, // 78: worker.SandboxWorker.CompleteMigrationIncoming:output_type -> worker.CompleteMigrationIncomingResponse
- 65, // 79: worker.SandboxWorker.RebuildGoldenSnapshot:output_type -> worker.RebuildGoldenSnapshotResponse
- 49, // [49:80] is the sub-list for method output_type
- 18, // [18:49] is the sub-list for method input_type
+ 32, // 35: worker.SandboxWorker.PauseSandbox:input_type -> worker.PauseSandboxRequest
+ 34, // 36: worker.SandboxWorker.ResumeSandbox:input_type -> worker.ResumeSandboxRequest
+ 5, // 37: worker.SandboxWorker.RebootSandbox:input_type -> worker.RebootSandboxRequest
+ 7, // 38: worker.SandboxWorker.PowerCycleSandbox:input_type -> worker.PowerCycleSandboxRequest
+ 36, // 39: worker.SandboxWorker.SaveAsTemplate:input_type -> worker.SaveAsTemplateRequest
+ 51, // 40: worker.SandboxWorker.CreateCheckpoint:input_type -> worker.CreateCheckpointRequest
+ 53, // 41: worker.SandboxWorker.RestoreCheckpoint:input_type -> worker.RestoreCheckpointRequest
+ 38, // 42: worker.SandboxWorker.BuildTemplate:input_type -> worker.BuildTemplateRequest
+ 49, // 43: worker.SandboxWorker.GetSandboxStats:input_type -> worker.GetSandboxStatsRequest
+ 55, // 44: worker.SandboxWorker.SetSandboxLimits:input_type -> worker.SetSandboxLimitsRequest
+ 62, // 45: worker.SandboxWorker.UpdateSandboxSecret:input_type -> worker.UpdateSandboxSecretRequest
+ 57, // 46: worker.SandboxWorker.PreCopyDrives:input_type -> worker.PreCopyDrivesRequest
+ 60, // 47: worker.SandboxWorker.PrepareMigrationIncoming:input_type -> worker.PrepareMigrationIncomingRequest
+ 64, // 48: worker.SandboxWorker.LiveMigrate:input_type -> worker.LiveMigrateRequest
+ 66, // 49: worker.SandboxWorker.CompleteMigrationIncoming:input_type -> worker.CompleteMigrationIncomingRequest
+ 68, // 50: worker.SandboxWorker.RebuildGoldenSnapshot:input_type -> worker.RebuildGoldenSnapshotRequest
+ 2, // 51: worker.SandboxWorker.CreateSandbox:output_type -> worker.CreateSandboxResponse
+ 4, // 52: worker.SandboxWorker.DestroySandbox:output_type -> worker.DestroySandboxResponse
+ 10, // 53: worker.SandboxWorker.GetSandbox:output_type -> worker.GetSandboxResponse
+ 12, // 54: worker.SandboxWorker.ListSandboxes:output_type -> worker.ListSandboxesResponse
+ 14, // 55: worker.SandboxWorker.ExecCommand:output_type -> worker.ExecCommandResponse
+ 15, // 56: worker.SandboxWorker.ExecCommandStream:output_type -> worker.ExecOutputChunk
+ 17, // 57: worker.SandboxWorker.ReadFile:output_type -> worker.ReadFileResponse
+ 19, // 58: worker.SandboxWorker.WriteFile:output_type -> worker.WriteFileResponse
+ 22, // 59: worker.SandboxWorker.ListDir:output_type -> worker.ListDirResponse
+ 24, // 60: worker.SandboxWorker.CreatePTY:output_type -> worker.CreatePTYResponse
+ 27, // 61: worker.SandboxWorker.PTYStream:output_type -> worker.PTYOutput
+ 41, // 62: worker.SandboxWorker.ExecSessionCreate:output_type -> worker.ExecSessionCreateResponse
+ 43, // 63: worker.SandboxWorker.ExecSessionList:output_type -> worker.ExecSessionListResponse
+ 46, // 64: worker.SandboxWorker.ExecSessionKill:output_type -> worker.ExecSessionKillResponse
+ 48, // 65: worker.SandboxWorker.ExecSessionResult:output_type -> worker.ExecSessionResultResponse
+ 29, // 66: worker.SandboxWorker.HibernateSandbox:output_type -> worker.HibernateSandboxResponse
+ 31, // 67: worker.SandboxWorker.WakeSandbox:output_type -> worker.WakeSandboxResponse
+ 33, // 68: worker.SandboxWorker.PauseSandbox:output_type -> worker.PauseSandboxResponse
+ 35, // 69: worker.SandboxWorker.ResumeSandbox:output_type -> worker.ResumeSandboxResponse
+ 6, // 70: worker.SandboxWorker.RebootSandbox:output_type -> worker.RebootSandboxResponse
+ 8, // 71: worker.SandboxWorker.PowerCycleSandbox:output_type -> worker.PowerCycleSandboxResponse
+ 37, // 72: worker.SandboxWorker.SaveAsTemplate:output_type -> worker.SaveAsTemplateResponse
+ 52, // 73: worker.SandboxWorker.CreateCheckpoint:output_type -> worker.CreateCheckpointResponse
+ 54, // 74: worker.SandboxWorker.RestoreCheckpoint:output_type -> worker.RestoreCheckpointResponse
+ 39, // 75: worker.SandboxWorker.BuildTemplate:output_type -> worker.BuildTemplateResponse
+ 50, // 76: worker.SandboxWorker.GetSandboxStats:output_type -> worker.GetSandboxStatsResponse
+ 56, // 77: worker.SandboxWorker.SetSandboxLimits:output_type -> worker.SetSandboxLimitsResponse
+ 63, // 78: worker.SandboxWorker.UpdateSandboxSecret:output_type -> worker.UpdateSandboxSecretResponse
+ 58, // 79: worker.SandboxWorker.PreCopyDrives:output_type -> worker.PreCopyDrivesResponse
+ 61, // 80: worker.SandboxWorker.PrepareMigrationIncoming:output_type -> worker.PrepareMigrationIncomingResponse
+ 65, // 81: worker.SandboxWorker.LiveMigrate:output_type -> worker.LiveMigrateResponse
+ 67, // 82: worker.SandboxWorker.CompleteMigrationIncoming:output_type -> worker.CompleteMigrationIncomingResponse
+ 69, // 83: worker.SandboxWorker.RebuildGoldenSnapshot:output_type -> worker.RebuildGoldenSnapshotResponse
+ 51, // [51:84] is the sub-list for method output_type
+ 18, // [18:51] is the sub-list for method input_type
18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
@@ -4454,7 +4662,7 @@ func file_proto_worker_worker_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_worker_worker_proto_rawDesc), len(file_proto_worker_worker_proto_rawDesc)),
NumEnums: 1,
- NumMessages: 76,
+ NumMessages: 80,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/worker/worker.proto b/proto/worker/worker.proto
index fa46a8bf..46ae105a 100644
--- a/proto/worker/worker.proto
+++ b/proto/worker/worker.proto
@@ -28,6 +28,13 @@ service SandboxWorker {
rpc HibernateSandbox(HibernateSandboxRequest) returns (HibernateSandboxResponse);
rpc WakeSandbox(WakeSandboxRequest) returns (WakeSandboxResponse);
+ // Pause = QMP stop + proactive guest-RAM pageout (RAM-resident fast tier that
+ // stays on this worker). Resume = QMP cont. The customer-facing hibernate/wake
+ // maps here for the common case; deep savevm hibernation stays on
+ // HibernateSandbox/WakeSandbox.
+ rpc PauseSandbox(PauseSandboxRequest) returns (PauseSandboxResponse);
+ rpc ResumeSandbox(ResumeSandboxRequest) returns (ResumeSandboxResponse);
+
// Reboot performs a soft, in-place guest reset (QMP system_reset). The
// QEMU process, network, and workspace stay in place; only the guest
// kernel and processes are reset. Recovers from in-guest wedges (zombie
@@ -256,6 +263,21 @@ message WakeSandboxResponse {
string status = 2;
}
+message PauseSandboxRequest {
+ string sandbox_id = 1;
+}
+message PauseSandboxResponse {
+ string sandbox_id = 1;
+ // Bytes advised out to swap (MADV_PAGEOUT) — for reclaim observability.
+ int64 reclaimed_bytes = 2;
+}
+message ResumeSandboxRequest {
+ string sandbox_id = 1;
+}
+message ResumeSandboxResponse {
+ string sandbox_id = 1;
+}
+
message SaveAsTemplateRequest {
string sandbox_id = 1;
string template_id = 2; // UUID assigned by control plane
diff --git a/proto/worker/worker_grpc.pb.go b/proto/worker/worker_grpc.pb.go
index e5a8356c..68c308c7 100644
--- a/proto/worker/worker_grpc.pb.go
+++ b/proto/worker/worker_grpc.pb.go
@@ -36,6 +36,8 @@ const (
SandboxWorker_ExecSessionResult_FullMethodName = "/worker.SandboxWorker/ExecSessionResult"
SandboxWorker_HibernateSandbox_FullMethodName = "/worker.SandboxWorker/HibernateSandbox"
SandboxWorker_WakeSandbox_FullMethodName = "/worker.SandboxWorker/WakeSandbox"
+ SandboxWorker_PauseSandbox_FullMethodName = "/worker.SandboxWorker/PauseSandbox"
+ SandboxWorker_ResumeSandbox_FullMethodName = "/worker.SandboxWorker/ResumeSandbox"
SandboxWorker_RebootSandbox_FullMethodName = "/worker.SandboxWorker/RebootSandbox"
SandboxWorker_PowerCycleSandbox_FullMethodName = "/worker.SandboxWorker/PowerCycleSandbox"
SandboxWorker_SaveAsTemplate_FullMethodName = "/worker.SandboxWorker/SaveAsTemplate"
@@ -73,6 +75,12 @@ type SandboxWorkerClient interface {
ExecSessionResult(ctx context.Context, in *ExecSessionResultRequest, opts ...grpc.CallOption) (*ExecSessionResultResponse, error)
HibernateSandbox(ctx context.Context, in *HibernateSandboxRequest, opts ...grpc.CallOption) (*HibernateSandboxResponse, error)
WakeSandbox(ctx context.Context, in *WakeSandboxRequest, opts ...grpc.CallOption) (*WakeSandboxResponse, error)
+ // Pause = QMP stop + proactive guest-RAM pageout (RAM-resident fast tier that
+ // stays on this worker). Resume = QMP cont. The customer-facing hibernate/wake
+ // maps here for the common case; deep savevm hibernation stays on
+ // HibernateSandbox/WakeSandbox.
+ PauseSandbox(ctx context.Context, in *PauseSandboxRequest, opts ...grpc.CallOption) (*PauseSandboxResponse, error)
+ ResumeSandbox(ctx context.Context, in *ResumeSandboxRequest, opts ...grpc.CallOption) (*ResumeSandboxResponse, error)
// Reboot performs a soft, in-place guest reset (QMP system_reset). The
// QEMU process, network, and workspace stay in place; only the guest
// kernel and processes are reset. Recovers from in-guest wedges (zombie
@@ -296,6 +304,26 @@ func (c *sandboxWorkerClient) WakeSandbox(ctx context.Context, in *WakeSandboxRe
return out, nil
}
+func (c *sandboxWorkerClient) PauseSandbox(ctx context.Context, in *PauseSandboxRequest, opts ...grpc.CallOption) (*PauseSandboxResponse, error) {
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+ out := new(PauseSandboxResponse)
+ err := c.cc.Invoke(ctx, SandboxWorker_PauseSandbox_FullMethodName, in, out, cOpts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *sandboxWorkerClient) ResumeSandbox(ctx context.Context, in *ResumeSandboxRequest, opts ...grpc.CallOption) (*ResumeSandboxResponse, error) {
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+ out := new(ResumeSandboxResponse)
+ err := c.cc.Invoke(ctx, SandboxWorker_ResumeSandbox_FullMethodName, in, out, cOpts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *sandboxWorkerClient) RebootSandbox(ctx context.Context, in *RebootSandboxRequest, opts ...grpc.CallOption) (*RebootSandboxResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(RebootSandboxResponse)
@@ -457,6 +485,12 @@ type SandboxWorkerServer interface {
ExecSessionResult(context.Context, *ExecSessionResultRequest) (*ExecSessionResultResponse, error)
HibernateSandbox(context.Context, *HibernateSandboxRequest) (*HibernateSandboxResponse, error)
WakeSandbox(context.Context, *WakeSandboxRequest) (*WakeSandboxResponse, error)
+ // Pause = QMP stop + proactive guest-RAM pageout (RAM-resident fast tier that
+ // stays on this worker). Resume = QMP cont. The customer-facing hibernate/wake
+ // maps here for the common case; deep savevm hibernation stays on
+ // HibernateSandbox/WakeSandbox.
+ PauseSandbox(context.Context, *PauseSandboxRequest) (*PauseSandboxResponse, error)
+ ResumeSandbox(context.Context, *ResumeSandboxRequest) (*ResumeSandboxResponse, error)
// Reboot performs a soft, in-place guest reset (QMP system_reset). The
// QEMU process, network, and workspace stay in place; only the guest
// kernel and processes are reset. Recovers from in-guest wedges (zombie
@@ -549,6 +583,12 @@ func (UnimplementedSandboxWorkerServer) HibernateSandbox(context.Context, *Hiber
func (UnimplementedSandboxWorkerServer) WakeSandbox(context.Context, *WakeSandboxRequest) (*WakeSandboxResponse, error) {
return nil, status.Error(codes.Unimplemented, "method WakeSandbox not implemented")
}
+func (UnimplementedSandboxWorkerServer) PauseSandbox(context.Context, *PauseSandboxRequest) (*PauseSandboxResponse, error) {
+ return nil, status.Error(codes.Unimplemented, "method PauseSandbox not implemented")
+}
+func (UnimplementedSandboxWorkerServer) ResumeSandbox(context.Context, *ResumeSandboxRequest) (*ResumeSandboxResponse, error) {
+ return nil, status.Error(codes.Unimplemented, "method ResumeSandbox not implemented")
+}
func (UnimplementedSandboxWorkerServer) RebootSandbox(context.Context, *RebootSandboxRequest) (*RebootSandboxResponse, error) {
return nil, status.Error(codes.Unimplemented, "method RebootSandbox not implemented")
}
@@ -900,6 +940,42 @@ func _SandboxWorker_WakeSandbox_Handler(srv interface{}, ctx context.Context, de
return interceptor(ctx, in, info, handler)
}
+func _SandboxWorker_PauseSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(PauseSandboxRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(SandboxWorkerServer).PauseSandbox(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: SandboxWorker_PauseSandbox_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(SandboxWorkerServer).PauseSandbox(ctx, req.(*PauseSandboxRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _SandboxWorker_ResumeSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ResumeSandboxRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(SandboxWorkerServer).ResumeSandbox(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: SandboxWorker_ResumeSandbox_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(SandboxWorkerServer).ResumeSandbox(ctx, req.(*ResumeSandboxRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _SandboxWorker_RebootSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RebootSandboxRequest)
if err := dec(in); err != nil {
@@ -1219,6 +1295,14 @@ var SandboxWorker_ServiceDesc = grpc.ServiceDesc{
MethodName: "WakeSandbox",
Handler: _SandboxWorker_WakeSandbox_Handler,
},
+ {
+ MethodName: "PauseSandbox",
+ Handler: _SandboxWorker_PauseSandbox_Handler,
+ },
+ {
+ MethodName: "ResumeSandbox",
+ Handler: _SandboxWorker_ResumeSandbox_Handler,
+ },
{
MethodName: "RebootSandbox",
Handler: _SandboxWorker_RebootSandbox_Handler,