Skip to content

An open-source, faster Devin alternative

TypeScript

Remove a hardcoded API key, Cypen fixtures and stray generated protos

Mohamed Habib via Computer3a321edce9a7
diff --git a/cli/src/project.test.ts b/cli/src/project.test.ts
index d9ea4383..c8804e93 100644
--- a/cli/src/project.test.ts
+++ b/cli/src/project.test.ts
@@ -3067,7 +3067,7 @@ test("opencomputer.toml region is optional, accepts Modal regions, and rejects a
const manifest = (extra: string) =>
writeFile(
resolve(root, "opencomputer.toml"),
- `schema = 1\nid = "cypen"\nname = "Cypen"\n${extra}`,
+ `schema = 1\nid = "acme"\nname = "Acme"\n${extra}`,
);
try {
await manifest("");
@@ -3090,7 +3090,7 @@ test("opencomputer.toml [egress] allow is split into domains and CIDRs and valid
const manifest = (extra: string) =>
writeFile(
resolve(root, "opencomputer.toml"),
- `schema = 1\nid = "cypen"\nname = "Cypen"\n${extra}`,
+ `schema = 1\nid = "acme"\nname = "Acme"\n${extra}`,
);
try {
await manifest("");
@@ -3100,7 +3100,7 @@ test("opencomputer.toml [egress] allow is split into domains and CIDRs and valid
'region = "au"',
"[egress]",
"allow = [",
- ' "*.Cypen.io",',
+ ' "*.Acme.example",',
' "api.github.com.",',
' "203.0.113.10",',
' "10.20.0.0/16",',
@@ -3113,7 +3113,7 @@ test("opencomputer.toml [egress] allow is split into domains and CIDRs and valid
let read = await readManifest(root);
assert.equal(read.region, "au");
assert.deepEqual(read.egress, {
- domains: ["*.cypen.io", "api.github.com"],
+ domains: ["*.acme.example", "api.github.com"],
cidrs: ["10.20.0.0/16", "2001:db8::/32", "203.0.113.10/32"],
});
await manifest('[egress]\nallow = []\n');
@@ -3131,7 +3131,7 @@ test("opencomputer.toml [egress] allow is split into domains and CIDRs and valid
await manifest('[egress]\nallow = "api.github.com"\n');
await assert.rejects(readManifest(root), /allow must be a list/);
await manifest('[egress]\nfixed_ips = "au"\n');
- assert.deepEqual(await readManifest(root), { schema: 1, id: "cypen", name: "Cypen", fixedIps: "au" });
+ assert.deepEqual(await readManifest(root), { schema: 1, id: "acme", name: "Acme", fixedIps: "au" });
await manifest('[egress]\nfixed_ips = "au"\nallow = ["api.github.com"]\n');
read = await readManifest(root);
assert.equal(read.fixedIps, "au");
diff --git a/cloudflare-workers/api-edge/src/managed_agents.test.ts b/cloudflare-workers/api-edge/src/managed_agents.test.ts
index 67877ff6..bad804a5 100644
--- a/cloudflare-workers/api-edge/src/managed_agents.test.ts
+++ b/cloudflare-workers/api-edge/src/managed_agents.test.ts
@@ -63,8 +63,8 @@ describe("managed agents proxy", () => {
const fetchMock = vi.fn().mockResolvedValue(
Response.json({
customized: true,
- displayName: "Cypen pentesting",
- profileId: "cypen-jxscout",
+ displayName: "Acme scanning",
+ profileId: "acme-scanner",
imageArn: "private-image-identifier",
imageVersion: "9.0",
}),
@@ -86,7 +86,7 @@ describe("managed agents proxy", () => {
expect(response.status).toBe(200);
await expect(response.json()).resolves.toEqual({
customized: true,
- displayName: "Cypen pentesting",
+ displayName: "Acme scanning",
});
expect(fetchMock.mock.calls[0]?.[0].toString()).toBe(
"https://managedagents.test/v1/account/runtime-profile",
@@ -3171,7 +3171,7 @@ describe("managed agents proxy", () => {
],
createdAt: "2026-07-30T00:00:00.000Z",
region: "au",
- egress: { domains: ["*.cypen.io"], cidrs: ["10.0.0.0/8"] },
+ egress: { domains: ["*.acme.example"], cidrs: ["10.0.0.0/8"] },
fixedIps: "au",
artifact: { bucket: "private-bucket" },
imageArn: "arn:aws:private",
@@ -3232,7 +3232,7 @@ describe("managed agents proxy", () => {
},
],
region: "au",
- egress: { domains: ["*.cypen.io"], cidrs: ["10.0.0.0/8"] },
+ egress: { domains: ["*.acme.example"], cidrs: ["10.0.0.0/8"] },
fixedIps: "au",
source: {
digest,
@@ -3300,9 +3300,9 @@ describe("managed agents proxy", () => {
});
expect(
JSON.parse(String((fetchSpy.mock.calls[2]?.[1] as RequestInit).body)),
- ).toMatchObject({ region: "au", egress: { domains: ["*.cypen.io"], cidrs: ["10.0.0.0/8"] }, fixedIps: "au" });
+ ).toMatchObject({ region: "au", egress: { domains: ["*.acme.example"], cidrs: ["10.0.0.0/8"] }, fixedIps: "au" });
const published = await response.json();
- expect(published).toMatchObject({ region: "au", egress: { domains: ["*.cypen.io"], cidrs: ["10.0.0.0/8"] }, fixedIps: "au" });
+ expect(published).toMatchObject({ region: "au", egress: { domains: ["*.acme.example"], cidrs: ["10.0.0.0/8"] }, fixedIps: "au" });
expect(JSON.stringify(published)).not.toMatch(
/bucket|imageArn|arn:aws|uploads\.test/i,
);
@@ -3710,7 +3710,7 @@ describe("managed agents proxy", () => {
executionMode: "workerd",
status: "connecting",
createdAt: "2026-09-15T00:00:00.000Z",
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
accountId: "org_test",
},
},
@@ -3727,7 +3727,7 @@ describe("managed agents proxy", () => {
sessionId: "session-1",
turnId: null,
type: "session.created",
- data: { externalReference: "cypen/order/42", accountId: "org_test" },
+ data: { externalReference: "acme/order/42", accountId: "org_test" },
},
{
id: "evt-2",
@@ -3739,7 +3739,7 @@ describe("managed agents proxy", () => {
data: {
reason: "runtime_lost",
error: "internal stack trace org_test",
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
},
},
],
@@ -3749,7 +3749,7 @@ describe("managed agents proxy", () => {
return Response.json({
id: "session-1",
status: "idle",
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
labels: {},
revision: 1,
result: null,
@@ -3768,7 +3768,7 @@ describe("managed agents proxy", () => {
source: "api",
status: "idle",
labels: {},
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
createdAt: "2026-09-15T00:00:00.000Z",
updatedAt: "2026-09-15T00:00:00.000Z",
revision: 1,
@@ -3811,7 +3811,7 @@ describe("managed agents proxy", () => {
},
body: JSON.stringify({
agentId: "reviewer",
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
}),
}),
env,
@@ -3821,7 +3821,7 @@ describe("managed agents proxy", () => {
expect(created.status).toBe(201);
const [, createInit] = fetchSpy.mock.calls[0] as unknown as [URL, RequestInit];
expect(await new Response(createInit.body).json()).toMatchObject({
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
});
expect(new Headers(createInit.headers).get("idempotency-key")).toBe("order-42");
expect(await created.json()).toEqual({
@@ -3830,12 +3830,12 @@ describe("managed agents proxy", () => {
executionMode: "workerd",
status: "connecting",
createdAt: "2026-09-15T00:00:00.000Z",
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
},
});
const query =
- "projectId=prj_test&environment=development&agentId=reviewer&status=idle&deploymentId=reviewer%3Adigest&externalReference=cypen%2Forder%2F42&createdAfter=2026-09-14T00%3A00%3A00Z&createdBefore=2026-09-16T00%3A00%3A00Z&updatedAfter=2026-09-14T00%3A00%3A00Z&limit=2&cursor=abc";
+ "projectId=prj_test&environment=development&agentId=reviewer&status=idle&deploymentId=reviewer%3Adigest&externalReference=acme%2Forder%2F42&createdAfter=2026-09-14T00%3A00%3A00Z&createdBefore=2026-09-16T00%3A00%3A00Z&updatedAfter=2026-09-14T00%3A00%3A00Z&limit=2&cursor=abc";
const listed = await proxyManagedAgents(
new Request(
`https://app.opencomputer.dev/api/managed-agents/sessions?${query}`,
@@ -3856,7 +3856,7 @@ describe("managed agents proxy", () => {
expect(page.nextCursor).toBeNull();
expect(page.sessions[0]).toMatchObject({
id: "session-1",
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
});
expect(page.sessions[1]).not.toHaveProperty("externalReference");
expect(JSON.stringify(page)).not.toContain("org_test");
@@ -3871,7 +3871,7 @@ describe("managed agents proxy", () => {
);
expect(await inspected.json()).toMatchObject({
id: "session-1",
- externalReference: "cypen/order/42",
+ externalReference: "acme/order/42",
});
const events = await proxyManagedAgents(
@@ -3887,10 +3887,10 @@ describe("managed agents proxy", () => {
};
expect(eventBody.events[0]).toMatchObject({
type: "session.created",
- data: { externalReference: "cypen/order/42" },
+ data: { externalReference: "acme/order/42" },
});
expect(eventBody.events[1]?.type).toBe("session.failed");
- expect(eventBody.events[1]?.data.externalReference).toBe("cypen/order/42");
+ expect(eventBody.events[1]?.data.externalReference).toBe("acme/order/42");
expect(eventBody.events[1]?.data).not.toHaveProperty("error");
expect(eventBody.events[1]?.data).not.toHaveProperty("reason");
expect(JSON.stringify(eventBody)).not.toContain("org_test");
diff --git a/github.com/opensandbox/opensandbox/proto/worker/worker.pb.go b/github.com/opensandbox/opensandbox/proto/worker/worker.pb.go
deleted file mode 100644
index 0bbca37c..00000000
--- a/github.com/opensandbox/opensandbox/proto/worker/worker.pb.go
+++ /dev/null
@@ -1,3733 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.36.11
-// protoc v6.33.4
-// source: proto/worker/worker.proto
-
-package worker
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type ExecOutputChunk_Stream int32
-
-const (
- ExecOutputChunk_STDOUT ExecOutputChunk_Stream = 0
- ExecOutputChunk_STDERR ExecOutputChunk_Stream = 1
-)
-
-// Enum value maps for ExecOutputChunk_Stream.
-var (
- ExecOutputChunk_Stream_name = map[int32]string{
- 0: "STDOUT",
- 1: "STDERR",
- }
- ExecOutputChunk_Stream_value = map[string]int32{
- "STDOUT": 0,
- "STDERR": 1,
- }
-)
-
-func (x ExecOutputChunk_Stream) Enum() *ExecOutputChunk_Stream {
- p := new(ExecOutputChunk_Stream)
- *p = x
- return p
-}
-
-func (x ExecOutputChunk_Stream) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (ExecOutputChunk_Stream) Descriptor() protoreflect.EnumDescriptor {
- return file_proto_worker_worker_proto_enumTypes[0].Descriptor()
-}
-
-func (ExecOutputChunk_Stream) Type() protoreflect.EnumType {
- return &file_proto_worker_worker_proto_enumTypes[0]
-}
-
-func (x ExecOutputChunk_Stream) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use ExecOutputChunk_Stream.Descriptor instead.
-func (ExecOutputChunk_Stream) EnumDescriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{10, 0}
-}
-
-type CreateSandboxRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
- Timeout int32 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
- Envs map[string]string `protobuf:"bytes,3,rep,name=envs,proto3" json:"envs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- MemoryMb int32 `protobuf:"varint,4,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"`
- CpuCount int32 `protobuf:"varint,5,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
- NetworkEnabled bool `protobuf:"varint,6,opt,name=network_enabled,json=networkEnabled,proto3" json:"network_enabled,omitempty"`
- ImageRef string `protobuf:"bytes,7,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
- Port int32 `protobuf:"varint,8,opt,name=port,proto3" json:"port,omitempty"` // container port to expose via subdomain (default 80)
- // Sandbox snapshot template: if non-empty, boot from these S3 keys instead of base image.
- TemplateRootfsKey string `protobuf:"bytes,9,opt,name=template_rootfs_key,json=templateRootfsKey,proto3" json:"template_rootfs_key,omitempty"`
- TemplateWorkspaceKey string `protobuf:"bytes,10,opt,name=template_workspace_key,json=templateWorkspaceKey,proto3" json:"template_workspace_key,omitempty"`
- // If set, attempt warm fork from local checkpoint snapshot (LoadSnapshot instead of cold boot).
- CheckpointId string `protobuf:"bytes,11,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"`
- // Server-assigned sandbox ID. If non-empty, worker uses this instead of generating one.
- SandboxId string `protobuf:"bytes,12,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- // Egress allowlist: if non-empty, only these hosts can be reached.
- EgressAllowlist []string `protobuf:"bytes,13,rep,name=egress_allowlist,json=egressAllowlist,proto3" json:"egress_allowlist,omitempty"`
- // Per-secret host restrictions for secrets proxy.
- SecretAllowedHosts map[string]string `protobuf:"bytes,14,rep,name=secret_allowed_hosts,json=secretAllowedHosts,proto3" json:"secret_allowed_hosts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CreateSandboxRequest) Reset() {
- *x = CreateSandboxRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CreateSandboxRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CreateSandboxRequest) ProtoMessage() {}
-
-func (x *CreateSandboxRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[0]
- 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 CreateSandboxRequest.ProtoReflect.Descriptor instead.
-func (*CreateSandboxRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *CreateSandboxRequest) GetTemplate() string {
- if x != nil {
- return x.Template
- }
- return ""
-}
-
-func (x *CreateSandboxRequest) GetTimeout() int32 {
- if x != nil {
- return x.Timeout
- }
- return 0
-}
-
-func (x *CreateSandboxRequest) GetEnvs() map[string]string {
- if x != nil {
- return x.Envs
- }
- return nil
-}
-
-func (x *CreateSandboxRequest) GetMemoryMb() int32 {
- if x != nil {
- return x.MemoryMb
- }
- return 0
-}
-
-func (x *CreateSandboxRequest) GetCpuCount() int32 {
- if x != nil {
- return x.CpuCount
- }
- return 0
-}
-
-func (x *CreateSandboxRequest) GetNetworkEnabled() bool {
- if x != nil {
- return x.NetworkEnabled
- }
- return false
-}
-
-func (x *CreateSandboxRequest) GetImageRef() string {
- if x != nil {
- return x.ImageRef
- }
- return ""
-}
-
-func (x *CreateSandboxRequest) GetPort() int32 {
- if x != nil {
- return x.Port
- }
- return 0
-}
-
-func (x *CreateSandboxRequest) GetTemplateRootfsKey() string {
- if x != nil {
- return x.TemplateRootfsKey
- }
- return ""
-}
-
-func (x *CreateSandboxRequest) GetTemplateWorkspaceKey() string {
- if x != nil {
- return x.TemplateWorkspaceKey
- }
- return ""
-}
-
-func (x *CreateSandboxRequest) GetCheckpointId() string {
- if x != nil {
- return x.CheckpointId
- }
- return ""
-}
-
-func (x *CreateSandboxRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *CreateSandboxRequest) GetEgressAllowlist() []string {
- if x != nil {
- return x.EgressAllowlist
- }
- return nil
-}
-
-func (x *CreateSandboxRequest) GetSecretAllowedHosts() map[string]string {
- if x != nil {
- return x.SecretAllowedHosts
- }
- return nil
-}
-
-type CreateSandboxResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CreateSandboxResponse) Reset() {
- *x = CreateSandboxResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CreateSandboxResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CreateSandboxResponse) ProtoMessage() {}
-
-func (x *CreateSandboxResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[1]
- 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 CreateSandboxResponse.ProtoReflect.Descriptor instead.
-func (*CreateSandboxResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *CreateSandboxResponse) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *CreateSandboxResponse) GetStatus() string {
- if x != nil {
- return x.Status
- }
- return ""
-}
-
-type DestroySandboxRequest 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 *DestroySandboxRequest) Reset() {
- *x = DestroySandboxRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DestroySandboxRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DestroySandboxRequest) ProtoMessage() {}
-
-func (x *DestroySandboxRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[2]
- 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 DestroySandboxRequest.ProtoReflect.Descriptor instead.
-func (*DestroySandboxRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *DestroySandboxRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-type DestroySandboxResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DestroySandboxResponse) Reset() {
- *x = DestroySandboxResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DestroySandboxResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DestroySandboxResponse) ProtoMessage() {}
-
-func (x *DestroySandboxResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[3]
- 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 DestroySandboxResponse.ProtoReflect.Descriptor instead.
-func (*DestroySandboxResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{3}
-}
-
-type GetSandboxRequest 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 *GetSandboxRequest) Reset() {
- *x = GetSandboxRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *GetSandboxRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GetSandboxRequest) ProtoMessage() {}
-
-func (x *GetSandboxRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[4]
- 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 GetSandboxRequest.ProtoReflect.Descriptor instead.
-func (*GetSandboxRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{4}
-}
-
-func (x *GetSandboxRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-type GetSandboxResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
- Template string `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"`
- StartedAt int64 `protobuf:"varint,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
- EndAt int64 `protobuf:"varint,5,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *GetSandboxResponse) Reset() {
- *x = GetSandboxResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *GetSandboxResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GetSandboxResponse) ProtoMessage() {}
-
-func (x *GetSandboxResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[5]
- 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 GetSandboxResponse.ProtoReflect.Descriptor instead.
-func (*GetSandboxResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{5}
-}
-
-func (x *GetSandboxResponse) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *GetSandboxResponse) GetStatus() string {
- if x != nil {
- return x.Status
- }
- return ""
-}
-
-func (x *GetSandboxResponse) GetTemplate() string {
- if x != nil {
- return x.Template
- }
- return ""
-}
-
-func (x *GetSandboxResponse) GetStartedAt() int64 {
- if x != nil {
- return x.StartedAt
- }
- return 0
-}
-
-func (x *GetSandboxResponse) GetEndAt() int64 {
- if x != nil {
- return x.EndAt
- }
- return 0
-}
-
-type ListSandboxesRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ListSandboxesRequest) Reset() {
- *x = ListSandboxesRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ListSandboxesRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ListSandboxesRequest) ProtoMessage() {}
-
-func (x *ListSandboxesRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[6]
- 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 ListSandboxesRequest.ProtoReflect.Descriptor instead.
-func (*ListSandboxesRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{6}
-}
-
-type ListSandboxesResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Sandboxes []*GetSandboxResponse `protobuf:"bytes,1,rep,name=sandboxes,proto3" json:"sandboxes,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ListSandboxesResponse) Reset() {
- *x = ListSandboxesResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ListSandboxesResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ListSandboxesResponse) ProtoMessage() {}
-
-func (x *ListSandboxesResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[7]
- 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 ListSandboxesResponse.ProtoReflect.Descriptor instead.
-func (*ListSandboxesResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *ListSandboxesResponse) GetSandboxes() []*GetSandboxResponse {
- if x != nil {
- return x.Sandboxes
- }
- return nil
-}
-
-type ExecCommandRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
- Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
- Envs map[string]string `protobuf:"bytes,4,rep,name=envs,proto3" json:"envs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- Cwd string `protobuf:"bytes,5,opt,name=cwd,proto3" json:"cwd,omitempty"`
- Timeout int32 `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecCommandRequest) Reset() {
- *x = ExecCommandRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecCommandRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecCommandRequest) ProtoMessage() {}
-
-func (x *ExecCommandRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[8]
- 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 ExecCommandRequest.ProtoReflect.Descriptor instead.
-func (*ExecCommandRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{8}
-}
-
-func (x *ExecCommandRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *ExecCommandRequest) GetCommand() string {
- if x != nil {
- return x.Command
- }
- return ""
-}
-
-func (x *ExecCommandRequest) GetArgs() []string {
- if x != nil {
- return x.Args
- }
- return nil
-}
-
-func (x *ExecCommandRequest) GetEnvs() map[string]string {
- if x != nil {
- return x.Envs
- }
- return nil
-}
-
-func (x *ExecCommandRequest) GetCwd() string {
- if x != nil {
- return x.Cwd
- }
- return ""
-}
-
-func (x *ExecCommandRequest) GetTimeout() int32 {
- if x != nil {
- return x.Timeout
- }
- return 0
-}
-
-type ExecCommandResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
- Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"`
- Stderr string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecCommandResponse) Reset() {
- *x = ExecCommandResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecCommandResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecCommandResponse) ProtoMessage() {}
-
-func (x *ExecCommandResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[9]
- 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 ExecCommandResponse.ProtoReflect.Descriptor instead.
-func (*ExecCommandResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{9}
-}
-
-func (x *ExecCommandResponse) GetExitCode() int32 {
- if x != nil {
- return x.ExitCode
- }
- return 0
-}
-
-func (x *ExecCommandResponse) GetStdout() string {
- if x != nil {
- return x.Stdout
- }
- return ""
-}
-
-func (x *ExecCommandResponse) GetStderr() string {
- if x != nil {
- return x.Stderr
- }
- return ""
-}
-
-type ExecOutputChunk struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Stream ExecOutputChunk_Stream `protobuf:"varint,1,opt,name=stream,proto3,enum=worker.ExecOutputChunk_Stream" json:"stream,omitempty"`
- Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecOutputChunk) Reset() {
- *x = ExecOutputChunk{}
- mi := &file_proto_worker_worker_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecOutputChunk) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecOutputChunk) ProtoMessage() {}
-
-func (x *ExecOutputChunk) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[10]
- 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 ExecOutputChunk.ProtoReflect.Descriptor instead.
-func (*ExecOutputChunk) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{10}
-}
-
-func (x *ExecOutputChunk) GetStream() ExecOutputChunk_Stream {
- if x != nil {
- return x.Stream
- }
- return ExecOutputChunk_STDOUT
-}
-
-func (x *ExecOutputChunk) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
-}
-
-type ReadFileRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ReadFileRequest) Reset() {
- *x = ReadFileRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ReadFileRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ReadFileRequest) ProtoMessage() {}
-
-func (x *ReadFileRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[11]
- 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 ReadFileRequest.ProtoReflect.Descriptor instead.
-func (*ReadFileRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{11}
-}
-
-func (x *ReadFileRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *ReadFileRequest) GetPath() string {
- if x != nil {
- return x.Path
- }
- return ""
-}
-
-type ReadFileResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ReadFileResponse) Reset() {
- *x = ReadFileResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ReadFileResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ReadFileResponse) ProtoMessage() {}
-
-func (x *ReadFileResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[12]
- 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 ReadFileResponse.ProtoReflect.Descriptor instead.
-func (*ReadFileResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{12}
-}
-
-func (x *ReadFileResponse) GetContent() []byte {
- if x != nil {
- return x.Content
- }
- return nil
-}
-
-type WriteFileRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
- Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *WriteFileRequest) Reset() {
- *x = WriteFileRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *WriteFileRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*WriteFileRequest) ProtoMessage() {}
-
-func (x *WriteFileRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[13]
- 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 WriteFileRequest.ProtoReflect.Descriptor instead.
-func (*WriteFileRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{13}
-}
-
-func (x *WriteFileRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *WriteFileRequest) GetPath() string {
- if x != nil {
- return x.Path
- }
- return ""
-}
-
-func (x *WriteFileRequest) GetContent() []byte {
- if x != nil {
- return x.Content
- }
- return nil
-}
-
-type WriteFileResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *WriteFileResponse) Reset() {
- *x = WriteFileResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *WriteFileResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*WriteFileResponse) ProtoMessage() {}
-
-func (x *WriteFileResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[14]
- 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 WriteFileResponse.ProtoReflect.Descriptor instead.
-func (*WriteFileResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{14}
-}
-
-type ListDirRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ListDirRequest) Reset() {
- *x = ListDirRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[15]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ListDirRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ListDirRequest) ProtoMessage() {}
-
-func (x *ListDirRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[15]
- 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 ListDirRequest.ProtoReflect.Descriptor instead.
-func (*ListDirRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{15}
-}
-
-func (x *ListDirRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *ListDirRequest) GetPath() string {
- if x != nil {
- return x.Path
- }
- return ""
-}
-
-type DirEntry struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- IsDir bool `protobuf:"varint,2,opt,name=is_dir,json=isDir,proto3" json:"is_dir,omitempty"`
- Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
- Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *DirEntry) Reset() {
- *x = DirEntry{}
- mi := &file_proto_worker_worker_proto_msgTypes[16]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *DirEntry) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DirEntry) ProtoMessage() {}
-
-func (x *DirEntry) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[16]
- 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 DirEntry.ProtoReflect.Descriptor instead.
-func (*DirEntry) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{16}
-}
-
-func (x *DirEntry) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *DirEntry) GetIsDir() bool {
- if x != nil {
- return x.IsDir
- }
- return false
-}
-
-func (x *DirEntry) GetSize() int64 {
- if x != nil {
- return x.Size
- }
- return 0
-}
-
-func (x *DirEntry) GetPath() string {
- if x != nil {
- return x.Path
- }
- return ""
-}
-
-type ListDirResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Entries []*DirEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ListDirResponse) Reset() {
- *x = ListDirResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[17]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ListDirResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ListDirResponse) ProtoMessage() {}
-
-func (x *ListDirResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[17]
- 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 ListDirResponse.ProtoReflect.Descriptor instead.
-func (*ListDirResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{17}
-}
-
-func (x *ListDirResponse) GetEntries() []*DirEntry {
- if x != nil {
- return x.Entries
- }
- return nil
-}
-
-type CreatePTYRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Cols int32 `protobuf:"varint,2,opt,name=cols,proto3" json:"cols,omitempty"`
- Rows int32 `protobuf:"varint,3,opt,name=rows,proto3" json:"rows,omitempty"`
- Shell string `protobuf:"bytes,4,opt,name=shell,proto3" json:"shell,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CreatePTYRequest) Reset() {
- *x = CreatePTYRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[18]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CreatePTYRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CreatePTYRequest) ProtoMessage() {}
-
-func (x *CreatePTYRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[18]
- 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 CreatePTYRequest.ProtoReflect.Descriptor instead.
-func (*CreatePTYRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{18}
-}
-
-func (x *CreatePTYRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *CreatePTYRequest) GetCols() int32 {
- if x != nil {
- return x.Cols
- }
- return 0
-}
-
-func (x *CreatePTYRequest) GetRows() int32 {
- if x != nil {
- return x.Rows
- }
- return 0
-}
-
-func (x *CreatePTYRequest) GetShell() string {
- if x != nil {
- return x.Shell
- }
- return ""
-}
-
-type CreatePTYResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CreatePTYResponse) Reset() {
- *x = CreatePTYResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[19]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CreatePTYResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CreatePTYResponse) ProtoMessage() {}
-
-func (x *CreatePTYResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[19]
- 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 CreatePTYResponse.ProtoReflect.Descriptor instead.
-func (*CreatePTYResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{19}
-}
-
-func (x *CreatePTYResponse) GetSessionId() string {
- if x != nil {
- return x.SessionId
- }
- return ""
-}
-
-type PTYInput struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
- // Types that are valid to be assigned to Input:
- //
- // *PTYInput_Data
- // *PTYInput_Resize
- Input isPTYInput_Input `protobuf_oneof:"input"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PTYInput) Reset() {
- *x = PTYInput{}
- mi := &file_proto_worker_worker_proto_msgTypes[20]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PTYInput) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PTYInput) ProtoMessage() {}
-
-func (x *PTYInput) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[20]
- 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 PTYInput.ProtoReflect.Descriptor instead.
-func (*PTYInput) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{20}
-}
-
-func (x *PTYInput) GetSessionId() string {
- if x != nil {
- return x.SessionId
- }
- return ""
-}
-
-func (x *PTYInput) GetInput() isPTYInput_Input {
- if x != nil {
- return x.Input
- }
- return nil
-}
-
-func (x *PTYInput) GetData() []byte {
- if x != nil {
- if x, ok := x.Input.(*PTYInput_Data); ok {
- return x.Data
- }
- }
- return nil
-}
-
-func (x *PTYInput) GetResize() *PTYResize {
- if x != nil {
- if x, ok := x.Input.(*PTYInput_Resize); ok {
- return x.Resize
- }
- }
- return nil
-}
-
-type isPTYInput_Input interface {
- isPTYInput_Input()
-}
-
-type PTYInput_Data struct {
- Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
-}
-
-type PTYInput_Resize struct {
- Resize *PTYResize `protobuf:"bytes,3,opt,name=resize,proto3,oneof"`
-}
-
-func (*PTYInput_Data) isPTYInput_Input() {}
-
-func (*PTYInput_Resize) isPTYInput_Input() {}
-
-type PTYResize struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Cols int32 `protobuf:"varint,1,opt,name=cols,proto3" json:"cols,omitempty"`
- Rows int32 `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PTYResize) Reset() {
- *x = PTYResize{}
- mi := &file_proto_worker_worker_proto_msgTypes[21]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PTYResize) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PTYResize) ProtoMessage() {}
-
-func (x *PTYResize) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[21]
- 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 PTYResize.ProtoReflect.Descriptor instead.
-func (*PTYResize) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{21}
-}
-
-func (x *PTYResize) GetCols() int32 {
- if x != nil {
- return x.Cols
- }
- return 0
-}
-
-func (x *PTYResize) GetRows() int32 {
- if x != nil {
- return x.Rows
- }
- return 0
-}
-
-type PTYOutput struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
- Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PTYOutput) Reset() {
- *x = PTYOutput{}
- mi := &file_proto_worker_worker_proto_msgTypes[22]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PTYOutput) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PTYOutput) ProtoMessage() {}
-
-func (x *PTYOutput) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[22]
- 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 PTYOutput.ProtoReflect.Descriptor instead.
-func (*PTYOutput) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{22}
-}
-
-func (x *PTYOutput) GetSessionId() string {
- if x != nil {
- return x.SessionId
- }
- return ""
-}
-
-func (x *PTYOutput) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
-}
-
-type HibernateSandboxRequest 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 *HibernateSandboxRequest) Reset() {
- *x = HibernateSandboxRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[23]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *HibernateSandboxRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*HibernateSandboxRequest) ProtoMessage() {}
-
-func (x *HibernateSandboxRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[23]
- 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 HibernateSandboxRequest.ProtoReflect.Descriptor instead.
-func (*HibernateSandboxRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{23}
-}
-
-func (x *HibernateSandboxRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-type HibernateSandboxResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- CheckpointKey string `protobuf:"bytes,2,opt,name=checkpoint_key,json=checkpointKey,proto3" json:"checkpoint_key,omitempty"`
- SizeBytes int64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *HibernateSandboxResponse) Reset() {
- *x = HibernateSandboxResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[24]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *HibernateSandboxResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*HibernateSandboxResponse) ProtoMessage() {}
-
-func (x *HibernateSandboxResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[24]
- 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 HibernateSandboxResponse.ProtoReflect.Descriptor instead.
-func (*HibernateSandboxResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{24}
-}
-
-func (x *HibernateSandboxResponse) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *HibernateSandboxResponse) GetCheckpointKey() string {
- if x != nil {
- return x.CheckpointKey
- }
- return ""
-}
-
-func (x *HibernateSandboxResponse) GetSizeBytes() int64 {
- if x != nil {
- return x.SizeBytes
- }
- return 0
-}
-
-type WakeSandboxRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- CheckpointKey string `protobuf:"bytes,2,opt,name=checkpoint_key,json=checkpointKey,proto3" json:"checkpoint_key,omitempty"`
- Timeout int32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *WakeSandboxRequest) Reset() {
- *x = WakeSandboxRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[25]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *WakeSandboxRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*WakeSandboxRequest) ProtoMessage() {}
-
-func (x *WakeSandboxRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[25]
- 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 WakeSandboxRequest.ProtoReflect.Descriptor instead.
-func (*WakeSandboxRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{25}
-}
-
-func (x *WakeSandboxRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *WakeSandboxRequest) GetCheckpointKey() string {
- if x != nil {
- return x.CheckpointKey
- }
- return ""
-}
-
-func (x *WakeSandboxRequest) GetTimeout() int32 {
- if x != nil {
- return x.Timeout
- }
- return 0
-}
-
-type WakeSandboxResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *WakeSandboxResponse) Reset() {
- *x = WakeSandboxResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[26]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *WakeSandboxResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*WakeSandboxResponse) ProtoMessage() {}
-
-func (x *WakeSandboxResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[26]
- 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 WakeSandboxResponse.ProtoReflect.Descriptor instead.
-func (*WakeSandboxResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{26}
-}
-
-func (x *WakeSandboxResponse) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *WakeSandboxResponse) GetStatus() string {
- if x != nil {
- return x.Status
- }
- 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"`
- TemplateId string `protobuf:"bytes,2,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"` // UUID assigned by control plane
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SaveAsTemplateRequest) Reset() {
- *x = SaveAsTemplateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[27]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SaveAsTemplateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SaveAsTemplateRequest) ProtoMessage() {}
-
-func (x *SaveAsTemplateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[27]
- 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 SaveAsTemplateRequest.ProtoReflect.Descriptor instead.
-func (*SaveAsTemplateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{27}
-}
-
-func (x *SaveAsTemplateRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *SaveAsTemplateRequest) GetTemplateId() string {
- if x != nil {
- return x.TemplateId
- }
- return ""
-}
-
-type SaveAsTemplateResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- RootfsS3Key string `protobuf:"bytes,1,opt,name=rootfs_s3_key,json=rootfsS3Key,proto3" json:"rootfs_s3_key,omitempty"`
- WorkspaceS3Key string `protobuf:"bytes,2,opt,name=workspace_s3_key,json=workspaceS3Key,proto3" json:"workspace_s3_key,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SaveAsTemplateResponse) Reset() {
- *x = SaveAsTemplateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[28]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SaveAsTemplateResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SaveAsTemplateResponse) ProtoMessage() {}
-
-func (x *SaveAsTemplateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[28]
- 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 SaveAsTemplateResponse.ProtoReflect.Descriptor instead.
-func (*SaveAsTemplateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{28}
-}
-
-func (x *SaveAsTemplateResponse) GetRootfsS3Key() string {
- if x != nil {
- return x.RootfsS3Key
- }
- return ""
-}
-
-func (x *SaveAsTemplateResponse) GetWorkspaceS3Key() string {
- if x != nil {
- return x.WorkspaceS3Key
- }
- return ""
-}
-
-type BuildTemplateRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Dockerfile string `protobuf:"bytes,2,opt,name=dockerfile,proto3" json:"dockerfile,omitempty"`
- Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
- EcrImageRef string `protobuf:"bytes,4,opt,name=ecr_image_ref,json=ecrImageRef,proto3" json:"ecr_image_ref,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BuildTemplateRequest) Reset() {
- *x = BuildTemplateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[29]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BuildTemplateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BuildTemplateRequest) ProtoMessage() {}
-
-func (x *BuildTemplateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[29]
- 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 BuildTemplateRequest.ProtoReflect.Descriptor instead.
-func (*BuildTemplateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{29}
-}
-
-func (x *BuildTemplateRequest) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BuildTemplateRequest) GetDockerfile() string {
- if x != nil {
- return x.Dockerfile
- }
- return ""
-}
-
-func (x *BuildTemplateRequest) GetTag() string {
- if x != nil {
- return x.Tag
- }
- return ""
-}
-
-func (x *BuildTemplateRequest) GetEcrImageRef() string {
- if x != nil {
- return x.EcrImageRef
- }
- return ""
-}
-
-type BuildTemplateResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ImageRef string `protobuf:"bytes,1,opt,name=image_ref,json=imageRef,proto3" json:"image_ref,omitempty"`
- BuildLog string `protobuf:"bytes,2,opt,name=build_log,json=buildLog,proto3" json:"build_log,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BuildTemplateResponse) Reset() {
- *x = BuildTemplateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[30]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BuildTemplateResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BuildTemplateResponse) ProtoMessage() {}
-
-func (x *BuildTemplateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[30]
- 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 BuildTemplateResponse.ProtoReflect.Descriptor instead.
-func (*BuildTemplateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{30}
-}
-
-func (x *BuildTemplateResponse) GetImageRef() string {
- if x != nil {
- return x.ImageRef
- }
- return ""
-}
-
-func (x *BuildTemplateResponse) GetBuildLog() string {
- if x != nil {
- return x.BuildLog
- }
- return ""
-}
-
-type ExecSessionCreateRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
- Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
- Envs map[string]string `protobuf:"bytes,4,rep,name=envs,proto3" json:"envs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- Cwd string `protobuf:"bytes,5,opt,name=cwd,proto3" json:"cwd,omitempty"`
- TimeoutSeconds int32 `protobuf:"varint,6,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
- MaxRunAfterDisconnect int32 `protobuf:"varint,7,opt,name=max_run_after_disconnect,json=maxRunAfterDisconnect,proto3" json:"max_run_after_disconnect,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecSessionCreateRequest) Reset() {
- *x = ExecSessionCreateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[31]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecSessionCreateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecSessionCreateRequest) ProtoMessage() {}
-
-func (x *ExecSessionCreateRequest) 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 ExecSessionCreateRequest.ProtoReflect.Descriptor instead.
-func (*ExecSessionCreateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{31}
-}
-
-func (x *ExecSessionCreateRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *ExecSessionCreateRequest) GetCommand() string {
- if x != nil {
- return x.Command
- }
- return ""
-}
-
-func (x *ExecSessionCreateRequest) GetArgs() []string {
- if x != nil {
- return x.Args
- }
- return nil
-}
-
-func (x *ExecSessionCreateRequest) GetEnvs() map[string]string {
- if x != nil {
- return x.Envs
- }
- return nil
-}
-
-func (x *ExecSessionCreateRequest) GetCwd() string {
- if x != nil {
- return x.Cwd
- }
- return ""
-}
-
-func (x *ExecSessionCreateRequest) GetTimeoutSeconds() int32 {
- if x != nil {
- return x.TimeoutSeconds
- }
- return 0
-}
-
-func (x *ExecSessionCreateRequest) GetMaxRunAfterDisconnect() int32 {
- if x != nil {
- return x.MaxRunAfterDisconnect
- }
- return 0
-}
-
-type ExecSessionCreateResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecSessionCreateResponse) Reset() {
- *x = ExecSessionCreateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[32]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecSessionCreateResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecSessionCreateResponse) ProtoMessage() {}
-
-func (x *ExecSessionCreateResponse) 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 ExecSessionCreateResponse.ProtoReflect.Descriptor instead.
-func (*ExecSessionCreateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{32}
-}
-
-func (x *ExecSessionCreateResponse) GetSessionId() string {
- if x != nil {
- return x.SessionId
- }
- return ""
-}
-
-type ExecSessionListRequest 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 *ExecSessionListRequest) Reset() {
- *x = ExecSessionListRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[33]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecSessionListRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecSessionListRequest) ProtoMessage() {}
-
-func (x *ExecSessionListRequest) 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 ExecSessionListRequest.ProtoReflect.Descriptor instead.
-func (*ExecSessionListRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{33}
-}
-
-func (x *ExecSessionListRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-type ExecSessionListResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Sessions []*ExecSessionInfoEntry `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecSessionListResponse) Reset() {
- *x = ExecSessionListResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[34]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecSessionListResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecSessionListResponse) ProtoMessage() {}
-
-func (x *ExecSessionListResponse) 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 ExecSessionListResponse.ProtoReflect.Descriptor instead.
-func (*ExecSessionListResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{34}
-}
-
-func (x *ExecSessionListResponse) GetSessions() []*ExecSessionInfoEntry {
- if x != nil {
- return x.Sessions
- }
- return nil
-}
-
-type ExecSessionInfoEntry struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
- Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
- Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
- Running bool `protobuf:"varint,4,opt,name=running,proto3" json:"running,omitempty"`
- ExitCode int32 `protobuf:"varint,5,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
- StartedAt int64 `protobuf:"varint,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
- AttachedClients int32 `protobuf:"varint,7,opt,name=attached_clients,json=attachedClients,proto3" json:"attached_clients,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecSessionInfoEntry) Reset() {
- *x = ExecSessionInfoEntry{}
- mi := &file_proto_worker_worker_proto_msgTypes[35]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecSessionInfoEntry) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecSessionInfoEntry) ProtoMessage() {}
-
-func (x *ExecSessionInfoEntry) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[35]
- 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 ExecSessionInfoEntry.ProtoReflect.Descriptor instead.
-func (*ExecSessionInfoEntry) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{35}
-}
-
-func (x *ExecSessionInfoEntry) GetSessionId() string {
- if x != nil {
- return x.SessionId
- }
- return ""
-}
-
-func (x *ExecSessionInfoEntry) GetCommand() string {
- if x != nil {
- return x.Command
- }
- return ""
-}
-
-func (x *ExecSessionInfoEntry) GetArgs() []string {
- if x != nil {
- return x.Args
- }
- return nil
-}
-
-func (x *ExecSessionInfoEntry) GetRunning() bool {
- if x != nil {
- return x.Running
- }
- return false
-}
-
-func (x *ExecSessionInfoEntry) GetExitCode() int32 {
- if x != nil {
- return x.ExitCode
- }
- return 0
-}
-
-func (x *ExecSessionInfoEntry) GetStartedAt() int64 {
- if x != nil {
- return x.StartedAt
- }
- return 0
-}
-
-func (x *ExecSessionInfoEntry) GetAttachedClients() int32 {
- if x != nil {
- return x.AttachedClients
- }
- return 0
-}
-
-type ExecSessionKillRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
- Signal int32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecSessionKillRequest) Reset() {
- *x = ExecSessionKillRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[36]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecSessionKillRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecSessionKillRequest) ProtoMessage() {}
-
-func (x *ExecSessionKillRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[36]
- 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 ExecSessionKillRequest.ProtoReflect.Descriptor instead.
-func (*ExecSessionKillRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{36}
-}
-
-func (x *ExecSessionKillRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *ExecSessionKillRequest) GetSessionId() string {
- if x != nil {
- return x.SessionId
- }
- return ""
-}
-
-func (x *ExecSessionKillRequest) GetSignal() int32 {
- if x != nil {
- return x.Signal
- }
- return 0
-}
-
-type ExecSessionKillResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *ExecSessionKillResponse) Reset() {
- *x = ExecSessionKillResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[37]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *ExecSessionKillResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ExecSessionKillResponse) ProtoMessage() {}
-
-func (x *ExecSessionKillResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[37]
- 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 ExecSessionKillResponse.ProtoReflect.Descriptor instead.
-func (*ExecSessionKillResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{37}
-}
-
-type GetSandboxStatsRequest 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 *GetSandboxStatsRequest) Reset() {
- *x = GetSandboxStatsRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[38]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *GetSandboxStatsRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GetSandboxStatsRequest) ProtoMessage() {}
-
-func (x *GetSandboxStatsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[38]
- 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 GetSandboxStatsRequest.ProtoReflect.Descriptor instead.
-func (*GetSandboxStatsRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{38}
-}
-
-func (x *GetSandboxStatsRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-type GetSandboxStatsResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- CpuPercent float64 `protobuf:"fixed64,1,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"`
- MemUsage uint64 `protobuf:"varint,2,opt,name=mem_usage,json=memUsage,proto3" json:"mem_usage,omitempty"`
- MemLimit uint64 `protobuf:"varint,3,opt,name=mem_limit,json=memLimit,proto3" json:"mem_limit,omitempty"`
- NetInput uint64 `protobuf:"varint,4,opt,name=net_input,json=netInput,proto3" json:"net_input,omitempty"`
- NetOutput uint64 `protobuf:"varint,5,opt,name=net_output,json=netOutput,proto3" json:"net_output,omitempty"`
- Pids int32 `protobuf:"varint,6,opt,name=pids,proto3" json:"pids,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *GetSandboxStatsResponse) Reset() {
- *x = GetSandboxStatsResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[39]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *GetSandboxStatsResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*GetSandboxStatsResponse) ProtoMessage() {}
-
-func (x *GetSandboxStatsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[39]
- 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 GetSandboxStatsResponse.ProtoReflect.Descriptor instead.
-func (*GetSandboxStatsResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{39}
-}
-
-func (x *GetSandboxStatsResponse) GetCpuPercent() float64 {
- if x != nil {
- return x.CpuPercent
- }
- return 0
-}
-
-func (x *GetSandboxStatsResponse) GetMemUsage() uint64 {
- if x != nil {
- return x.MemUsage
- }
- return 0
-}
-
-func (x *GetSandboxStatsResponse) GetMemLimit() uint64 {
- if x != nil {
- return x.MemLimit
- }
- return 0
-}
-
-func (x *GetSandboxStatsResponse) GetNetInput() uint64 {
- if x != nil {
- return x.NetInput
- }
- return 0
-}
-
-func (x *GetSandboxStatsResponse) GetNetOutput() uint64 {
- if x != nil {
- return x.NetOutput
- }
- return 0
-}
-
-func (x *GetSandboxStatsResponse) GetPids() int32 {
- if x != nil {
- return x.Pids
- }
- return 0
-}
-
-type CreateCheckpointRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- CheckpointId string `protobuf:"bytes,2,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // UUID assigned by control plane
- PrepareGolden bool `protobuf:"varint,3,opt,name=prepare_golden,json=prepareGolden,proto3" json:"prepare_golden,omitempty"` // If true, prepare a golden snapshot from this checkpoint
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CreateCheckpointRequest) Reset() {
- *x = CreateCheckpointRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[40]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CreateCheckpointRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CreateCheckpointRequest) ProtoMessage() {}
-
-func (x *CreateCheckpointRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[40]
- 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 CreateCheckpointRequest.ProtoReflect.Descriptor instead.
-func (*CreateCheckpointRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{40}
-}
-
-func (x *CreateCheckpointRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *CreateCheckpointRequest) GetCheckpointId() string {
- if x != nil {
- return x.CheckpointId
- }
- return ""
-}
-
-func (x *CreateCheckpointRequest) GetPrepareGolden() bool {
- if x != nil {
- return x.PrepareGolden
- }
- return false
-}
-
-type CreateCheckpointResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- RootfsS3Key string `protobuf:"bytes,1,opt,name=rootfs_s3_key,json=rootfsS3Key,proto3" json:"rootfs_s3_key,omitempty"`
- WorkspaceS3Key string `protobuf:"bytes,2,opt,name=workspace_s3_key,json=workspaceS3Key,proto3" json:"workspace_s3_key,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CreateCheckpointResponse) Reset() {
- *x = CreateCheckpointResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[41]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CreateCheckpointResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CreateCheckpointResponse) ProtoMessage() {}
-
-func (x *CreateCheckpointResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[41]
- 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 CreateCheckpointResponse.ProtoReflect.Descriptor instead.
-func (*CreateCheckpointResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{41}
-}
-
-func (x *CreateCheckpointResponse) GetRootfsS3Key() string {
- if x != nil {
- return x.RootfsS3Key
- }
- return ""
-}
-
-func (x *CreateCheckpointResponse) GetWorkspaceS3Key() string {
- if x != nil {
- return x.WorkspaceS3Key
- }
- return ""
-}
-
-type RestoreCheckpointRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- CheckpointId string `protobuf:"bytes,2,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RestoreCheckpointRequest) Reset() {
- *x = RestoreCheckpointRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[42]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RestoreCheckpointRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RestoreCheckpointRequest) ProtoMessage() {}
-
-func (x *RestoreCheckpointRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[42]
- 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 RestoreCheckpointRequest.ProtoReflect.Descriptor instead.
-func (*RestoreCheckpointRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{42}
-}
-
-func (x *RestoreCheckpointRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *RestoreCheckpointRequest) GetCheckpointId() string {
- if x != nil {
- return x.CheckpointId
- }
- return ""
-}
-
-type RestoreCheckpointResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RestoreCheckpointResponse) Reset() {
- *x = RestoreCheckpointResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[43]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RestoreCheckpointResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RestoreCheckpointResponse) ProtoMessage() {}
-
-func (x *RestoreCheckpointResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[43]
- 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 RestoreCheckpointResponse.ProtoReflect.Descriptor instead.
-func (*RestoreCheckpointResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{43}
-}
-
-func (x *RestoreCheckpointResponse) GetSuccess() bool {
- if x != nil {
- return x.Success
- }
- return false
-}
-
-type SetSandboxLimitsRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- MaxPids int32 `protobuf:"varint,2,opt,name=max_pids,json=maxPids,proto3" json:"max_pids,omitempty"`
- MaxMemoryBytes int64 `protobuf:"varint,3,opt,name=max_memory_bytes,json=maxMemoryBytes,proto3" json:"max_memory_bytes,omitempty"`
- CpuMaxUsec int64 `protobuf:"varint,4,opt,name=cpu_max_usec,json=cpuMaxUsec,proto3" json:"cpu_max_usec,omitempty"`
- CpuPeriodUsec int64 `protobuf:"varint,5,opt,name=cpu_period_usec,json=cpuPeriodUsec,proto3" json:"cpu_period_usec,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SetSandboxLimitsRequest) Reset() {
- *x = SetSandboxLimitsRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[44]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SetSandboxLimitsRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SetSandboxLimitsRequest) ProtoMessage() {}
-
-func (x *SetSandboxLimitsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[44]
- 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 SetSandboxLimitsRequest.ProtoReflect.Descriptor instead.
-func (*SetSandboxLimitsRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{44}
-}
-
-func (x *SetSandboxLimitsRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *SetSandboxLimitsRequest) GetMaxPids() int32 {
- if x != nil {
- return x.MaxPids
- }
- return 0
-}
-
-func (x *SetSandboxLimitsRequest) GetMaxMemoryBytes() int64 {
- if x != nil {
- return x.MaxMemoryBytes
- }
- return 0
-}
-
-func (x *SetSandboxLimitsRequest) GetCpuMaxUsec() int64 {
- if x != nil {
- return x.CpuMaxUsec
- }
- return 0
-}
-
-func (x *SetSandboxLimitsRequest) GetCpuPeriodUsec() int64 {
- if x != nil {
- return x.CpuPeriodUsec
- }
- return 0
-}
-
-type SetSandboxLimitsResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *SetSandboxLimitsResponse) Reset() {
- *x = SetSandboxLimitsResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[45]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *SetSandboxLimitsResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*SetSandboxLimitsResponse) ProtoMessage() {}
-
-func (x *SetSandboxLimitsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[45]
- 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 SetSandboxLimitsResponse.ProtoReflect.Descriptor instead.
-func (*SetSandboxLimitsResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{45}
-}
-
-// Live migration messages
-type PreCopyDrivesRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- FlattenRootfs bool `protobuf:"varint,2,opt,name=flatten_rootfs,json=flattenRootfs,proto3" json:"flatten_rootfs,omitempty"` // if true, flatten qcow2 overlay before upload (cross-golden-version)
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PreCopyDrivesRequest) Reset() {
- *x = PreCopyDrivesRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[46]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PreCopyDrivesRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PreCopyDrivesRequest) ProtoMessage() {}
-
-func (x *PreCopyDrivesRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[46]
- 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 PreCopyDrivesRequest.ProtoReflect.Descriptor instead.
-func (*PreCopyDrivesRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{46}
-}
-
-func (x *PreCopyDrivesRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *PreCopyDrivesRequest) GetFlattenRootfs() bool {
- if x != nil {
- return x.FlattenRootfs
- }
- return false
-}
-
-type PreCopyDrivesResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- RootfsKey string `protobuf:"bytes,1,opt,name=rootfs_key,json=rootfsKey,proto3" json:"rootfs_key,omitempty"` // S3 key for rootfs qcow2
- WorkspaceKey string `protobuf:"bytes,2,opt,name=workspace_key,json=workspaceKey,proto3" json:"workspace_key,omitempty"` // S3 key for workspace qcow2
- GoldenVersion string `protobuf:"bytes,3,opt,name=golden_version,json=goldenVersion,proto3" json:"golden_version,omitempty"` // golden version the sandbox was created from
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PreCopyDrivesResponse) Reset() {
- *x = PreCopyDrivesResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[47]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PreCopyDrivesResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PreCopyDrivesResponse) ProtoMessage() {}
-
-func (x *PreCopyDrivesResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[47]
- 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 PreCopyDrivesResponse.ProtoReflect.Descriptor instead.
-func (*PreCopyDrivesResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{47}
-}
-
-func (x *PreCopyDrivesResponse) GetRootfsKey() string {
- if x != nil {
- return x.RootfsKey
- }
- return ""
-}
-
-func (x *PreCopyDrivesResponse) GetWorkspaceKey() string {
- if x != nil {
- return x.WorkspaceKey
- }
- return ""
-}
-
-func (x *PreCopyDrivesResponse) GetGoldenVersion() string {
- if x != nil {
- return x.GoldenVersion
- }
- return ""
-}
-
-type PrepareMigrationIncomingRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- RootfsPath string `protobuf:"bytes,2,opt,name=rootfs_path,json=rootfsPath,proto3" json:"rootfs_path,omitempty"` // local path to rootfs on target (pre-copied)
- WorkspacePath string `protobuf:"bytes,3,opt,name=workspace_path,json=workspacePath,proto3" json:"workspace_path,omitempty"` // local path to workspace on target (pre-copied)
- CpuCount int32 `protobuf:"varint,4,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"`
- MemoryMb int32 `protobuf:"varint,5,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"`
- GuestPort int32 `protobuf:"varint,6,opt,name=guest_port,json=guestPort,proto3" json:"guest_port,omitempty"`
- Template string `protobuf:"bytes,7,opt,name=template,proto3" json:"template,omitempty"`
- RootfsS3Key string `protobuf:"bytes,8,opt,name=rootfs_s3_key,json=rootfsS3Key,proto3" json:"rootfs_s3_key,omitempty"` // if set, download from S3 instead of using local rootfs_path
- WorkspaceS3Key string `protobuf:"bytes,9,opt,name=workspace_s3_key,json=workspaceS3Key,proto3" json:"workspace_s3_key,omitempty"` // if set, download from S3 instead of using local workspace_path
- OverlayMode bool `protobuf:"varint,10,opt,name=overlay_mode,json=overlayMode,proto3" json:"overlay_mode,omitempty"` // if true, rootfs is thin overlay — rebase to local golden on target
- TargetMemoryMb int32 `protobuf:"varint,11,opt,name=target_memory_mb,json=targetMemoryMb,proto3" json:"target_memory_mb,omitempty"` // final memory after scale — worker checks capacity and reserves atomically
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PrepareMigrationIncomingRequest) Reset() {
- *x = PrepareMigrationIncomingRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[48]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PrepareMigrationIncomingRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PrepareMigrationIncomingRequest) ProtoMessage() {}
-
-func (x *PrepareMigrationIncomingRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[48]
- 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 PrepareMigrationIncomingRequest.ProtoReflect.Descriptor instead.
-func (*PrepareMigrationIncomingRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{48}
-}
-
-func (x *PrepareMigrationIncomingRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *PrepareMigrationIncomingRequest) GetRootfsPath() string {
- if x != nil {
- return x.RootfsPath
- }
- return ""
-}
-
-func (x *PrepareMigrationIncomingRequest) GetWorkspacePath() string {
- if x != nil {
- return x.WorkspacePath
- }
- return ""
-}
-
-func (x *PrepareMigrationIncomingRequest) GetCpuCount() int32 {
- if x != nil {
- return x.CpuCount
- }
- return 0
-}
-
-func (x *PrepareMigrationIncomingRequest) GetMemoryMb() int32 {
- if x != nil {
- return x.MemoryMb
- }
- return 0
-}
-
-func (x *PrepareMigrationIncomingRequest) GetGuestPort() int32 {
- if x != nil {
- return x.GuestPort
- }
- return 0
-}
-
-func (x *PrepareMigrationIncomingRequest) GetTemplate() string {
- if x != nil {
- return x.Template
- }
- return ""
-}
-
-func (x *PrepareMigrationIncomingRequest) GetRootfsS3Key() string {
- if x != nil {
- return x.RootfsS3Key
- }
- return ""
-}
-
-func (x *PrepareMigrationIncomingRequest) GetWorkspaceS3Key() string {
- if x != nil {
- return x.WorkspaceS3Key
- }
- return ""
-}
-
-func (x *PrepareMigrationIncomingRequest) GetOverlayMode() bool {
- if x != nil {
- return x.OverlayMode
- }
- return false
-}
-
-func (x *PrepareMigrationIncomingRequest) GetTargetMemoryMb() int32 {
- if x != nil {
- return x.TargetMemoryMb
- }
- return 0
-}
-
-type PrepareMigrationIncomingResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- IncomingAddr string `protobuf:"bytes,1,opt,name=incoming_addr,json=incomingAddr,proto3" json:"incoming_addr,omitempty"` // TCP address for source to migrate to (e.g. "10.100.1.7:49152")
- HostPort int32 `protobuf:"varint,2,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"` // mapped host port on target worker
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *PrepareMigrationIncomingResponse) Reset() {
- *x = PrepareMigrationIncomingResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[49]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *PrepareMigrationIncomingResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*PrepareMigrationIncomingResponse) ProtoMessage() {}
-
-func (x *PrepareMigrationIncomingResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[49]
- 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 PrepareMigrationIncomingResponse.ProtoReflect.Descriptor instead.
-func (*PrepareMigrationIncomingResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{49}
-}
-
-func (x *PrepareMigrationIncomingResponse) GetIncomingAddr() string {
- if x != nil {
- return x.IncomingAddr
- }
- return ""
-}
-
-func (x *PrepareMigrationIncomingResponse) GetHostPort() int32 {
- if x != nil {
- return x.HostPort
- }
- return 0
-}
-
-type LiveMigrateRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- SandboxId string `protobuf:"bytes,1,opt,name=sandbox_id,json=sandboxId,proto3" json:"sandbox_id,omitempty"`
- IncomingAddr string `protobuf:"bytes,2,opt,name=incoming_addr,json=incomingAddr,proto3" json:"incoming_addr,omitempty"` // TCP address from PrepareMigrationIncoming
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *LiveMigrateRequest) Reset() {
- *x = LiveMigrateRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[50]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *LiveMigrateRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*LiveMigrateRequest) ProtoMessage() {}
-
-func (x *LiveMigrateRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[50]
- 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 LiveMigrateRequest.ProtoReflect.Descriptor instead.
-func (*LiveMigrateRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{50}
-}
-
-func (x *LiveMigrateRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-func (x *LiveMigrateRequest) GetIncomingAddr() string {
- if x != nil {
- return x.IncomingAddr
- }
- return ""
-}
-
-type LiveMigrateResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *LiveMigrateResponse) Reset() {
- *x = LiveMigrateResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[51]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *LiveMigrateResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*LiveMigrateResponse) ProtoMessage() {}
-
-func (x *LiveMigrateResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[51]
- 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 LiveMigrateResponse.ProtoReflect.Descriptor instead.
-func (*LiveMigrateResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{51}
-}
-
-type CompleteMigrationIncomingRequest 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 *CompleteMigrationIncomingRequest) Reset() {
- *x = CompleteMigrationIncomingRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[52]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CompleteMigrationIncomingRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CompleteMigrationIncomingRequest) ProtoMessage() {}
-
-func (x *CompleteMigrationIncomingRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[52]
- 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 CompleteMigrationIncomingRequest.ProtoReflect.Descriptor instead.
-func (*CompleteMigrationIncomingRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{52}
-}
-
-func (x *CompleteMigrationIncomingRequest) GetSandboxId() string {
- if x != nil {
- return x.SandboxId
- }
- return ""
-}
-
-type CompleteMigrationIncomingResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *CompleteMigrationIncomingResponse) Reset() {
- *x = CompleteMigrationIncomingResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[53]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *CompleteMigrationIncomingResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*CompleteMigrationIncomingResponse) ProtoMessage() {}
-
-func (x *CompleteMigrationIncomingResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[53]
- 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 CompleteMigrationIncomingResponse.ProtoReflect.Descriptor instead.
-func (*CompleteMigrationIncomingResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{53}
-}
-
-// Golden snapshot management
-type RebuildGoldenSnapshotRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RebuildGoldenSnapshotRequest) Reset() {
- *x = RebuildGoldenSnapshotRequest{}
- mi := &file_proto_worker_worker_proto_msgTypes[54]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RebuildGoldenSnapshotRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RebuildGoldenSnapshotRequest) ProtoMessage() {}
-
-func (x *RebuildGoldenSnapshotRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[54]
- 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 RebuildGoldenSnapshotRequest.ProtoReflect.Descriptor instead.
-func (*RebuildGoldenSnapshotRequest) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{54}
-}
-
-type RebuildGoldenSnapshotResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- OldVersion string `protobuf:"bytes,1,opt,name=old_version,json=oldVersion,proto3" json:"old_version,omitempty"` // previous golden version (empty if none)
- NewVersion string `protobuf:"bytes,2,opt,name=new_version,json=newVersion,proto3" json:"new_version,omitempty"` // new golden version after rebuild
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *RebuildGoldenSnapshotResponse) Reset() {
- *x = RebuildGoldenSnapshotResponse{}
- mi := &file_proto_worker_worker_proto_msgTypes[55]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *RebuildGoldenSnapshotResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*RebuildGoldenSnapshotResponse) ProtoMessage() {}
-
-func (x *RebuildGoldenSnapshotResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_worker_worker_proto_msgTypes[55]
- 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 RebuildGoldenSnapshotResponse.ProtoReflect.Descriptor instead.
-func (*RebuildGoldenSnapshotResponse) Descriptor() ([]byte, []int) {
- return file_proto_worker_worker_proto_rawDescGZIP(), []int{55}
-}
-
-func (x *RebuildGoldenSnapshotResponse) GetOldVersion() string {
- if x != nil {
- return x.OldVersion
- }
- return ""
-}
-
-func (x *RebuildGoldenSnapshotResponse) GetNewVersion() string {
- if x != nil {
- return x.NewVersion
- }
- return ""
-}
-
-var File_proto_worker_worker_proto protoreflect.FileDescriptor
-
-const file_proto_worker_worker_proto_rawDesc = "" +
- "\n" +
- "\x19proto/worker/worker.proto\x12\x06worker\"\xd9\x05\n" +
- "\x14CreateSandboxRequest\x12\x1a\n" +
- "\btemplate\x18\x01 \x01(\tR\btemplate\x12\x18\n" +
- "\atimeout\x18\x02 \x01(\x05R\atimeout\x12:\n" +
- "\x04envs\x18\x03 \x03(\v2&.worker.CreateSandboxRequest.EnvsEntryR\x04envs\x12\x1b\n" +
- "\tmemory_mb\x18\x04 \x01(\x05R\bmemoryMb\x12\x1b\n" +
- "\tcpu_count\x18\x05 \x01(\x05R\bcpuCount\x12'\n" +
- "\x0fnetwork_enabled\x18\x06 \x01(\bR\x0enetworkEnabled\x12\x1b\n" +
- "\timage_ref\x18\a \x01(\tR\bimageRef\x12\x12\n" +
- "\x04port\x18\b \x01(\x05R\x04port\x12.\n" +
- "\x13template_rootfs_key\x18\t \x01(\tR\x11templateRootfsKey\x124\n" +
- "\x16template_workspace_key\x18\n" +
- " \x01(\tR\x14templateWorkspaceKey\x12#\n" +
- "\rcheckpoint_id\x18\v \x01(\tR\fcheckpointId\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\f \x01(\tR\tsandboxId\x12)\n" +
- "\x10egress_allowlist\x18\r \x03(\tR\x0fegressAllowlist\x12f\n" +
- "\x14secret_allowed_hosts\x18\x0e \x03(\v24.worker.CreateSandboxRequest.SecretAllowedHostsEntryR\x12secretAllowedHosts\x1a7\n" +
- "\tEnvsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1aE\n" +
- "\x17SecretAllowedHostsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"N\n" +
- "\x15CreateSandboxResponse\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x16\n" +
- "\x06status\x18\x02 \x01(\tR\x06status\"6\n" +
- "\x15DestroySandboxRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"\x18\n" +
- "\x16DestroySandboxResponse\"2\n" +
- "\x11GetSandboxRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"\x9d\x01\n" +
- "\x12GetSandboxResponse\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x16\n" +
- "\x06status\x18\x02 \x01(\tR\x06status\x12\x1a\n" +
- "\btemplate\x18\x03 \x01(\tR\btemplate\x12\x1d\n" +
- "\n" +
- "started_at\x18\x04 \x01(\x03R\tstartedAt\x12\x15\n" +
- "\x06end_at\x18\x05 \x01(\x03R\x05endAt\"\x16\n" +
- "\x14ListSandboxesRequest\"Q\n" +
- "\x15ListSandboxesResponse\x128\n" +
- "\tsandboxes\x18\x01 \x03(\v2\x1a.worker.GetSandboxResponseR\tsandboxes\"\x80\x02\n" +
- "\x12ExecCommandRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x18\n" +
- "\acommand\x18\x02 \x01(\tR\acommand\x12\x12\n" +
- "\x04args\x18\x03 \x03(\tR\x04args\x128\n" +
- "\x04envs\x18\x04 \x03(\v2$.worker.ExecCommandRequest.EnvsEntryR\x04envs\x12\x10\n" +
- "\x03cwd\x18\x05 \x01(\tR\x03cwd\x12\x18\n" +
- "\atimeout\x18\x06 \x01(\x05R\atimeout\x1a7\n" +
- "\tEnvsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"b\n" +
- "\x13ExecCommandResponse\x12\x1b\n" +
- "\texit_code\x18\x01 \x01(\x05R\bexitCode\x12\x16\n" +
- "\x06stdout\x18\x02 \x01(\tR\x06stdout\x12\x16\n" +
- "\x06stderr\x18\x03 \x01(\tR\x06stderr\"\x7f\n" +
- "\x0fExecOutputChunk\x126\n" +
- "\x06stream\x18\x01 \x01(\x0e2\x1e.worker.ExecOutputChunk.StreamR\x06stream\x12\x12\n" +
- "\x04data\x18\x02 \x01(\fR\x04data\" \n" +
- "\x06Stream\x12\n" +
- "\n" +
- "\x06STDOUT\x10\x00\x12\n" +
- "\n" +
- "\x06STDERR\x10\x01\"D\n" +
- "\x0fReadFileRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x12\n" +
- "\x04path\x18\x02 \x01(\tR\x04path\",\n" +
- "\x10ReadFileResponse\x12\x18\n" +
- "\acontent\x18\x01 \x01(\fR\acontent\"_\n" +
- "\x10WriteFileRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x12\n" +
- "\x04path\x18\x02 \x01(\tR\x04path\x12\x18\n" +
- "\acontent\x18\x03 \x01(\fR\acontent\"\x13\n" +
- "\x11WriteFileResponse\"C\n" +
- "\x0eListDirRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x12\n" +
- "\x04path\x18\x02 \x01(\tR\x04path\"]\n" +
- "\bDirEntry\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12\x15\n" +
- "\x06is_dir\x18\x02 \x01(\bR\x05isDir\x12\x12\n" +
- "\x04size\x18\x03 \x01(\x03R\x04size\x12\x12\n" +
- "\x04path\x18\x04 \x01(\tR\x04path\"=\n" +
- "\x0fListDirResponse\x12*\n" +
- "\aentries\x18\x01 \x03(\v2\x10.worker.DirEntryR\aentries\"o\n" +
- "\x10CreatePTYRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x12\n" +
- "\x04cols\x18\x02 \x01(\x05R\x04cols\x12\x12\n" +
- "\x04rows\x18\x03 \x01(\x05R\x04rows\x12\x14\n" +
- "\x05shell\x18\x04 \x01(\tR\x05shell\"2\n" +
- "\x11CreatePTYResponse\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\"u\n" +
- "\bPTYInput\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\x12\x14\n" +
- "\x04data\x18\x02 \x01(\fH\x00R\x04data\x12+\n" +
- "\x06resize\x18\x03 \x01(\v2\x11.worker.PTYResizeH\x00R\x06resizeB\a\n" +
- "\x05input\"3\n" +
- "\tPTYResize\x12\x12\n" +
- "\x04cols\x18\x01 \x01(\x05R\x04cols\x12\x12\n" +
- "\x04rows\x18\x02 \x01(\x05R\x04rows\">\n" +
- "\tPTYOutput\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\x12\x12\n" +
- "\x04data\x18\x02 \x01(\fR\x04data\"8\n" +
- "\x17HibernateSandboxRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"\x7f\n" +
- "\x18HibernateSandboxResponse\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12%\n" +
- "\x0echeckpoint_key\x18\x02 \x01(\tR\rcheckpointKey\x12\x1d\n" +
- "\n" +
- "size_bytes\x18\x03 \x01(\x03R\tsizeBytes\"t\n" +
- "\x12WakeSandboxRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12%\n" +
- "\x0echeckpoint_key\x18\x02 \x01(\tR\rcheckpointKey\x12\x18\n" +
- "\atimeout\x18\x03 \x01(\x05R\atimeout\"L\n" +
- "\x13WakeSandboxResponse\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x16\n" +
- "\x06status\x18\x02 \x01(\tR\x06status\"W\n" +
- "\x15SaveAsTemplateRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x1f\n" +
- "\vtemplate_id\x18\x02 \x01(\tR\n" +
- "templateId\"f\n" +
- "\x16SaveAsTemplateResponse\x12\"\n" +
- "\rrootfs_s3_key\x18\x01 \x01(\tR\vrootfsS3Key\x12(\n" +
- "\x10workspace_s3_key\x18\x02 \x01(\tR\x0eworkspaceS3Key\"\x80\x01\n" +
- "\x14BuildTemplateRequest\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" +
- "\n" +
- "dockerfile\x18\x02 \x01(\tR\n" +
- "dockerfile\x12\x10\n" +
- "\x03tag\x18\x03 \x01(\tR\x03tag\x12\"\n" +
- "\recr_image_ref\x18\x04 \x01(\tR\vecrImageRef\"Q\n" +
- "\x15BuildTemplateResponse\x12\x1b\n" +
- "\timage_ref\x18\x01 \x01(\tR\bimageRef\x12\x1b\n" +
- "\tbuild_log\x18\x02 \x01(\tR\bbuildLog\"\xd4\x02\n" +
- "\x18ExecSessionCreateRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x18\n" +
- "\acommand\x18\x02 \x01(\tR\acommand\x12\x12\n" +
- "\x04args\x18\x03 \x03(\tR\x04args\x12>\n" +
- "\x04envs\x18\x04 \x03(\v2*.worker.ExecSessionCreateRequest.EnvsEntryR\x04envs\x12\x10\n" +
- "\x03cwd\x18\x05 \x01(\tR\x03cwd\x12'\n" +
- "\x0ftimeout_seconds\x18\x06 \x01(\x05R\x0etimeoutSeconds\x127\n" +
- "\x18max_run_after_disconnect\x18\a \x01(\x05R\x15maxRunAfterDisconnect\x1a7\n" +
- "\tEnvsEntry\x12\x10\n" +
- "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
- "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
- "\x19ExecSessionCreateResponse\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\"7\n" +
- "\x16ExecSessionListRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"S\n" +
- "\x17ExecSessionListResponse\x128\n" +
- "\bsessions\x18\x01 \x03(\v2\x1c.worker.ExecSessionInfoEntryR\bsessions\"\xe4\x01\n" +
- "\x14ExecSessionInfoEntry\x12\x1d\n" +
- "\n" +
- "session_id\x18\x01 \x01(\tR\tsessionId\x12\x18\n" +
- "\acommand\x18\x02 \x01(\tR\acommand\x12\x12\n" +
- "\x04args\x18\x03 \x03(\tR\x04args\x12\x18\n" +
- "\arunning\x18\x04 \x01(\bR\arunning\x12\x1b\n" +
- "\texit_code\x18\x05 \x01(\x05R\bexitCode\x12\x1d\n" +
- "\n" +
- "started_at\x18\x06 \x01(\x03R\tstartedAt\x12)\n" +
- "\x10attached_clients\x18\a \x01(\x05R\x0fattachedClients\"n\n" +
- "\x16ExecSessionKillRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x1d\n" +
- "\n" +
- "session_id\x18\x02 \x01(\tR\tsessionId\x12\x16\n" +
- "\x06signal\x18\x03 \x01(\x05R\x06signal\"\x19\n" +
- "\x17ExecSessionKillResponse\"7\n" +
- "\x16GetSandboxStatsRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"\xc4\x01\n" +
- "\x17GetSandboxStatsResponse\x12\x1f\n" +
- "\vcpu_percent\x18\x01 \x01(\x01R\n" +
- "cpuPercent\x12\x1b\n" +
- "\tmem_usage\x18\x02 \x01(\x04R\bmemUsage\x12\x1b\n" +
- "\tmem_limit\x18\x03 \x01(\x04R\bmemLimit\x12\x1b\n" +
- "\tnet_input\x18\x04 \x01(\x04R\bnetInput\x12\x1d\n" +
- "\n" +
- "net_output\x18\x05 \x01(\x04R\tnetOutput\x12\x12\n" +
- "\x04pids\x18\x06 \x01(\x05R\x04pids\"\x84\x01\n" +
- "\x17CreateCheckpointRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12#\n" +
- "\rcheckpoint_id\x18\x02 \x01(\tR\fcheckpointId\x12%\n" +
- "\x0eprepare_golden\x18\x03 \x01(\bR\rprepareGolden\"h\n" +
- "\x18CreateCheckpointResponse\x12\"\n" +
- "\rrootfs_s3_key\x18\x01 \x01(\tR\vrootfsS3Key\x12(\n" +
- "\x10workspace_s3_key\x18\x02 \x01(\tR\x0eworkspaceS3Key\"^\n" +
- "\x18RestoreCheckpointRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12#\n" +
- "\rcheckpoint_id\x18\x02 \x01(\tR\fcheckpointId\"5\n" +
- "\x19RestoreCheckpointResponse\x12\x18\n" +
- "\asuccess\x18\x01 \x01(\bR\asuccess\"\xc7\x01\n" +
- "\x17SetSandboxLimitsRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x19\n" +
- "\bmax_pids\x18\x02 \x01(\x05R\amaxPids\x12(\n" +
- "\x10max_memory_bytes\x18\x03 \x01(\x03R\x0emaxMemoryBytes\x12 \n" +
- "\fcpu_max_usec\x18\x04 \x01(\x03R\n" +
- "cpuMaxUsec\x12&\n" +
- "\x0fcpu_period_usec\x18\x05 \x01(\x03R\rcpuPeriodUsec\"\x1a\n" +
- "\x18SetSandboxLimitsResponse\"\\\n" +
- "\x14PreCopyDrivesRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12%\n" +
- "\x0eflatten_rootfs\x18\x02 \x01(\bR\rflattenRootfs\"\x82\x01\n" +
- "\x15PreCopyDrivesResponse\x12\x1d\n" +
- "\n" +
- "rootfs_key\x18\x01 \x01(\tR\trootfsKey\x12#\n" +
- "\rworkspace_key\x18\x02 \x01(\tR\fworkspaceKey\x12%\n" +
- "\x0egolden_version\x18\x03 \x01(\tR\rgoldenVersion\"\x98\x03\n" +
- "\x1fPrepareMigrationIncomingRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12\x1f\n" +
- "\vrootfs_path\x18\x02 \x01(\tR\n" +
- "rootfsPath\x12%\n" +
- "\x0eworkspace_path\x18\x03 \x01(\tR\rworkspacePath\x12\x1b\n" +
- "\tcpu_count\x18\x04 \x01(\x05R\bcpuCount\x12\x1b\n" +
- "\tmemory_mb\x18\x05 \x01(\x05R\bmemoryMb\x12\x1d\n" +
- "\n" +
- "guest_port\x18\x06 \x01(\x05R\tguestPort\x12\x1a\n" +
- "\btemplate\x18\a \x01(\tR\btemplate\x12\"\n" +
- "\rrootfs_s3_key\x18\b \x01(\tR\vrootfsS3Key\x12(\n" +
- "\x10workspace_s3_key\x18\t \x01(\tR\x0eworkspaceS3Key\x12!\n" +
- "\foverlay_mode\x18\n" +
- " \x01(\bR\voverlayMode\x12(\n" +
- "\x10target_memory_mb\x18\v \x01(\x05R\x0etargetMemoryMb\"d\n" +
- " PrepareMigrationIncomingResponse\x12#\n" +
- "\rincoming_addr\x18\x01 \x01(\tR\fincomingAddr\x12\x1b\n" +
- "\thost_port\x18\x02 \x01(\x05R\bhostPort\"X\n" +
- "\x12LiveMigrateRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\x12#\n" +
- "\rincoming_addr\x18\x02 \x01(\tR\fincomingAddr\"\x15\n" +
- "\x13LiveMigrateResponse\"A\n" +
- " CompleteMigrationIncomingRequest\x12\x1d\n" +
- "\n" +
- "sandbox_id\x18\x01 \x01(\tR\tsandboxId\"#\n" +
- "!CompleteMigrationIncomingResponse\"\x1e\n" +
- "\x1cRebuildGoldenSnapshotRequest\"a\n" +
- "\x1dRebuildGoldenSnapshotResponse\x12\x1f\n" +
- "\vold_version\x18\x01 \x01(\tR\n" +
- "oldVersion\x12\x1f\n" +
- "\vnew_version\x18\x02 \x01(\tR\n" +
- "newVersion2\x83\x11\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" +
- "\n" +
- "GetSandbox\x12\x19.worker.GetSandboxRequest\x1a\x1a.worker.GetSandboxResponse\x12L\n" +
- "\rListSandboxes\x12\x1c.worker.ListSandboxesRequest\x1a\x1d.worker.ListSandboxesResponse\x12F\n" +
- "\vExecCommand\x12\x1a.worker.ExecCommandRequest\x1a\x1b.worker.ExecCommandResponse\x12J\n" +
- "\x11ExecCommandStream\x12\x1a.worker.ExecCommandRequest\x1a\x17.worker.ExecOutputChunk0\x01\x12=\n" +
- "\bReadFile\x12\x17.worker.ReadFileRequest\x1a\x18.worker.ReadFileResponse\x12@\n" +
- "\tWriteFile\x12\x18.worker.WriteFileRequest\x1a\x19.worker.WriteFileResponse\x12:\n" +
- "\aListDir\x12\x16.worker.ListDirRequest\x1a\x17.worker.ListDirResponse\x12@\n" +
- "\tCreatePTY\x12\x18.worker.CreatePTYRequest\x1a\x19.worker.CreatePTYResponse\x124\n" +
- "\tPTYStream\x12\x10.worker.PTYInput\x1a\x11.worker.PTYOutput(\x010\x01\x12X\n" +
- "\x11ExecSessionCreate\x12 .worker.ExecSessionCreateRequest\x1a!.worker.ExecSessionCreateResponse\x12R\n" +
- "\x0fExecSessionList\x12\x1e.worker.ExecSessionListRequest\x1a\x1f.worker.ExecSessionListResponse\x12R\n" +
- "\x0fExecSessionKill\x12\x1e.worker.ExecSessionKillRequest\x1a\x1f.worker.ExecSessionKillResponse\x12U\n" +
- "\x10HibernateSandbox\x12\x1f.worker.HibernateSandboxRequest\x1a .worker.HibernateSandboxResponse\x12F\n" +
- "\vWakeSandbox\x12\x1a.worker.WakeSandboxRequest\x1a\x1b.worker.WakeSandboxResponse\x12O\n" +
- "\x0eSaveAsTemplate\x12\x1d.worker.SaveAsTemplateRequest\x1a\x1e.worker.SaveAsTemplateResponse\x12U\n" +
- "\x10CreateCheckpoint\x12\x1f.worker.CreateCheckpointRequest\x1a .worker.CreateCheckpointResponse\x12X\n" +
- "\x11RestoreCheckpoint\x12 .worker.RestoreCheckpointRequest\x1a!.worker.RestoreCheckpointResponse\x12L\n" +
- "\rBuildTemplate\x12\x1c.worker.BuildTemplateRequest\x1a\x1d.worker.BuildTemplateResponse\x12R\n" +
- "\x0fGetSandboxStats\x12\x1e.worker.GetSandboxStatsRequest\x1a\x1f.worker.GetSandboxStatsResponse\x12U\n" +
- "\x10SetSandboxLimits\x12\x1f.worker.SetSandboxLimitsRequest\x1a .worker.SetSandboxLimitsResponse\x12L\n" +
- "\rPreCopyDrives\x12\x1c.worker.PreCopyDrivesRequest\x1a\x1d.worker.PreCopyDrivesResponse\x12m\n" +
- "\x18PrepareMigrationIncoming\x12'.worker.PrepareMigrationIncomingRequest\x1a(.worker.PrepareMigrationIncomingResponse\x12F\n" +
- "\vLiveMigrate\x12\x1a.worker.LiveMigrateRequest\x1a\x1b.worker.LiveMigrateResponse\x12p\n" +
- "\x19CompleteMigrationIncoming\x12(.worker.CompleteMigrationIncomingRequest\x1a).worker.CompleteMigrationIncomingResponse\x12d\n" +
- "\x15RebuildGoldenSnapshot\x12$.worker.RebuildGoldenSnapshotRequest\x1a%.worker.RebuildGoldenSnapshotResponseB1Z/github.com/opensandbox/opensandbox/proto/workerb\x06proto3"
-
-var (
- file_proto_worker_worker_proto_rawDescOnce sync.Once
- file_proto_worker_worker_proto_rawDescData []byte
-)
-
-func file_proto_worker_worker_proto_rawDescGZIP() []byte {
- file_proto_worker_worker_proto_rawDescOnce.Do(func() {
- file_proto_worker_worker_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_worker_worker_proto_rawDesc), len(file_proto_worker_worker_proto_rawDesc)))
- })
- return file_proto_worker_worker_proto_rawDescData
-}
-
-var file_proto_worker_worker_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
-var file_proto_worker_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 60)
-var file_proto_worker_worker_proto_goTypes = []any{
- (ExecOutputChunk_Stream)(0), // 0: worker.ExecOutputChunk.Stream
- (*CreateSandboxRequest)(nil), // 1: worker.CreateSandboxRequest
- (*CreateSandboxResponse)(nil), // 2: worker.CreateSandboxResponse
- (*DestroySandboxRequest)(nil), // 3: worker.DestroySandboxRequest
- (*DestroySandboxResponse)(nil), // 4: worker.DestroySandboxResponse
- (*GetSandboxRequest)(nil), // 5: worker.GetSandboxRequest
- (*GetSandboxResponse)(nil), // 6: worker.GetSandboxResponse
- (*ListSandboxesRequest)(nil), // 7: worker.ListSandboxesRequest
- (*ListSandboxesResponse)(nil), // 8: worker.ListSandboxesResponse
- (*ExecCommandRequest)(nil), // 9: worker.ExecCommandRequest
- (*ExecCommandResponse)(nil), // 10: worker.ExecCommandResponse
- (*ExecOutputChunk)(nil), // 11: worker.ExecOutputChunk
- (*ReadFileRequest)(nil), // 12: worker.ReadFileRequest
- (*ReadFileResponse)(nil), // 13: worker.ReadFileResponse
- (*WriteFileRequest)(nil), // 14: worker.WriteFileRequest
- (*WriteFileResponse)(nil), // 15: worker.WriteFileResponse
- (*ListDirRequest)(nil), // 16: worker.ListDirRequest
- (*DirEntry)(nil), // 17: worker.DirEntry
- (*ListDirResponse)(nil), // 18: worker.ListDirResponse
- (*CreatePTYRequest)(nil), // 19: worker.CreatePTYRequest
- (*CreatePTYResponse)(nil), // 20: worker.CreatePTYResponse
- (*PTYInput)(nil), // 21: worker.PTYInput
- (*PTYResize)(nil), // 22: worker.PTYResize
- (*PTYOutput)(nil), // 23: worker.PTYOutput
- (*HibernateSandboxRequest)(nil), // 24: worker.HibernateSandboxRequest
- (*HibernateSandboxResponse)(nil), // 25: worker.HibernateSandboxResponse
- (*WakeSandboxRequest)(nil), // 26: worker.WakeSandboxRequest
- (*WakeSandboxResponse)(nil), // 27: worker.WakeSandboxResponse
- (*SaveAsTemplateRequest)(nil), // 28: worker.SaveAsTemplateRequest
- (*SaveAsTemplateResponse)(nil), // 29: worker.SaveAsTemplateResponse
- (*BuildTemplateRequest)(nil), // 30: worker.BuildTemplateRequest
- (*BuildTemplateResponse)(nil), // 31: worker.BuildTemplateResponse
- (*ExecSessionCreateRequest)(nil), // 32: worker.ExecSessionCreateRequest
- (*ExecSessionCreateResponse)(nil), // 33: worker.ExecSessionCreateResponse
- (*ExecSessionListRequest)(nil), // 34: worker.ExecSessionListRequest
- (*ExecSessionListResponse)(nil), // 35: worker.ExecSessionListResponse
- (*ExecSessionInfoEntry)(nil), // 36: worker.ExecSessionInfoEntry
- (*ExecSessionKillRequest)(nil), // 37: worker.ExecSessionKillRequest
- (*ExecSessionKillResponse)(nil), // 38: worker.ExecSessionKillResponse
- (*GetSandboxStatsRequest)(nil), // 39: worker.GetSandboxStatsRequest
- (*GetSandboxStatsResponse)(nil), // 40: worker.GetSandboxStatsResponse
- (*CreateCheckpointRequest)(nil), // 41: worker.CreateCheckpointRequest
- (*CreateCheckpointResponse)(nil), // 42: worker.CreateCheckpointResponse
- (*RestoreCheckpointRequest)(nil), // 43: worker.RestoreCheckpointRequest
- (*RestoreCheckpointResponse)(nil), // 44: worker.RestoreCheckpointResponse
- (*SetSandboxLimitsRequest)(nil), // 45: worker.SetSandboxLimitsRequest
- (*SetSandboxLimitsResponse)(nil), // 46: worker.SetSandboxLimitsResponse
- (*PreCopyDrivesRequest)(nil), // 47: worker.PreCopyDrivesRequest
- (*PreCopyDrivesResponse)(nil), // 48: worker.PreCopyDrivesResponse
- (*PrepareMigrationIncomingRequest)(nil), // 49: worker.PrepareMigrationIncomingRequest
- (*PrepareMigrationIncomingResponse)(nil), // 50: worker.PrepareMigrationIncomingResponse
- (*LiveMigrateRequest)(nil), // 51: worker.LiveMigrateRequest
- (*LiveMigrateResponse)(nil), // 52: worker.LiveMigrateResponse
- (*CompleteMigrationIncomingRequest)(nil), // 53: worker.CompleteMigrationIncomingRequest
- (*CompleteMigrationIncomingResponse)(nil), // 54: worker.CompleteMigrationIncomingResponse
- (*RebuildGoldenSnapshotRequest)(nil), // 55: worker.RebuildGoldenSnapshotRequest
- (*RebuildGoldenSnapshotResponse)(nil), // 56: worker.RebuildGoldenSnapshotResponse
- nil, // 57: worker.CreateSandboxRequest.EnvsEntry
- nil, // 58: worker.CreateSandboxRequest.SecretAllowedHostsEntry
- nil, // 59: worker.ExecCommandRequest.EnvsEntry
- nil, // 60: worker.ExecSessionCreateRequest.EnvsEntry
-}
-var file_proto_worker_worker_proto_depIdxs = []int32{
- 57, // 0: worker.CreateSandboxRequest.envs:type_name -> worker.CreateSandboxRequest.EnvsEntry
- 58, // 1: worker.CreateSandboxRequest.secret_allowed_hosts:type_name -> worker.CreateSandboxRequest.SecretAllowedHostsEntry
- 6, // 2: worker.ListSandboxesResponse.sandboxes:type_name -> worker.GetSandboxResponse
- 59, // 3: worker.ExecCommandRequest.envs:type_name -> worker.ExecCommandRequest.EnvsEntry
- 0, // 4: worker.ExecOutputChunk.stream:type_name -> worker.ExecOutputChunk.Stream
- 17, // 5: worker.ListDirResponse.entries:type_name -> worker.DirEntry
- 22, // 6: worker.PTYInput.resize:type_name -> worker.PTYResize
- 60, // 7: worker.ExecSessionCreateRequest.envs:type_name -> worker.ExecSessionCreateRequest.EnvsEntry
- 36, // 8: worker.ExecSessionListResponse.sessions:type_name -> worker.ExecSessionInfoEntry
- 1, // 9: worker.SandboxWorker.CreateSandbox:input_type -> worker.CreateSandboxRequest
- 3, // 10: worker.SandboxWorker.DestroySandbox:input_type -> worker.DestroySandboxRequest
- 5, // 11: worker.SandboxWorker.GetSandbox:input_type -> worker.GetSandboxRequest
- 7, // 12: worker.SandboxWorker.ListSandboxes:input_type -> worker.ListSandboxesRequest
- 9, // 13: worker.SandboxWorker.ExecCommand:input_type -> worker.ExecCommandRequest
- 9, // 14: worker.SandboxWorker.ExecCommandStream:input_type -> worker.ExecCommandRequest
- 12, // 15: worker.SandboxWorker.ReadFile:input_type -> worker.ReadFileRequest
- 14, // 16: worker.SandboxWorker.WriteFile:input_type -> worker.WriteFileRequest
- 16, // 17: worker.SandboxWorker.ListDir:input_type -> worker.ListDirRequest
- 19, // 18: worker.SandboxWorker.CreatePTY:input_type -> worker.CreatePTYRequest
- 21, // 19: worker.SandboxWorker.PTYStream:input_type -> worker.PTYInput
- 32, // 20: worker.SandboxWorker.ExecSessionCreate:input_type -> worker.ExecSessionCreateRequest
- 34, // 21: worker.SandboxWorker.ExecSessionList:input_type -> worker.ExecSessionListRequest
- 37, // 22: worker.SandboxWorker.ExecSessionKill:input_type -> worker.ExecSessionKillRequest
- 24, // 23: worker.SandboxWorker.HibernateSandbox:input_type -> worker.HibernateSandboxRequest
- 26, // 24: worker.SandboxWorker.WakeSandbox:input_type -> worker.WakeSandboxRequest
- 28, // 25: worker.SandboxWorker.SaveAsTemplate:input_type -> worker.SaveAsTemplateRequest
- 41, // 26: worker.SandboxWorker.CreateCheckpoint:input_type -> worker.CreateCheckpointRequest
- 43, // 27: worker.SandboxWorker.RestoreCheckpoint:input_type -> worker.RestoreCheckpointRequest
- 30, // 28: worker.SandboxWorker.BuildTemplate:input_type -> worker.BuildTemplateRequest
- 39, // 29: worker.SandboxWorker.GetSandboxStats:input_type -> worker.GetSandboxStatsRequest
- 45, // 30: worker.SandboxWorker.SetSandboxLimits:input_type -> worker.SetSandboxLimitsRequest
- 47, // 31: worker.SandboxWorker.PreCopyDrives:input_type -> worker.PreCopyDrivesRequest
- 49, // 32: worker.SandboxWorker.PrepareMigrationIncoming:input_type -> worker.PrepareMigrationIncomingRequest
- 51, // 33: worker.SandboxWorker.LiveMigrate:input_type -> worker.LiveMigrateRequest
- 53, // 34: worker.SandboxWorker.CompleteMigrationIncoming:input_type -> worker.CompleteMigrationIncomingRequest
- 55, // 35: worker.SandboxWorker.RebuildGoldenSnapshot:input_type -> worker.RebuildGoldenSnapshotRequest
- 2, // 36: worker.SandboxWorker.CreateSandbox:output_type -> worker.CreateSandboxResponse
- 4, // 37: worker.SandboxWorker.DestroySandbox:output_type -> worker.DestroySandboxResponse
- 6, // 38: worker.SandboxWorker.GetSandbox:output_type -> worker.GetSandboxResponse
- 8, // 39: worker.SandboxWorker.ListSandboxes:output_type -> worker.ListSandboxesResponse
- 10, // 40: worker.SandboxWorker.ExecCommand:output_type -> worker.ExecCommandResponse
- 11, // 41: worker.SandboxWorker.ExecCommandStream:output_type -> worker.ExecOutputChunk
- 13, // 42: worker.SandboxWorker.ReadFile:output_type -> worker.ReadFileResponse
- 15, // 43: worker.SandboxWorker.WriteFile:output_type -> worker.WriteFileResponse
- 18, // 44: worker.SandboxWorker.ListDir:output_type -> worker.ListDirResponse
- 20, // 45: worker.SandboxWorker.CreatePTY:output_type -> worker.CreatePTYResponse
- 23, // 46: worker.SandboxWorker.PTYStream:output_type -> worker.PTYOutput
- 33, // 47: worker.SandboxWorker.ExecSessionCreate:output_type -> worker.ExecSessionCreateResponse
- 35, // 48: worker.SandboxWorker.ExecSessionList:output_type -> worker.ExecSessionListResponse
- 38, // 49: worker.SandboxWorker.ExecSessionKill:output_type -> worker.ExecSessionKillResponse
- 25, // 50: worker.SandboxWorker.HibernateSandbox:output_type -> worker.HibernateSandboxResponse
- 27, // 51: worker.SandboxWorker.WakeSandbox:output_type -> worker.WakeSandboxResponse
- 29, // 52: worker.SandboxWorker.SaveAsTemplate:output_type -> worker.SaveAsTemplateResponse
- 42, // 53: worker.SandboxWorker.CreateCheckpoint:output_type -> worker.CreateCheckpointResponse
- 44, // 54: worker.SandboxWorker.RestoreCheckpoint:output_type -> worker.RestoreCheckpointResponse
- 31, // 55: worker.SandboxWorker.BuildTemplate:output_type -> worker.BuildTemplateResponse
- 40, // 56: worker.SandboxWorker.GetSandboxStats:output_type -> worker.GetSandboxStatsResponse
- 46, // 57: worker.SandboxWorker.SetSandboxLimits:output_type -> worker.SetSandboxLimitsResponse
- 48, // 58: worker.SandboxWorker.PreCopyDrives:output_type -> worker.PreCopyDrivesResponse
- 50, // 59: worker.SandboxWorker.PrepareMigrationIncoming:output_type -> worker.PrepareMigrationIncomingResponse
- 52, // 60: worker.SandboxWorker.LiveMigrate:output_type -> worker.LiveMigrateResponse
- 54, // 61: worker.SandboxWorker.CompleteMigrationIncoming:output_type -> worker.CompleteMigrationIncomingResponse
- 56, // 62: worker.SandboxWorker.RebuildGoldenSnapshot:output_type -> worker.RebuildGoldenSnapshotResponse
- 36, // [36:63] is the sub-list for method output_type
- 9, // [9:36] is the sub-list for method input_type
- 9, // [9:9] is the sub-list for extension type_name
- 9, // [9:9] is the sub-list for extension extendee
- 0, // [0:9] is the sub-list for field type_name
-}
-
-func init() { file_proto_worker_worker_proto_init() }
-func file_proto_worker_worker_proto_init() {
- if File_proto_worker_worker_proto != nil {
- return
- }
- file_proto_worker_worker_proto_msgTypes[20].OneofWrappers = []any{
- (*PTYInput_Data)(nil),
- (*PTYInput_Resize)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- 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: 60,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_proto_worker_worker_proto_goTypes,
- DependencyIndexes: file_proto_worker_worker_proto_depIdxs,
- EnumInfos: file_proto_worker_worker_proto_enumTypes,
- MessageInfos: file_proto_worker_worker_proto_msgTypes,
- }.Build()
- File_proto_worker_worker_proto = out.File
- file_proto_worker_worker_proto_goTypes = nil
- file_proto_worker_worker_proto_depIdxs = nil
-}
diff --git a/github.com/opensandbox/opensandbox/proto/worker/worker_grpc.pb.go b/github.com/opensandbox/opensandbox/proto/worker/worker_grpc.pb.go
deleted file mode 100644
index d8fb4551..00000000
--- a/github.com/opensandbox/opensandbox/proto/worker/worker_grpc.pb.go
+++ /dev/null
@@ -1,1111 +0,0 @@
-// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
-// versions:
-// - protoc-gen-go-grpc v1.6.1
-// - protoc v6.33.4
-// source: proto/worker/worker.proto
-
-package worker
-
-import (
- context "context"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
-)
-
-// This is a compile-time assertion to ensure that this generated file
-// is compatible with the grpc package it is being compiled against.
-// Requires gRPC-Go v1.64.0 or later.
-const _ = grpc.SupportPackageIsVersion9
-
-const (
- SandboxWorker_CreateSandbox_FullMethodName = "/worker.SandboxWorker/CreateSandbox"
- SandboxWorker_DestroySandbox_FullMethodName = "/worker.SandboxWorker/DestroySandbox"
- SandboxWorker_GetSandbox_FullMethodName = "/worker.SandboxWorker/GetSandbox"
- SandboxWorker_ListSandboxes_FullMethodName = "/worker.SandboxWorker/ListSandboxes"
- SandboxWorker_ExecCommand_FullMethodName = "/worker.SandboxWorker/ExecCommand"
- SandboxWorker_ExecCommandStream_FullMethodName = "/worker.SandboxWorker/ExecCommandStream"
- SandboxWorker_ReadFile_FullMethodName = "/worker.SandboxWorker/ReadFile"
- SandboxWorker_WriteFile_FullMethodName = "/worker.SandboxWorker/WriteFile"
- SandboxWorker_ListDir_FullMethodName = "/worker.SandboxWorker/ListDir"
- SandboxWorker_CreatePTY_FullMethodName = "/worker.SandboxWorker/CreatePTY"
- SandboxWorker_PTYStream_FullMethodName = "/worker.SandboxWorker/PTYStream"
- SandboxWorker_ExecSessionCreate_FullMethodName = "/worker.SandboxWorker/ExecSessionCreate"
- SandboxWorker_ExecSessionList_FullMethodName = "/worker.SandboxWorker/ExecSessionList"
- SandboxWorker_ExecSessionKill_FullMethodName = "/worker.SandboxWorker/ExecSessionKill"
- SandboxWorker_HibernateSandbox_FullMethodName = "/worker.SandboxWorker/HibernateSandbox"
- SandboxWorker_WakeSandbox_FullMethodName = "/worker.SandboxWorker/WakeSandbox"
- SandboxWorker_SaveAsTemplate_FullMethodName = "/worker.SandboxWorker/SaveAsTemplate"
- SandboxWorker_CreateCheckpoint_FullMethodName = "/worker.SandboxWorker/CreateCheckpoint"
- SandboxWorker_RestoreCheckpoint_FullMethodName = "/worker.SandboxWorker/RestoreCheckpoint"
- SandboxWorker_BuildTemplate_FullMethodName = "/worker.SandboxWorker/BuildTemplate"
- SandboxWorker_GetSandboxStats_FullMethodName = "/worker.SandboxWorker/GetSandboxStats"
- SandboxWorker_SetSandboxLimits_FullMethodName = "/worker.SandboxWorker/SetSandboxLimits"
- SandboxWorker_PreCopyDrives_FullMethodName = "/worker.SandboxWorker/PreCopyDrives"
- SandboxWorker_PrepareMigrationIncoming_FullMethodName = "/worker.SandboxWorker/PrepareMigrationIncoming"
- SandboxWorker_LiveMigrate_FullMethodName = "/worker.SandboxWorker/LiveMigrate"
- SandboxWorker_CompleteMigrationIncoming_FullMethodName = "/worker.SandboxWorker/CompleteMigrationIncoming"
- SandboxWorker_RebuildGoldenSnapshot_FullMethodName = "/worker.SandboxWorker/RebuildGoldenSnapshot"
-)
-
-// SandboxWorkerClient is the client API for SandboxWorker service.
-//
-// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
-type SandboxWorkerClient interface {
- CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc.CallOption) (*CreateSandboxResponse, error)
- DestroySandbox(ctx context.Context, in *DestroySandboxRequest, opts ...grpc.CallOption) (*DestroySandboxResponse, error)
- GetSandbox(ctx context.Context, in *GetSandboxRequest, opts ...grpc.CallOption) (*GetSandboxResponse, error)
- ListSandboxes(ctx context.Context, in *ListSandboxesRequest, opts ...grpc.CallOption) (*ListSandboxesResponse, error)
- ExecCommand(ctx context.Context, in *ExecCommandRequest, opts ...grpc.CallOption) (*ExecCommandResponse, error)
- ExecCommandStream(ctx context.Context, in *ExecCommandRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecOutputChunk], error)
- ReadFile(ctx context.Context, in *ReadFileRequest, opts ...grpc.CallOption) (*ReadFileResponse, error)
- WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error)
- ListDir(ctx context.Context, in *ListDirRequest, opts ...grpc.CallOption) (*ListDirResponse, error)
- CreatePTY(ctx context.Context, in *CreatePTYRequest, opts ...grpc.CallOption) (*CreatePTYResponse, error)
- PTYStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PTYInput, PTYOutput], error)
- ExecSessionCreate(ctx context.Context, in *ExecSessionCreateRequest, opts ...grpc.CallOption) (*ExecSessionCreateResponse, error)
- ExecSessionList(ctx context.Context, in *ExecSessionListRequest, opts ...grpc.CallOption) (*ExecSessionListResponse, error)
- ExecSessionKill(ctx context.Context, in *ExecSessionKillRequest, opts ...grpc.CallOption) (*ExecSessionKillResponse, error)
- HibernateSandbox(ctx context.Context, in *HibernateSandboxRequest, opts ...grpc.CallOption) (*HibernateSandboxResponse, error)
- WakeSandbox(ctx context.Context, in *WakeSandboxRequest, opts ...grpc.CallOption) (*WakeSandboxResponse, error)
- SaveAsTemplate(ctx context.Context, in *SaveAsTemplateRequest, opts ...grpc.CallOption) (*SaveAsTemplateResponse, error)
- CreateCheckpoint(ctx context.Context, in *CreateCheckpointRequest, opts ...grpc.CallOption) (*CreateCheckpointResponse, error)
- RestoreCheckpoint(ctx context.Context, in *RestoreCheckpointRequest, opts ...grpc.CallOption) (*RestoreCheckpointResponse, error)
- BuildTemplate(ctx context.Context, in *BuildTemplateRequest, opts ...grpc.CallOption) (*BuildTemplateResponse, error)
- GetSandboxStats(ctx context.Context, in *GetSandboxStatsRequest, opts ...grpc.CallOption) (*GetSandboxStatsResponse, error)
- SetSandboxLimits(ctx context.Context, in *SetSandboxLimitsRequest, opts ...grpc.CallOption) (*SetSandboxLimitsResponse, error)
- // Live migration between workers
- PreCopyDrives(ctx context.Context, in *PreCopyDrivesRequest, opts ...grpc.CallOption) (*PreCopyDrivesResponse, error)
- PrepareMigrationIncoming(ctx context.Context, in *PrepareMigrationIncomingRequest, opts ...grpc.CallOption) (*PrepareMigrationIncomingResponse, error)
- LiveMigrate(ctx context.Context, in *LiveMigrateRequest, opts ...grpc.CallOption) (*LiveMigrateResponse, error)
- CompleteMigrationIncoming(ctx context.Context, in *CompleteMigrationIncomingRequest, opts ...grpc.CallOption) (*CompleteMigrationIncomingResponse, error)
- // Golden snapshot management
- RebuildGoldenSnapshot(ctx context.Context, in *RebuildGoldenSnapshotRequest, opts ...grpc.CallOption) (*RebuildGoldenSnapshotResponse, error)
-}
-
-type sandboxWorkerClient struct {
- cc grpc.ClientConnInterface
-}
-
-func NewSandboxWorkerClient(cc grpc.ClientConnInterface) SandboxWorkerClient {
- return &sandboxWorkerClient{cc}
-}
-
-func (c *sandboxWorkerClient) CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc.CallOption) (*CreateSandboxResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(CreateSandboxResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_CreateSandbox_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) DestroySandbox(ctx context.Context, in *DestroySandboxRequest, opts ...grpc.CallOption) (*DestroySandboxResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(DestroySandboxResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_DestroySandbox_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) GetSandbox(ctx context.Context, in *GetSandboxRequest, opts ...grpc.CallOption) (*GetSandboxResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetSandboxResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_GetSandbox_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) ListSandboxes(ctx context.Context, in *ListSandboxesRequest, opts ...grpc.CallOption) (*ListSandboxesResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListSandboxesResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_ListSandboxes_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) ExecCommand(ctx context.Context, in *ExecCommandRequest, opts ...grpc.CallOption) (*ExecCommandResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ExecCommandResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_ExecCommand_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) ExecCommandStream(ctx context.Context, in *ExecCommandRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExecOutputChunk], error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- stream, err := c.cc.NewStream(ctx, &SandboxWorker_ServiceDesc.Streams[0], SandboxWorker_ExecCommandStream_FullMethodName, cOpts...)
- if err != nil {
- return nil, err
- }
- x := &grpc.GenericClientStream[ExecCommandRequest, ExecOutputChunk]{ClientStream: stream}
- if err := x.ClientStream.SendMsg(in); err != nil {
- return nil, err
- }
- if err := x.ClientStream.CloseSend(); err != nil {
- return nil, err
- }
- return x, nil
-}
-
-// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
-type SandboxWorker_ExecCommandStreamClient = grpc.ServerStreamingClient[ExecOutputChunk]
-
-func (c *sandboxWorkerClient) ReadFile(ctx context.Context, in *ReadFileRequest, opts ...grpc.CallOption) (*ReadFileResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ReadFileResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_ReadFile_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(WriteFileResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_WriteFile_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) ListDir(ctx context.Context, in *ListDirRequest, opts ...grpc.CallOption) (*ListDirResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ListDirResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_ListDir_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) CreatePTY(ctx context.Context, in *CreatePTYRequest, opts ...grpc.CallOption) (*CreatePTYResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(CreatePTYResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_CreatePTY_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) PTYStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PTYInput, PTYOutput], error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- stream, err := c.cc.NewStream(ctx, &SandboxWorker_ServiceDesc.Streams[1], SandboxWorker_PTYStream_FullMethodName, cOpts...)
- if err != nil {
- return nil, err
- }
- x := &grpc.GenericClientStream[PTYInput, PTYOutput]{ClientStream: stream}
- return x, nil
-}
-
-// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
-type SandboxWorker_PTYStreamClient = grpc.BidiStreamingClient[PTYInput, PTYOutput]
-
-func (c *sandboxWorkerClient) ExecSessionCreate(ctx context.Context, in *ExecSessionCreateRequest, opts ...grpc.CallOption) (*ExecSessionCreateResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ExecSessionCreateResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_ExecSessionCreate_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) ExecSessionList(ctx context.Context, in *ExecSessionListRequest, opts ...grpc.CallOption) (*ExecSessionListResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ExecSessionListResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_ExecSessionList_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) ExecSessionKill(ctx context.Context, in *ExecSessionKillRequest, opts ...grpc.CallOption) (*ExecSessionKillResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(ExecSessionKillResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_ExecSessionKill_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) HibernateSandbox(ctx context.Context, in *HibernateSandboxRequest, opts ...grpc.CallOption) (*HibernateSandboxResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(HibernateSandboxResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_HibernateSandbox_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) WakeSandbox(ctx context.Context, in *WakeSandboxRequest, opts ...grpc.CallOption) (*WakeSandboxResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(WakeSandboxResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_WakeSandbox_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) SaveAsTemplate(ctx context.Context, in *SaveAsTemplateRequest, opts ...grpc.CallOption) (*SaveAsTemplateResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(SaveAsTemplateResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_SaveAsTemplate_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) CreateCheckpoint(ctx context.Context, in *CreateCheckpointRequest, opts ...grpc.CallOption) (*CreateCheckpointResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(CreateCheckpointResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_CreateCheckpoint_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) RestoreCheckpoint(ctx context.Context, in *RestoreCheckpointRequest, opts ...grpc.CallOption) (*RestoreCheckpointResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(RestoreCheckpointResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_RestoreCheckpoint_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) BuildTemplate(ctx context.Context, in *BuildTemplateRequest, opts ...grpc.CallOption) (*BuildTemplateResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(BuildTemplateResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_BuildTemplate_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) GetSandboxStats(ctx context.Context, in *GetSandboxStatsRequest, opts ...grpc.CallOption) (*GetSandboxStatsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(GetSandboxStatsResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_GetSandboxStats_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) SetSandboxLimits(ctx context.Context, in *SetSandboxLimitsRequest, opts ...grpc.CallOption) (*SetSandboxLimitsResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(SetSandboxLimitsResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_SetSandboxLimits_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) PreCopyDrives(ctx context.Context, in *PreCopyDrivesRequest, opts ...grpc.CallOption) (*PreCopyDrivesResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(PreCopyDrivesResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_PreCopyDrives_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) PrepareMigrationIncoming(ctx context.Context, in *PrepareMigrationIncomingRequest, opts ...grpc.CallOption) (*PrepareMigrationIncomingResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(PrepareMigrationIncomingResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_PrepareMigrationIncoming_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) LiveMigrate(ctx context.Context, in *LiveMigrateRequest, opts ...grpc.CallOption) (*LiveMigrateResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(LiveMigrateResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_LiveMigrate_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) CompleteMigrationIncoming(ctx context.Context, in *CompleteMigrationIncomingRequest, opts ...grpc.CallOption) (*CompleteMigrationIncomingResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(CompleteMigrationIncomingResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_CompleteMigrationIncoming_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-func (c *sandboxWorkerClient) RebuildGoldenSnapshot(ctx context.Context, in *RebuildGoldenSnapshotRequest, opts ...grpc.CallOption) (*RebuildGoldenSnapshotResponse, error) {
- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
- out := new(RebuildGoldenSnapshotResponse)
- err := c.cc.Invoke(ctx, SandboxWorker_RebuildGoldenSnapshot_FullMethodName, in, out, cOpts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
-// SandboxWorkerServer is the server API for SandboxWorker service.
-// All implementations must embed UnimplementedSandboxWorkerServer
-// for forward compatibility.
-type SandboxWorkerServer interface {
- CreateSandbox(context.Context, *CreateSandboxRequest) (*CreateSandboxResponse, error)
- DestroySandbox(context.Context, *DestroySandboxRequest) (*DestroySandboxResponse, error)
- GetSandbox(context.Context, *GetSandboxRequest) (*GetSandboxResponse, error)
- ListSandboxes(context.Context, *ListSandboxesRequest) (*ListSandboxesResponse, error)
- ExecCommand(context.Context, *ExecCommandRequest) (*ExecCommandResponse, error)
- ExecCommandStream(*ExecCommandRequest, grpc.ServerStreamingServer[ExecOutputChunk]) error
- ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
- WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
- ListDir(context.Context, *ListDirRequest) (*ListDirResponse, error)
- CreatePTY(context.Context, *CreatePTYRequest) (*CreatePTYResponse, error)
- PTYStream(grpc.BidiStreamingServer[PTYInput, PTYOutput]) error
- ExecSessionCreate(context.Context, *ExecSessionCreateRequest) (*ExecSessionCreateResponse, error)
- ExecSessionList(context.Context, *ExecSessionListRequest) (*ExecSessionListResponse, error)
- ExecSessionKill(context.Context, *ExecSessionKillRequest) (*ExecSessionKillResponse, error)
- HibernateSandbox(context.Context, *HibernateSandboxRequest) (*HibernateSandboxResponse, error)
- WakeSandbox(context.Context, *WakeSandboxRequest) (*WakeSandboxResponse, error)
- SaveAsTemplate(context.Context, *SaveAsTemplateRequest) (*SaveAsTemplateResponse, error)
- CreateCheckpoint(context.Context, *CreateCheckpointRequest) (*CreateCheckpointResponse, error)
- RestoreCheckpoint(context.Context, *RestoreCheckpointRequest) (*RestoreCheckpointResponse, error)
- BuildTemplate(context.Context, *BuildTemplateRequest) (*BuildTemplateResponse, error)
- GetSandboxStats(context.Context, *GetSandboxStatsRequest) (*GetSandboxStatsResponse, error)
- SetSandboxLimits(context.Context, *SetSandboxLimitsRequest) (*SetSandboxLimitsResponse, error)
- // Live migration between workers
- PreCopyDrives(context.Context, *PreCopyDrivesRequest) (*PreCopyDrivesResponse, error)
- PrepareMigrationIncoming(context.Context, *PrepareMigrationIncomingRequest) (*PrepareMigrationIncomingResponse, error)
- LiveMigrate(context.Context, *LiveMigrateRequest) (*LiveMigrateResponse, error)
- CompleteMigrationIncoming(context.Context, *CompleteMigrationIncomingRequest) (*CompleteMigrationIncomingResponse, error)
- // Golden snapshot management
- RebuildGoldenSnapshot(context.Context, *RebuildGoldenSnapshotRequest) (*RebuildGoldenSnapshotResponse, error)
- mustEmbedUnimplementedSandboxWorkerServer()
-}
-
-// UnimplementedSandboxWorkerServer must be embedded to have
-// forward compatible implementations.
-//
-// NOTE: this should be embedded by value instead of pointer to avoid a nil
-// pointer dereference when methods are called.
-type UnimplementedSandboxWorkerServer struct{}
-
-func (UnimplementedSandboxWorkerServer) CreateSandbox(context.Context, *CreateSandboxRequest) (*CreateSandboxResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method CreateSandbox not implemented")
-}
-func (UnimplementedSandboxWorkerServer) DestroySandbox(context.Context, *DestroySandboxRequest) (*DestroySandboxResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method DestroySandbox not implemented")
-}
-func (UnimplementedSandboxWorkerServer) GetSandbox(context.Context, *GetSandboxRequest) (*GetSandboxResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method GetSandbox not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ListSandboxes(context.Context, *ListSandboxesRequest) (*ListSandboxesResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method ListSandboxes not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ExecCommand(context.Context, *ExecCommandRequest) (*ExecCommandResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method ExecCommand not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ExecCommandStream(*ExecCommandRequest, grpc.ServerStreamingServer[ExecOutputChunk]) error {
- return status.Error(codes.Unimplemented, "method ExecCommandStream not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method ReadFile not implemented")
-}
-func (UnimplementedSandboxWorkerServer) WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method WriteFile not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ListDir(context.Context, *ListDirRequest) (*ListDirResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method ListDir not implemented")
-}
-func (UnimplementedSandboxWorkerServer) CreatePTY(context.Context, *CreatePTYRequest) (*CreatePTYResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method CreatePTY not implemented")
-}
-func (UnimplementedSandboxWorkerServer) PTYStream(grpc.BidiStreamingServer[PTYInput, PTYOutput]) error {
- return status.Error(codes.Unimplemented, "method PTYStream not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ExecSessionCreate(context.Context, *ExecSessionCreateRequest) (*ExecSessionCreateResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method ExecSessionCreate not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ExecSessionList(context.Context, *ExecSessionListRequest) (*ExecSessionListResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method ExecSessionList not implemented")
-}
-func (UnimplementedSandboxWorkerServer) ExecSessionKill(context.Context, *ExecSessionKillRequest) (*ExecSessionKillResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method ExecSessionKill not implemented")
-}
-func (UnimplementedSandboxWorkerServer) HibernateSandbox(context.Context, *HibernateSandboxRequest) (*HibernateSandboxResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method HibernateSandbox not implemented")
-}
-func (UnimplementedSandboxWorkerServer) WakeSandbox(context.Context, *WakeSandboxRequest) (*WakeSandboxResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method WakeSandbox not implemented")
-}
-func (UnimplementedSandboxWorkerServer) SaveAsTemplate(context.Context, *SaveAsTemplateRequest) (*SaveAsTemplateResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method SaveAsTemplate not implemented")
-}
-func (UnimplementedSandboxWorkerServer) CreateCheckpoint(context.Context, *CreateCheckpointRequest) (*CreateCheckpointResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method CreateCheckpoint not implemented")
-}
-func (UnimplementedSandboxWorkerServer) RestoreCheckpoint(context.Context, *RestoreCheckpointRequest) (*RestoreCheckpointResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method RestoreCheckpoint not implemented")
-}
-func (UnimplementedSandboxWorkerServer) BuildTemplate(context.Context, *BuildTemplateRequest) (*BuildTemplateResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method BuildTemplate not implemented")
-}
-func (UnimplementedSandboxWorkerServer) GetSandboxStats(context.Context, *GetSandboxStatsRequest) (*GetSandboxStatsResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method GetSandboxStats not implemented")
-}
-func (UnimplementedSandboxWorkerServer) SetSandboxLimits(context.Context, *SetSandboxLimitsRequest) (*SetSandboxLimitsResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method SetSandboxLimits not implemented")
-}
-func (UnimplementedSandboxWorkerServer) PreCopyDrives(context.Context, *PreCopyDrivesRequest) (*PreCopyDrivesResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method PreCopyDrives not implemented")
-}
-func (UnimplementedSandboxWorkerServer) PrepareMigrationIncoming(context.Context, *PrepareMigrationIncomingRequest) (*PrepareMigrationIncomingResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method PrepareMigrationIncoming not implemented")
-}
-func (UnimplementedSandboxWorkerServer) LiveMigrate(context.Context, *LiveMigrateRequest) (*LiveMigrateResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method LiveMigrate not implemented")
-}
-func (UnimplementedSandboxWorkerServer) CompleteMigrationIncoming(context.Context, *CompleteMigrationIncomingRequest) (*CompleteMigrationIncomingResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method CompleteMigrationIncoming not implemented")
-}
-func (UnimplementedSandboxWorkerServer) RebuildGoldenSnapshot(context.Context, *RebuildGoldenSnapshotRequest) (*RebuildGoldenSnapshotResponse, error) {
- return nil, status.Error(codes.Unimplemented, "method RebuildGoldenSnapshot not implemented")
-}
-func (UnimplementedSandboxWorkerServer) mustEmbedUnimplementedSandboxWorkerServer() {}
-func (UnimplementedSandboxWorkerServer) testEmbeddedByValue() {}
-
-// UnsafeSandboxWorkerServer may be embedded to opt out of forward compatibility for this service.
-// Use of this interface is not recommended, as added methods to SandboxWorkerServer will
-// result in compilation errors.
-type UnsafeSandboxWorkerServer interface {
- mustEmbedUnimplementedSandboxWorkerServer()
-}
-
-func RegisterSandboxWorkerServer(s grpc.ServiceRegistrar, srv SandboxWorkerServer) {
- // If the following call panics, it indicates UnimplementedSandboxWorkerServer was
- // embedded by pointer and is nil. This will cause panics if an
- // unimplemented method is ever invoked, so we test this at initialization
- // time to prevent it from happening at runtime later due to I/O.
- if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
- t.testEmbeddedByValue()
- }
- s.RegisterService(&SandboxWorker_ServiceDesc, srv)
-}
-
-func _SandboxWorker_CreateSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateSandboxRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).CreateSandbox(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_CreateSandbox_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).CreateSandbox(ctx, req.(*CreateSandboxRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_DestroySandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DestroySandboxRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).DestroySandbox(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_DestroySandbox_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).DestroySandbox(ctx, req.(*DestroySandboxRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_GetSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetSandboxRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).GetSandbox(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_GetSandbox_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).GetSandbox(ctx, req.(*GetSandboxRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_ListSandboxes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListSandboxesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).ListSandboxes(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_ListSandboxes_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).ListSandboxes(ctx, req.(*ListSandboxesRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_ExecCommand_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExecCommandRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).ExecCommand(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_ExecCommand_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).ExecCommand(ctx, req.(*ExecCommandRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_ExecCommandStream_Handler(srv interface{}, stream grpc.ServerStream) error {
- m := new(ExecCommandRequest)
- if err := stream.RecvMsg(m); err != nil {
- return err
- }
- return srv.(SandboxWorkerServer).ExecCommandStream(m, &grpc.GenericServerStream[ExecCommandRequest, ExecOutputChunk]{ServerStream: stream})
-}
-
-// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
-type SandboxWorker_ExecCommandStreamServer = grpc.ServerStreamingServer[ExecOutputChunk]
-
-func _SandboxWorker_ReadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ReadFileRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).ReadFile(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_ReadFile_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).ReadFile(ctx, req.(*ReadFileRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_WriteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(WriteFileRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).WriteFile(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_WriteFile_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).WriteFile(ctx, req.(*WriteFileRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_ListDir_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ListDirRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).ListDir(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_ListDir_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).ListDir(ctx, req.(*ListDirRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_CreatePTY_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreatePTYRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).CreatePTY(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_CreatePTY_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).CreatePTY(ctx, req.(*CreatePTYRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_PTYStream_Handler(srv interface{}, stream grpc.ServerStream) error {
- return srv.(SandboxWorkerServer).PTYStream(&grpc.GenericServerStream[PTYInput, PTYOutput]{ServerStream: stream})
-}
-
-// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
-type SandboxWorker_PTYStreamServer = grpc.BidiStreamingServer[PTYInput, PTYOutput]
-
-func _SandboxWorker_ExecSessionCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExecSessionCreateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).ExecSessionCreate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_ExecSessionCreate_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).ExecSessionCreate(ctx, req.(*ExecSessionCreateRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_ExecSessionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExecSessionListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).ExecSessionList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_ExecSessionList_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).ExecSessionList(ctx, req.(*ExecSessionListRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_ExecSessionKill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ExecSessionKillRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).ExecSessionKill(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_ExecSessionKill_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).ExecSessionKill(ctx, req.(*ExecSessionKillRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_HibernateSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(HibernateSandboxRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).HibernateSandbox(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_HibernateSandbox_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).HibernateSandbox(ctx, req.(*HibernateSandboxRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_WakeSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(WakeSandboxRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).WakeSandbox(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_WakeSandbox_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).WakeSandbox(ctx, req.(*WakeSandboxRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_SaveAsTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SaveAsTemplateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).SaveAsTemplate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_SaveAsTemplate_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).SaveAsTemplate(ctx, req.(*SaveAsTemplateRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_CreateCheckpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CreateCheckpointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).CreateCheckpoint(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_CreateCheckpoint_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).CreateCheckpoint(ctx, req.(*CreateCheckpointRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_RestoreCheckpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RestoreCheckpointRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).RestoreCheckpoint(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_RestoreCheckpoint_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).RestoreCheckpoint(ctx, req.(*RestoreCheckpointRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_BuildTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(BuildTemplateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).BuildTemplate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_BuildTemplate_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).BuildTemplate(ctx, req.(*BuildTemplateRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_GetSandboxStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetSandboxStatsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).GetSandboxStats(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_GetSandboxStats_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).GetSandboxStats(ctx, req.(*GetSandboxStatsRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_SetSandboxLimits_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SetSandboxLimitsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).SetSandboxLimits(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_SetSandboxLimits_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).SetSandboxLimits(ctx, req.(*SetSandboxLimitsRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_PreCopyDrives_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PreCopyDrivesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).PreCopyDrives(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_PreCopyDrives_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).PreCopyDrives(ctx, req.(*PreCopyDrivesRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_PrepareMigrationIncoming_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(PrepareMigrationIncomingRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).PrepareMigrationIncoming(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_PrepareMigrationIncoming_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).PrepareMigrationIncoming(ctx, req.(*PrepareMigrationIncomingRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_LiveMigrate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(LiveMigrateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).LiveMigrate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_LiveMigrate_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).LiveMigrate(ctx, req.(*LiveMigrateRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_CompleteMigrationIncoming_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(CompleteMigrationIncomingRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).CompleteMigrationIncoming(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_CompleteMigrationIncoming_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).CompleteMigrationIncoming(ctx, req.(*CompleteMigrationIncomingRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-func _SandboxWorker_RebuildGoldenSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(RebuildGoldenSnapshotRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SandboxWorkerServer).RebuildGoldenSnapshot(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SandboxWorker_RebuildGoldenSnapshot_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SandboxWorkerServer).RebuildGoldenSnapshot(ctx, req.(*RebuildGoldenSnapshotRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
-// SandboxWorker_ServiceDesc is the grpc.ServiceDesc for SandboxWorker service.
-// It's only intended for direct use with grpc.RegisterService,
-// and not to be introspected or modified (even as a copy)
-var SandboxWorker_ServiceDesc = grpc.ServiceDesc{
- ServiceName: "worker.SandboxWorker",
- HandlerType: (*SandboxWorkerServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "CreateSandbox",
- Handler: _SandboxWorker_CreateSandbox_Handler,
- },
- {
- MethodName: "DestroySandbox",
- Handler: _SandboxWorker_DestroySandbox_Handler,
- },
- {
- MethodName: "GetSandbox",
- Handler: _SandboxWorker_GetSandbox_Handler,
- },
- {
- MethodName: "ListSandboxes",
- Handler: _SandboxWorker_ListSandboxes_Handler,
- },
- {
- MethodName: "ExecCommand",
- Handler: _SandboxWorker_ExecCommand_Handler,
- },
- {
- MethodName: "ReadFile",
- Handler: _SandboxWorker_ReadFile_Handler,
- },
- {
- MethodName: "WriteFile",
- Handler: _SandboxWorker_WriteFile_Handler,
- },
- {
- MethodName: "ListDir",
- Handler: _SandboxWorker_ListDir_Handler,
- },
- {
- MethodName: "CreatePTY",
- Handler: _SandboxWorker_CreatePTY_Handler,
- },
- {
- MethodName: "ExecSessionCreate",
- Handler: _SandboxWorker_ExecSessionCreate_Handler,
- },
- {
- MethodName: "ExecSessionList",
- Handler: _SandboxWorker_ExecSessionList_Handler,
- },
- {
- MethodName: "ExecSessionKill",
- Handler: _SandboxWorker_ExecSessionKill_Handler,
- },
- {
- MethodName: "HibernateSandbox",
- Handler: _SandboxWorker_HibernateSandbox_Handler,
- },
- {
- MethodName: "WakeSandbox",
- Handler: _SandboxWorker_WakeSandbox_Handler,
- },
- {
- MethodName: "SaveAsTemplate",
- Handler: _SandboxWorker_SaveAsTemplate_Handler,
- },
- {
- MethodName: "CreateCheckpoint",
- Handler: _SandboxWorker_CreateCheckpoint_Handler,
- },
- {
- MethodName: "RestoreCheckpoint",
- Handler: _SandboxWorker_RestoreCheckpoint_Handler,
- },
- {
- MethodName: "BuildTemplate",
- Handler: _SandboxWorker_BuildTemplate_Handler,
- },
- {
- MethodName: "GetSandboxStats",
- Handler: _SandboxWorker_GetSandboxStats_Handler,
- },
- {
- MethodName: "SetSandboxLimits",
- Handler: _SandboxWorker_SetSandboxLimits_Handler,
- },
- {
- MethodName: "PreCopyDrives",
- Handler: _SandboxWorker_PreCopyDrives_Handler,
- },
- {
- MethodName: "PrepareMigrationIncoming",
- Handler: _SandboxWorker_PrepareMigrationIncoming_Handler,
- },
- {
- MethodName: "LiveMigrate",
- Handler: _SandboxWorker_LiveMigrate_Handler,
- },
- {
- MethodName: "CompleteMigrationIncoming",
- Handler: _SandboxWorker_CompleteMigrationIncoming_Handler,
- },
- {
- MethodName: "RebuildGoldenSnapshot",
- Handler: _SandboxWorker_RebuildGoldenSnapshot_Handler,
- },
- },
- Streams: []grpc.StreamDesc{
- {
- StreamName: "ExecCommandStream",
- Handler: _SandboxWorker_ExecCommandStream_Handler,
- ServerStreams: true,
- },
- {
- StreamName: "PTYStream",
- Handler: _SandboxWorker_PTYStream_Handler,
- ServerStreams: true,
- ClientStreams: true,
- },
- },
- Metadata: "proto/worker/worker.proto",
-}
diff --git a/scripts/bench-launch.sh b/scripts/bench-launch.sh
index 85564a37..5c76ec61 100755
--- a/scripts/bench-launch.sh
+++ b/scripts/bench-launch.sh
@@ -7,7 +7,7 @@ set -euo pipefail
# 3. Wake from S3 checkpoint (simulate migration — purge local, pull from S3)
#
# Usage: ./scripts/bench-launch.sh <server-url> <api-key>
-# Example: ./scripts/bench-launch.sh http://3.135.246.117:8080 osb_600b1a...
+# Example: ./scripts/bench-launch.sh http://3.135.246.117:8080 osb_...
SERVER="${1:?Usage: $0 <server-url> <api-key>}"
API_KEY="${2:?Usage: $0 <server-url> <api-key>}"
diff --git a/scripts/reliability-test.sh b/scripts/reliability-test.sh
deleted file mode 100755
index 33b19c92..00000000
--- a/scripts/reliability-test.sh
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/usr/bin/env bash
-set -uo pipefail
-
-# Reliability test: runs benchmarks + TypeScript SDK tests in a loop.
-# Usage: ./scripts/reliability-test.sh [iterations]
-
-ITERATIONS="${1:-10}"
-SERVER="https://app.opensandbox.ai"
-API_KEY="osb_600b1a9ba2e515c6e54141588da39204d5123cb4b1a28da22b7bd92b88be1534"
-REPO_DIR="$(cd "$(dirname "$0")/.." && pwd)"
-
-# Export env vars for SDK tests
-export OPENSANDBOX_API_KEY="$API_KEY"
-export OPENSANDBOX_API_URL="$SERVER"
-
-RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'
-CYAN='\033[0;36m'; BOLD='\033[1m'; NC='\033[0m'
-
-RESULTS_FILE="/tmp/reliability-results-$(date +%s).txt"
-
-pass=0
-fail=0
-
-cleanup_sandboxes() {
- for id in $(curl -s "$SERVER/api/sandboxes" -H "X-API-Key: $API_KEY" 2>/dev/null | python3 -c "import sys,json; [print(s['sandboxID']) for s in json.load(sys.stdin)]" 2>/dev/null); do
- curl -s -X DELETE "$SERVER/api/sandboxes/$id" -H "X-API-Key: $API_KEY" > /dev/null 2>&1
- done
-}
-
-run_test() {
- local iter="$1" name="$2" cmd="$3"
- echo -e "\n${BOLD}${CYAN}━━━ Run $iter/$ITERATIONS: $name ━━━${NC}"
- local t_start=$(python3 -c 'import time; print(time.time())')
-
- eval "$cmd" > "/tmp/reliability-run-${iter}-${name}.log" 2>&1
- local exit_code=$?
-
- local t_end=$(python3 -c 'import time; print(time.time())')
- local elapsed=$(python3 -c "print(f'{($t_end - $t_start):.1f}')")
-
- if [[ $exit_code -eq 0 ]]; then
- echo -e " ${GREEN}✓${NC} ${name} passed (${elapsed}s)"
- echo "PASS iter=$iter test=$name time=${elapsed}s" >> "$RESULTS_FILE"
- ((pass++))
- else
- echo -e " ${RED}✗${NC} ${name} FAILED (exit=$exit_code, ${elapsed}s)"
- echo "FAIL iter=$iter test=$name time=${elapsed}s exit=$exit_code" >> "$RESULTS_FILE"
- echo " Log: /tmp/reliability-run-${iter}-${name}.log"
- ((fail++))
- fi
-}
-
-echo -e "${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"
-echo -e "${BOLD}${CYAN} RELIABILITY TEST: $ITERATIONS iterations${NC}"
-echo -e "${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"
-echo ""
-echo "Results log: $RESULTS_FILE"
-
-T_TOTAL_START=$(python3 -c 'import time; print(time.time())')
-
-for i in $(seq 1 "$ITERATIONS"); do
- echo -e "\n${BOLD}${YELLOW}╔══════════════════════════════════════════╗${NC}"
- echo -e "${BOLD}${YELLOW}║ ITERATION $i / $ITERATIONS ║${NC}"
- echo -e "${BOLD}${YELLOW}╚══════════════════════════════════════════╝${NC}"
-
- # Clean slate
- cleanup_sandboxes
-
- # Light benchmark (gRPC, runs on worker)
- run_test "$i" "bench-grpc" "bash ${REPO_DIR}/scripts/bench-grpc.sh [email protected] ~/.ssh/opensandbox-digger.pem"
-
- # Clean slate
- cleanup_sandboxes
-
- # TypeScript SDK tests (subshell to avoid cwd contamination)
- run_test "$i" "sdk-tests" "(cd ${REPO_DIR}/sdks/typescript && npx tsx examples/run-all-tests.ts)"
-
- # Clean slate
- cleanup_sandboxes
-done
-
-T_TOTAL_END=$(python3 -c 'import time; print(time.time())')
-TOTAL_SECS=$(python3 -c "print(f'{($T_TOTAL_END - $T_TOTAL_START):.0f}')")
-TOTAL_MINS=$(python3 -c "print(f'{($T_TOTAL_END - $T_TOTAL_START) / 60:.1f}')")
-
-echo -e "\n${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"
-echo -e "${BOLD}${CYAN} RESULTS SUMMARY${NC}"
-echo -e "${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"
-echo ""
-echo -e " Iterations: $ITERATIONS"
-echo -e " Total time: ${TOTAL_MINS} min (${TOTAL_SECS}s)"
-echo -e " ${GREEN}Passed: $pass${NC}"
-echo -e " ${RED}Failed: $fail${NC}"
-echo ""
-
-if [[ $fail -gt 0 ]]; then
- echo -e " ${RED}${BOLD}FAILURES:${NC}"
- grep "^FAIL" "$RESULTS_FILE" | while read -r line; do
- echo -e " ${RED}$line${NC}"
- done
- echo ""
-fi
-
-echo -e " Full results: $RESULTS_FILE"
-echo ""
diff --git a/scripts/test-400-concurrent.sh b/scripts/test-400-concurrent.sh
deleted file mode 100755
index 3f31268b..00000000
--- a/scripts/test-400-concurrent.sh
+++ /dev/null
@@ -1,298 +0,0 @@
-#!/usr/bin/env bash
-set -uo pipefail
-
-# 400-Concurrent Sandbox Load Test
-#
-# Fires ALL sandbox creates simultaneously — no batching, no mercy.
-# Tests real-world worst case: 400 customers show up at once.
-#
-# Usage: ./scripts/test-400-concurrent.sh [server-url] [api-key] [count]
-
-SERVER="${1:-http://3.135.246.117:8080}"
-API_KEY="${2:-osb_600b1a9ba2e515c6e54141588da39204d5123cb4b1a28da22b7bd92b88be1534}"
-TOTAL="${3:-400}"
-
-# Colors
-RED='\033[0;31m'
-GREEN='\033[0;32m'
-YELLOW='\033[1;33m'
-CYAN='\033[0;36m'
-BOLD='\033[1m'
-NC='\033[0m'
-
-header() { echo -e "\n${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"; echo -e "${BOLD}${CYAN} $1${NC}"; echo -e "${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"; }
-info() { echo -e "${YELLOW}→${NC} $1"; }
-ok() { echo -e "${GREEN}✓${NC} $1"; }
-fail() { echo -e "${RED}✗${NC} $1"; }
-
-# Temp dir for results
-WORK=$(mktemp -d)
-trap "rm -rf $WORK" EXIT
-
-header "CONCURRENT SANDBOX LOAD TEST"
-echo -e "Server: ${SERVER}"
-echo -e "API Key: ${API_KEY:0:12}..."
-echo -e "Target: ${BOLD}${TOTAL} sandboxes — all at once${NC}"
-echo -e "Config: 1 vCPU, 1024 MB RAM each"
-echo ""
-
-# ─────────────────────────────────────────────────────────
-# Phase 1: Fire all creates simultaneously
-# ─────────────────────────────────────────────────────────
-header "PHASE 1: Launching ${TOTAL} sandboxes simultaneously"
-
-create_one() {
- local idx=$1
- local out="${WORK}/create-${idx}.txt"
- local t0=$(python3 -c 'import time; print(int(time.time()*1000))')
-
- local resp
- resp=$(curl -s -w "\n%{http_code}" -X POST "${SERVER}/api/sandboxes" \
- -H "X-API-Key: ${API_KEY}" \
- -H "Content-Type: application/json" \
- -d '{"templateID":"base","timeout":600,"cpuCount":1,"memoryMB":1024}' \
- --max-time 180 2>/dev/null) || true
-
- local t1=$(python3 -c 'import time; print(int(time.time()*1000))')
- local ms=$((t1 - t0))
-
- local body http_code
- body=$(echo "$resp" | sed '$d')
- http_code=$(echo "$resp" | tail -1)
-
- if [[ "$http_code" -ge 200 && "$http_code" -lt 300 ]] 2>/dev/null; then
- local sid
- sid=$(echo "$body" | python3 -c "import sys,json; print(json.load(sys.stdin)['sandboxID'])" 2>/dev/null) || true
- echo "${sid:-},${ms},ok" > "$out"
- else
- echo ",${ms},fail:${http_code}" > "$out"
- fi
-}
-
-export -f create_one
-export SERVER API_KEY WORK
-
-info "Firing ${TOTAL} create requests..."
-T_START=$(python3 -c 'import time; print(int(time.time()*1000))')
-
-# Launch ALL at once
-pids=()
-for i in $(seq 1 $TOTAL); do
- create_one $i &
- pids+=($!)
-done
-
-info "${#pids[@]} background creates launched, waiting for all to complete..."
-
-# Progress monitor in background
-(
- while true; do
- sleep 10
- done_count=$(ls ${WORK}/create-*.txt 2>/dev/null | wc -l | tr -d ' ')
- ok_count=$(grep -l ',ok$' ${WORK}/create-*.txt 2>/dev/null | wc -l | tr -d ' ') || true
- fail_count=$(grep -l ',fail' ${WORK}/create-*.txt 2>/dev/null | wc -l | tr -d ' ') || true
- echo -e " ... ${done_count}/${TOTAL} done (${ok_count} ok, ${fail_count} failed)"
- if [[ "$done_count" -ge "$TOTAL" ]] 2>/dev/null; then break; fi
- done
-) &
-MONITOR_PID=$!
-
-# Wait for all creates
-for pid in "${pids[@]}"; do
- wait $pid 2>/dev/null || true
-done
-
-kill $MONITOR_PID 2>/dev/null || true
-wait $MONITOR_PID 2>/dev/null || true
-
-T_END=$(python3 -c 'import time; print(int(time.time()*1000))')
-WALL_MS=$((T_END - T_START))
-WALL_SECS=$(python3 -c "print(f'{$WALL_MS/1000:.1f}')")
-
-# Collect results
-SANDBOX_IDS=()
-CREATE_TIMES=()
-SUCCESS=0
-FAIL=0
-
-for f in ${WORK}/create-*.txt; do
- [[ -f "$f" ]] || continue
- line=$(cat "$f")
- id=$(echo "$line" | cut -d, -f1)
- ms=$(echo "$line" | cut -d, -f2)
- status=$(echo "$line" | cut -d, -f3)
- CREATE_TIMES+=("$ms")
- if [[ "$status" == "ok" && -n "$id" ]]; then
- SANDBOX_IDS+=("$id")
- SUCCESS=$((SUCCESS + 1))
- else
- FAIL=$((FAIL + 1))
- fi
-done
-
-echo ""
-ok "Created: ${SUCCESS}/${TOTAL} sandboxes in ${WALL_SECS}s wall time"
-if [[ $FAIL -gt 0 ]]; then
- fail "Failed: ${FAIL}"
- # Show a few failure reasons
- grep ',fail' ${WORK}/create-*.txt 2>/dev/null | head -5 | while read line; do
- echo -e " ${RED}${line}${NC}"
- done
-fi
-
-# Timing stats
-if [[ ${#CREATE_TIMES[@]} -gt 0 ]]; then
- SORTED=($(printf '%s\n' "${CREATE_TIMES[@]}" | sort -n))
- NUM=${#SORTED[@]}
- MIN_C=${SORTED[0]}
- MAX_C=${SORTED[$((NUM - 1))]}
- MED_C=${SORTED[$((NUM / 2))]}
- P95_C=${SORTED[$((NUM * 95 / 100))]}
- SUM=0; for t in "${SORTED[@]}"; do SUM=$((SUM + t)); done
- AVG_C=$((SUM / NUM))
-
- echo ""
- echo -e " Create latency (per-request):"
- echo -e " Min: ${MIN_C}ms"
- echo -e " Median: ${MED_C}ms"
- echo -e " Avg: ${AVG_C}ms"
- echo -e " P95: ${P95_C}ms"
- echo -e " Max: ${MAX_C}ms"
- echo -e " Wall: ${WALL_MS}ms"
-fi
-
-if [[ $SUCCESS -eq 0 ]]; then
- fail "No sandboxes created — aborting"
- exit 1
-fi
-
-# ─────────────────────────────────────────────────────────
-# Phase 2: Execute a command on ALL sandboxes
-# ─────────────────────────────────────────────────────────
-header "PHASE 2: Execute command on all ${SUCCESS} sandboxes simultaneously"
-
-exec_one() {
- local sid=$1
- local out="${WORK}/exec-${sid}.txt"
- local t0=$(python3 -c 'import time; print(int(time.time()*1000))')
-
- local resp
- resp=$(curl -s -w "\n%{http_code}" -X POST "${SERVER}/api/sandboxes/${sid}/commands" \
- -H "X-API-Key: ${API_KEY}" \
- -H "Content-Type: application/json" \
- -d '{"cmd":"echo","args":["alive"]}' \
- --max-time 30 2>/dev/null) || true
-
- local t1=$(python3 -c 'import time; print(int(time.time()*1000))')
- local ms=$((t1 - t0))
- local http_code=$(echo "$resp" | tail -1)
-
- if [[ "$http_code" == "200" ]] 2>/dev/null; then
- echo "${ms},ok" > "$out"
- else
- echo "${ms},fail:${http_code}" > "$out"
- fi
-}
-
-export -f exec_one
-
-info "Firing ${SUCCESS} exec requests..."
-T_EXEC_START=$(python3 -c 'import time; print(int(time.time()*1000))')
-
-pids=()
-for sid in "${SANDBOX_IDS[@]}"; do
- exec_one "$sid" &
- pids+=($!)
-done
-
-for pid in "${pids[@]}"; do
- wait $pid 2>/dev/null || true
-done
-
-T_EXEC_END=$(python3 -c 'import time; print(int(time.time()*1000))')
-EXEC_WALL=$((T_EXEC_END - T_EXEC_START))
-
-EXEC_OK=0
-EXEC_FAIL=0
-EXEC_TIMES=()
-for sid in "${SANDBOX_IDS[@]}"; do
- line=$(cat "${WORK}/exec-${sid}.txt" 2>/dev/null) || line="0,missing"
- ms=$(echo "$line" | cut -d, -f1)
- st=$(echo "$line" | cut -d, -f2)
- EXEC_TIMES+=("$ms")
- if [[ "$st" == "ok" ]]; then EXEC_OK=$((EXEC_OK + 1)); else EXEC_FAIL=$((EXEC_FAIL + 1)); fi
-done
-
-ok "Exec: ${EXEC_OK}/${SUCCESS} succeeded (wall: ${EXEC_WALL}ms)"
-if [[ $EXEC_FAIL -gt 0 ]]; then fail "Exec failed: ${EXEC_FAIL}"; fi
-
-if [[ ${#EXEC_TIMES[@]} -gt 0 ]]; then
- SORTED_E=($(printf '%s\n' "${EXEC_TIMES[@]}" | sort -n))
- NUM_E=${#SORTED_E[@]}
- echo -e " Exec latency:"
- echo -e " Min: ${SORTED_E[0]}ms"
- echo -e " Median: ${SORTED_E[$((NUM_E / 2))]}ms"
- echo -e " P95: ${SORTED_E[$((NUM_E * 95 / 100))]}ms"
- echo -e " Max: ${SORTED_E[$((NUM_E - 1))]}ms"
-fi
-
-# ─────────────────────────────────────────────────────────
-# Phase 3: Worker resource usage snapshot
-# ─────────────────────────────────────────────────────────
-header "PHASE 3: Worker resource usage with ${SUCCESS} active sandboxes"
-
-ssh -i ~/.ssh/opensandbox-digger.pem -o StrictHostKeyChecking=no -o ConnectTimeout=10 [email protected] \
- "echo '=== Memory ===' && free -g && echo '' && \
- echo '=== Firecracker VMs ===' && ps aux | grep 'firecracker --api-sock' | grep -v grep | wc -l && echo '' && \
- echo '=== TAP devices ===' && ip link show | grep fc-tap | wc -l && echo '' && \
- echo '=== CPU load ===' && uptime && echo '' && \
- echo '=== Disk ===' && df -h /data" 2>/dev/null || fail "Could not SSH to worker"
-
-# ─────────────────────────────────────────────────────────
-# Phase 4: Destroy all sandboxes simultaneously
-# ─────────────────────────────────────────────────────────
-header "PHASE 4: Destroying ${SUCCESS} sandboxes simultaneously"
-
-T_DEL_START=$(python3 -c 'import time; print(int(time.time()*1000))')
-
-pids=()
-for sid in "${SANDBOX_IDS[@]}"; do
- curl -s -X DELETE "${SERVER}/api/sandboxes/${sid}" \
- -H "X-API-Key: ${API_KEY}" --max-time 30 > /dev/null 2>&1 &
- pids+=($!)
-done
-
-for pid in "${pids[@]}"; do
- wait $pid 2>/dev/null || true
-done
-
-T_DEL_END=$(python3 -c 'import time; print(int(time.time()*1000))')
-DEL_MS=$((T_DEL_END - T_DEL_START))
-
-ok "All ${SUCCESS} sandboxes deleted in $((DEL_MS/1000))s"
-
-sleep 5
-
-info "Post-cleanup worker state:"
-ssh -i ~/.ssh/opensandbox-digger.pem -o StrictHostKeyChecking=no -o ConnectTimeout=10 [email protected] \
- "echo 'Firecracker VMs:' && ps aux | grep 'firecracker --api-sock' | grep -v grep | wc -l && \
- echo 'Memory:' && free -g | head -2" 2>/dev/null || true
-
-# ─────────────────────────────────────────────────────────
-header "RESULTS SUMMARY"
-echo ""
-echo -e " ${BOLD}Target:${NC} ${TOTAL} sandboxes"
-echo -e " ${BOLD}Created:${NC} ${GREEN}${SUCCESS}${NC} (${FAIL} failed)"
-echo -e " ${BOLD}Exec success:${NC} ${GREEN}${EXEC_OK}${NC}/${SUCCESS}"
-echo -e " ${BOLD}Create wall time:${NC} ${WALL_SECS}s"
-echo -e " ${BOLD}Delete wall time:${NC} $((DEL_MS/1000))s"
-if [[ ${#CREATE_TIMES[@]} -gt 0 ]]; then
- echo -e " ${BOLD}Create latency:${NC} min=${MIN_C}ms med=${MED_C}ms avg=${AVG_C}ms p95=${P95_C}ms max=${MAX_C}ms"
-fi
-echo ""
-if [[ $SUCCESS -ge $TOTAL ]]; then
- echo -e " ${BOLD}${GREEN}✓ ALL ${TOTAL} SANDBOXES CREATED AND EXECUTED SUCCESSFULLY${NC}"
-else
- echo -e " ${BOLD}${RED}✗ Only ${SUCCESS}/${TOTAL} sandboxes created${NC}"
-fi
-echo ""
diff --git a/scripts/test-autoscale.sh b/scripts/test-autoscale.sh
deleted file mode 100755
index c73ebaff..00000000
--- a/scripts/test-autoscale.sh
+++ /dev/null
@@ -1,213 +0,0 @@
-#!/usr/bin/env bash
-set -o pipefail
-
-SERVER="https://app.opensandbox.ai"
-API_KEY="osb_600b1a9ba2e515c6e54141588da39204d5123cb4b1a28da22b7bd92b88be1534"
-AUTH_HEADER="X-API-Key: $API_KEY"
-SSH="ssh -i ~/.ssh/opensandbox-digger.pem -o StrictHostKeyChecking=no -o ConnectTimeout=5"
-
-RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'
-CYAN='\033[0;36m'; BOLD='\033[1m'; NC='\033[0m'
-
-SANDBOX_IDS=()
-
-info() { echo -e "${CYAN}[INFO]${NC} $*"; }
-ok() { echo -e "${GREEN}[OK]${NC} $*"; }
-fail() { echo -e "${RED}[FAIL]${NC} $*"; }
-warn() { echo -e "${YELLOW}[WARN]${NC} $*"; }
-header(){ echo -e "\n${BOLD}${CYAN}━━━ $* ━━━${NC}"; }
-
-api() {
- local method="$1" path="$2" body="${3:-}"
- if [[ -n "$body" ]]; then
- curl -s -X "$method" "$SERVER/api$path" -H "$AUTH_HEADER" -H "Content-Type: application/json" -d "$body"
- else
- curl -s -X "$method" "$SERVER/api$path" -H "$AUTH_HEADER"
- fi
-}
-
-create_sandbox() {
- local resp sid
- for retry in 1 2 3; do
- resp=$(api POST /sandboxes '{"template":"base","timeout":600}')
- sid=$(echo "$resp" | python3 -c "import sys,json; print(json.load(sys.stdin).get('sandboxID',''))" 2>/dev/null)
- if [[ -n "$sid" && "$sid" != "None" && "$sid" != "" ]]; then
- echo "$sid"
- return 0
- fi
- sleep 3
- done
- echo "FAILED: $resp" >&2
- return 1
-}
-
-worker_of() { api GET "/sandboxes/$1" | python3 -c "import sys,json; print(json.load(sys.stdin).get('workerID',''))" 2>/dev/null; }
-workers() { api GET /workers; }
-worker_count(){ workers | python3 -c "
-import sys,json
-d=json.load(sys.stdin)
-if isinstance(d,list): print(len(d))
-else: print(0)
-" 2>/dev/null; }
-worker_ids() { workers | python3 -c "
-import sys,json
-d=json.load(sys.stdin)
-if isinstance(d,list):
- for w in d: print(w['worker_id'])
-" 2>/dev/null; }
-worker_table(){ workers | python3 -c "
-import sys,json
-d=json.load(sys.stdin)
-if not isinstance(d,list): print(' (no workers)'); sys.exit()
-for w in d:
- u = w['current']/w['capacity']*100 if w['capacity']>0 else 0
- print(f\" {w['worker_id']}: {w['current']}/{w['capacity']} ({u:.0f}%)\")
-" 2>/dev/null; }
-
-cleanup() {
- header "CLEANUP"
- if [[ ${#SANDBOX_IDS[@]} -gt 0 ]]; then
- info "Destroying ${#SANDBOX_IDS[@]} sandboxes..."
- for sid in "${SANDBOX_IDS[@]}"; do
- api DELETE "/sandboxes/$sid" > /dev/null 2>&1
- done
- SANDBOX_IDS=()
- fi
- ok "Done"
-}
-trap cleanup EXIT
-
-# ═══════════════════════════════════════════════════════════
-header "PHASE 1: Baseline"
-# ═══════════════════════════════════════════════════════════
-info "Waiting for worker registry to populate..."
-for attempt in $(seq 1 12); do
- INITIAL_WORKERS=$(worker_count)
- if [[ "$INITIAL_WORKERS" -gt 0 ]] 2>/dev/null; then break; fi
- sleep 5
-done
-INITIAL_WORKER_ID=$(worker_ids | head -1)
-if [[ -z "$INITIAL_WORKER_ID" ]]; then
- fail "No workers found after 60s"
- exit 1
-fi
-info "Workers: $INITIAL_WORKERS Initial: $INITIAL_WORKER_ID"
-worker_table
-
-# ═══════════════════════════════════════════════════════════
-header "PHASE 2: Fill to 80% (4/5 sandboxes)"
-# ═══════════════════════════════════════════════════════════
-for i in 1 2 3 4; do
- sid=$(create_sandbox)
- SANDBOX_IDS+=("$sid")
- ok "$i/4: $sid → $(worker_of "$sid")"
-done
-sleep 5
-worker_table
-
-# ═══════════════════════════════════════════════════════════
-header "PHASE 3: Wait for new worker"
-# ═══════════════════════════════════════════════════════════
-info "Polling every 10s (up to 15 min)..."
-for i in $(seq 10 10 900); do
- sleep 10
- n=$(worker_count)
- echo -e " ${i}s workers=$n"
- if [[ "$n" -gt "$INITIAL_WORKERS" ]]; then
- ok "New worker appeared at ${i}s!"
- worker_table
- NEW_WORKER_ID=$(worker_ids | grep -v "$INITIAL_WORKER_ID" | head -1)
- info "New worker: $NEW_WORKER_ID"
- break
- fi
- if [[ "$i" -ge 900 ]]; then
- fail "Timed out after 15 min"
- $SSH $CP "sudo journalctl -u opensandbox-server --no-pager -n 20 --grep scaler" 2>/dev/null
- exit 1
- fi
-done
-
-# ═══════════════════════════════════════════════════════════
-header "PHASE 4: Place sandbox on new worker"
-# ═══════════════════════════════════════════════════════════
-sid=$(create_sandbox)
-SANDBOX_IDS+=("$sid")
-w=$(worker_of "$sid")
-if [[ "$w" == "$NEW_WORKER_ID" ]]; then
- ok "$sid → NEW worker $w"
-else
- warn "$sid → $w (expected $NEW_WORKER_ID)"
-fi
-
-# ═══════════════════════════════════════════════════════════
-header "PHASE 5: Cross-worker migration"
-# ═══════════════════════════════════════════════════════════
-MIGRATE_SID=""
-info "Looking for sandbox on initial worker ($INITIAL_WORKER_ID) from ${#SANDBOX_IDS[@]} sandboxes..."
-for sid in "${SANDBOX_IDS[@]}"; do
- w=$(worker_of "$sid")
- info " $sid → worker=$w"
- if [[ "$w" == "$INITIAL_WORKER_ID" ]]; then MIGRATE_SID="$sid"; break; fi
-done
-
-if [[ -z "$MIGRATE_SID" ]]; then
- warn "No sandbox on initial worker to migrate"
-else
- info "Hibernate $MIGRATE_SID (on $INITIAL_WORKER_ID)..."
- hib=$(api POST "/sandboxes/$MIGRATE_SID/hibernate")
- echo "$hib" | python3 -c "import sys,json; d=json.load(sys.stdin); print(f' status={d.get(\"status\")} key={d.get(\"checkpointKey\",\"\")[:40]}')" 2>/dev/null
-
- info "Waiting 60s for S3 upload (includes workspace.ext4)..."
- sleep 60
-
- info "Waking $MIGRATE_SID..."
- wake=$(api POST "/sandboxes/$MIGRATE_SID/wake" '{"timeout":300}')
- wake_worker=$(echo "$wake" | python3 -c "import sys,json; print(json.load(sys.stdin).get('workerID',''))" 2>/dev/null)
-
- if [[ "$wake_worker" != "$INITIAL_WORKER_ID" && -n "$wake_worker" && "$wake_worker" != "None" ]]; then
- ok "MIGRATED: $INITIAL_WORKER_ID → $wake_worker"
- elif [[ "$wake_worker" == "$INITIAL_WORKER_ID" ]]; then
- warn "Woke on same worker (it was least-loaded)"
- else
- fail "Wake failed: $wake"
- fi
-fi
-
-# ═══════════════════════════════════════════════════════════
-header "PHASE 6: Exec on both workers"
-# ═══════════════════════════════════════════════════════════
-info "Testing exec on ${#SANDBOX_IDS[@]} sandboxes..."
-for sid in "${SANDBOX_IDS[@]}"; do
- w=$(worker_of "$sid")
- resp=$(api POST "/sandboxes/$sid/commands" '{"cmd":"echo ok"}')
- ec=$(echo "$resp" | python3 -c "import sys,json; print(json.load(sys.stdin).get('exitCode','?'))" 2>/dev/null)
- [[ "$ec" == "0" ]] && ok "$sid ($w)" || fail "$sid ($w) exit=$ec resp=$resp"
-done
-
-# ═══════════════════════════════════════════════════════════
-header "PHASE 7: Scale down"
-# ═══════════════════════════════════════════════════════════
-info "Destroying ${#SANDBOX_IDS[@]} sandboxes..."
-for sid in "${SANDBOX_IDS[@]}"; do
- resp=$(api DELETE "/sandboxes/$sid")
- info " destroyed $sid"
-done
-SANDBOX_IDS=()
-info "Waiting 30s for worker counts to update..."
-sleep 30
-worker_table
-
-info "Waiting for scale-down (up to 5 min)..."
-for i in $(seq 10 10 300); do
- sleep 10
- n=$(worker_count)
- echo -e " ${i}s workers=$n"
- if [[ "$n" -le "$INITIAL_WORKERS" ]]; then
- ok "Scaled down at ${i}s"
- break
- fi
-done
-
-header "DONE"
-worker_table
diff --git a/scripts/test-cli.sh b/scripts/test-cli.sh
index 4b808229..33455676 100755
--- a/scripts/test-cli.sh
+++ b/scripts/test-cli.sh
@@ -3,7 +3,7 @@ set -euo pipefail
# CLI integration test — runs against a live OpenComputer server.
# Usage: ./scripts/test-cli.sh [api-url] [api-key]
-# e.g. ./scripts/test-cli.sh https://dev.opensandbox.ai osb_600b1a...
+# e.g. ./scripts/test-cli.sh https://dev.opensandbox.ai osb_...
# Defaults to dev.opensandbox.ai if no URL provided.
API_URL="${1:?Usage: $0 <api-url> <api-key>}"
diff --git a/scripts/test-noisy-neighbor.sh b/scripts/test-noisy-neighbor.sh
deleted file mode 100755
index ff846923..00000000
--- a/scripts/test-noisy-neighbor.sh
+++ /dev/null
@@ -1,337 +0,0 @@
-#!/usr/bin/env bash
-set -uo pipefail
-
-# Noisy Neighbor / Resource Pressure Autoscaling Test
-#
-# Proves that the scaler detects CPU/memory pressure (not just sandbox count)
-# and spawns a new worker even when count-based utilization is low.
-#
-# Flow:
-# 1. Create ~50 sandboxes (well below 400 capacity, ~12.5% count util)
-# 2. Inject CPU + memory load into each sandbox
-# 3. Watch worker CPU/memory climb via /workers endpoint
-# 4. Wait for scaler to spawn a new worker based on resource pressure
-# 5. Create a new sandbox and verify it routes to the healthy worker
-# 6. Cleanup
-#
-# Usage: ./scripts/test-noisy-neighbor.sh [server-url] [api-key] [count]
-
-SERVER="${1:-http://3.135.246.117:8080}"
-API_KEY="${2:-osb_600b1a9ba2e515c6e54141588da39204d5123cb4b1a28da22b7bd92b88be1534}"
-TOTAL="${3:-60}"
-
-# Colors
-RED='\033[0;31m'
-GREEN='\033[0;32m'
-YELLOW='\033[1;33m'
-CYAN='\033[0;36m'
-BOLD='\033[1m'
-NC='\033[0m'
-
-header() { echo -e "\n${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"; echo -e "${BOLD}${CYAN} $1${NC}"; echo -e "${BOLD}${CYAN}═══════════════════════════════════════════════════════════${NC}"; }
-info() { echo -e "${YELLOW}→${NC} $1"; }
-ok() { echo -e "${GREEN}✓${NC} $1"; }
-fail() { echo -e "${RED}✗${NC} $1"; }
-
-api() {
- local method="$1" path="$2"
- shift 2
- curl -s -w "\n%{http_code}" -X "$method" "${SERVER}/api${path}" \
- -H "X-API-Key: ${API_KEY}" \
- -H "Content-Type: application/json" "$@"
-}
-
-api_body() {
- local method="$1" path="$2"
- shift 2
- curl -s -X "$method" "${SERVER}/api${path}" \
- -H "X-API-Key: ${API_KEY}" \
- -H "Content-Type: application/json" "$@"
-}
-
-SANDBOX_IDS=()
-
-cleanup() {
- header "CLEANUP"
- if [[ ${#SANDBOX_IDS[@]} -gt 0 ]]; then
- info "Destroying ${#SANDBOX_IDS[@]} sandboxes..."
- local pids=()
- for sid in "${SANDBOX_IDS[@]}"; do
- curl -s -X DELETE "${SERVER}/api/sandboxes/${sid}" \
- -H "X-API-Key: ${API_KEY}" --max-time 10 > /dev/null 2>&1 &
- pids+=($!)
- done
- for pid in "${pids[@]}"; do
- wait $pid 2>/dev/null || true
- done
- ok "All sandboxes destroyed"
- SANDBOX_IDS=()
- fi
- ok "Done"
-}
-trap cleanup EXIT
-
-worker_count() {
- api_body GET /workers | python3 -c "
-import sys,json
-d=json.load(sys.stdin)
-print(len(d) if isinstance(d,list) else 0)" 2>/dev/null
-}
-
-worker_table() {
- api_body GET /workers | python3 -c "
-import sys,json
-d=json.load(sys.stdin)
-if not isinstance(d,list):
- print(' (no workers)')
- sys.exit()
-for w in d:
- u = w['current']/w['capacity']*100 if w['capacity']>0 else 0
- print(f\" {w['worker_id'][:12]}... cpu={w.get('cpu_pct',0):.1f}% mem={w.get('mem_pct',0):.1f}% sandboxes={w['current']}/{w['capacity']} ({u:.0f}%)\")" 2>/dev/null
-}
-
-worker_ids() {
- api_body GET /workers | python3 -c "
-import sys,json
-d=json.load(sys.stdin)
-if isinstance(d,list):
- for w in d: print(w['worker_id'])" 2>/dev/null
-}
-
-worker_resources() {
- api_body GET /workers | python3 -c "
-import sys,json
-d=json.load(sys.stdin)
-if not isinstance(d,list): sys.exit(1)
-for w in d:
- print(f\"cpu={w.get('cpu_pct',0):.1f} mem={w.get('mem_pct',0):.1f}\")" 2>/dev/null
-}
-
-# ─────────────────────────────────────────────────────────
-header "NOISY NEIGHBOR / RESOURCE PRESSURE TEST"
-echo -e "Server: ${SERVER}"
-echo -e "API Key: ${API_KEY:0:12}..."
-echo -e "Target: ${BOLD}${TOTAL} noisy sandboxes${NC}"
-echo ""
-
-# ─────────────────────────────────────────────────────────
-header "PHASE 1: Baseline"
-info "Checking initial worker state..."
-for attempt in $(seq 1 12); do
- INITIAL_WORKERS=$(worker_count)
- if [[ "$INITIAL_WORKERS" -gt 0 ]] 2>/dev/null; then break; fi
- sleep 5
-done
-INITIAL_WORKER_ID=$(worker_ids | head -1)
-if [[ -z "$INITIAL_WORKER_ID" ]]; then
- fail "No workers found after 60s"
- exit 1
-fi
-ok "Workers: $INITIAL_WORKERS Initial: ${INITIAL_WORKER_ID:0:12}..."
-worker_table
-
-# ─────────────────────────────────────────────────────────
-header "PHASE 2: Create ${TOTAL} sandboxes"
-info "Creating ${TOTAL} sandboxes (will be ~${TOTAL}/400 = $(python3 -c "print(f'{${TOTAL}/400*100:.0f}')")% count utilization)..."
-
-WORK=$(mktemp -d)
-trap "rm -rf $WORK; cleanup" EXIT
-
-create_one() {
- local idx=$1
- local resp
- resp=$(curl -s -w "\n%{http_code}" -X POST "${SERVER}/api/sandboxes" \
- -H "X-API-Key: ${API_KEY}" \
- -H "Content-Type: application/json" \
- -d '{"templateID":"base","timeout":900,"cpuCount":1,"memoryMB":1024}' \
- --max-time 120 2>/dev/null) || true
-
- local body http_code
- body=$(echo "$resp" | sed '$d')
- http_code=$(echo "$resp" | tail -1)
-
- if [[ "$http_code" -ge 200 && "$http_code" -lt 300 ]] 2>/dev/null; then
- local sid
- sid=$(echo "$body" | python3 -c "import sys,json; print(json.load(sys.stdin)['sandboxID'])" 2>/dev/null) || true
- echo "$sid" > "${WORK}/create-${idx}.txt"
- else
- echo "FAIL:${http_code}" > "${WORK}/create-${idx}.txt"
- fi
-}
-
-export -f create_one
-export SERVER API_KEY WORK
-
-# Fire all creates simultaneously
-pids=()
-for i in $(seq 1 $TOTAL); do
- create_one $i &
- pids+=($!)
-done
-
-info "Waiting for ${#pids[@]} creates to complete..."
-for pid in "${pids[@]}"; do
- wait $pid 2>/dev/null || true
-done
-
-# Collect results
-SUCCESS=0
-FAIL_COUNT=0
-for f in ${WORK}/create-*.txt; do
- [[ -f "$f" ]] || continue
- sid=$(cat "$f")
- if [[ "$sid" == FAIL:* ]]; then
- FAIL_COUNT=$((FAIL_COUNT + 1))
- elif [[ -n "$sid" ]]; then
- SANDBOX_IDS+=("$sid")
- SUCCESS=$((SUCCESS + 1))
- fi
-done
-
-ok "Created: ${SUCCESS}/${TOTAL} sandboxes"
-if [[ $FAIL_COUNT -gt 0 ]]; then
- fail "Failed: ${FAIL_COUNT}"
-fi
-worker_table
-
-if [[ $SUCCESS -lt 10 ]]; then
- fail "Too few sandboxes created ($SUCCESS) — aborting"
- exit 1
-fi
-
-# ─────────────────────────────────────────────────────────
-header "PHASE 3: Inject CPU load into all ${SUCCESS} sandboxes"
-info "Running CPU burn (yes >/dev/null) in each sandbox..."
-info "Each sandbox pins 1 vCPU at 100% — ${SUCCESS} sandboxes on 64 vCPU host = ~$(python3 -c "print(f'{min(${SUCCESS}/64*100,100):.0f}')")% CPU"
-
-# CPU burn: `yes >/dev/null` pins 1 vCPU at 100%
-# No python3 in base image, so we use pure bash/coreutils
-LOAD_CMD='{"cmd":"bash","args":["-c","nohup bash -c \"yes >/dev/null\" </dev/null &>/dev/null & echo started"]}'
-
-inject_one() {
- local sid=$1
- curl -s -X POST "${SERVER}/api/sandboxes/${sid}/commands" \
- -H "X-API-Key: ${API_KEY}" \
- -H "Content-Type: application/json" \
- -d "$LOAD_CMD" \
- --max-time 30 > /dev/null 2>&1
-}
-
-export -f inject_one
-export LOAD_CMD
-
-pids=()
-for sid in "${SANDBOX_IDS[@]}"; do
- inject_one "$sid" &
- pids+=($!)
-done
-
-info "Waiting for ${#pids[@]} load injections..."
-for pid in "${pids[@]}"; do
- wait $pid 2>/dev/null || true
-done
-
-ok "Load injected into all sandboxes"
-info "Waiting 15s for load to ramp up and heartbeats to report..."
-sleep 15
-worker_table
-
-# ─────────────────────────────────────────────────────────
-header "PHASE 4: Monitor resource pressure + wait for scale-up"
-info "Polling every 15s for resource pressure and new workers..."
-info "Scaler triggers at CPU > 80% or memory > 85%"
-info "Scale-up cooldown is 5 min, so may take up to ~7 min..."
-
-SCALED=0
-for i in $(seq 15 15 600); do
- sleep 15
-
- # Show current state
- echo ""
- echo -e " ${BOLD}[${i}s]${NC}"
- worker_table
-
- # Check if a new worker appeared
- CURRENT_WORKERS=$(worker_count)
- if [[ "$CURRENT_WORKERS" -gt "$INITIAL_WORKERS" ]] 2>/dev/null; then
- echo ""
- ok "NEW WORKER DETECTED at ${i}s!"
- NEW_WORKER_ID=$(worker_ids | grep -v "$INITIAL_WORKER_ID" | head -1)
- ok "New worker: ${NEW_WORKER_ID:0:12}..."
- worker_table
- SCALED=1
- break
- fi
-
- if [[ "$i" -ge 600 ]]; then
- echo ""
- fail "Timed out after 10 min — no new worker spawned"
- info "Checking server logs for scaler activity..."
- # Try to fetch recent scaler logs
- ssh -i ~/.ssh/opensandbox-digger.pem -o StrictHostKeyChecking=no -o ConnectTimeout=5 \
- "sudo journalctl -u opensandbox-server --no-pager -n 30 --grep scaler" 2>/dev/null || true
- exit 1
- fi
-done
-
-# ─────────────────────────────────────────────────────────
-if [[ $SCALED -eq 1 ]]; then
- header "PHASE 5: Verify new sandbox routes to healthy worker"
- info "Creating a new sandbox — should route to the new (unloaded) worker..."
-
- RESP=$(curl -s -w "\n%{http_code}" -X POST "${SERVER}/api/sandboxes" \
- -H "X-API-Key: ${API_KEY}" \
- -H "Content-Type: application/json" \
- -d '{"templateID":"base","timeout":300,"cpuCount":1,"memoryMB":1024}' \
- --max-time 120)
-
- BODY=$(echo "$RESP" | sed '$d')
- HTTP_CODE=$(echo "$RESP" | tail -1)
-
- if [[ "$HTTP_CODE" -ge 200 && "$HTTP_CODE" -lt 300 ]] 2>/dev/null; then
- NEW_SID=$(echo "$BODY" | python3 -c "import sys,json; print(json.load(sys.stdin)['sandboxID'])" 2>/dev/null)
- SANDBOX_IDS+=("$NEW_SID")
-
- # Check which worker it landed on
- DISCOVER=$(api_body GET "/sandboxes/${NEW_SID}")
- PLACED_WORKER=$(echo "$DISCOVER" | python3 -c "import sys,json; print(json.load(sys.stdin).get('workerID',''))" 2>/dev/null)
-
- if [[ "$PLACED_WORKER" == "$NEW_WORKER_ID" ]]; then
- ok "New sandbox $NEW_SID → NEW worker ${PLACED_WORKER:0:12}... (resource-aware routing works!)"
- elif [[ "$PLACED_WORKER" != "$INITIAL_WORKER_ID" ]]; then
- ok "New sandbox $NEW_SID → worker ${PLACED_WORKER:0:12}... (not the overloaded one)"
- else
- fail "New sandbox $NEW_SID → OVERLOADED worker ${PLACED_WORKER:0:12}... (routing not resource-aware?)"
- fi
-
- # Verify exec works on new worker
- EXEC_RESP=$(api_body POST "/sandboxes/${NEW_SID}/commands" -d '{"cmd":"echo","args":["hello from healthy worker"]}')
- STDOUT=$(echo "$EXEC_RESP" | python3 -c "import sys,json; print(json.load(sys.stdin).get('stdout','').strip())" 2>/dev/null)
- if [[ "$STDOUT" == "hello from healthy worker" ]]; then
- ok "Exec on new worker succeeded"
- else
- fail "Exec on new worker failed: $EXEC_RESP"
- fi
- else
- fail "Could not create verification sandbox: HTTP $HTTP_CODE"
- fi
-fi
-
-# ─────────────────────────────────────────────────────────
-header "RESULTS SUMMARY"
-echo ""
-echo -e " ${BOLD}Noisy sandboxes:${NC} ${SUCCESS}"
-echo -e " ${BOLD}Initial workers:${NC} ${INITIAL_WORKERS}"
-echo -e " ${BOLD}Final workers:${NC} $(worker_count)"
-echo -e " ${BOLD}Scale-up triggered:${NC} $([ $SCALED -eq 1 ] && echo -e "${GREEN}YES${NC}" || echo -e "${RED}NO${NC}")"
-echo ""
-worker_table
-echo ""
-if [[ $SCALED -eq 1 ]]; then
- echo -e " ${BOLD}${GREEN}✓ RESOURCE-PRESSURE AUTOSCALING WORKS${NC}"
-else
- echo -e " ${BOLD}${RED}✗ SCALE-UP NOT TRIGGERED${NC}"
-fi
-echo ""
-info "Cleanup will destroy all ${#SANDBOX_IDS[@]} sandboxes..."