Cleanup sandbox interfaces

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2022-10-25 12:31:32 -04:00
parent b9206de760
commit b7d0d12715
14 changed files with 895 additions and 842 deletions

View File

@@ -805,7 +805,7 @@ file {
dependency: "google/protobuf/timestamp.proto"
dependency: "github.com/containerd/containerd/api/types/mount.proto"
message_type {
name: "StartSandboxRequest"
name: "CreateSandboxRequest"
field {
name: "sandbox_id"
number: 1
@@ -837,6 +837,19 @@ file {
json_name: "options"
}
}
message_type {
name: "CreateSandboxResponse"
}
message_type {
name: "StartSandboxRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "StartSandboxResponse"
field {
@@ -846,6 +859,14 @@ file {
type: TYPE_UINT32
json_name: "pid"
}
field {
name: "created_at"
number: 2
label: LABEL_OPTIONAL
type: TYPE_MESSAGE
type_name: ".google.protobuf.Timestamp"
json_name: "createdAt"
}
}
message_type {
name: "StopSandboxRequest"
@@ -954,32 +975,6 @@ file {
json_name: "sandboxId"
}
}
message_type {
name: "PauseSandboxRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "PauseSandboxResponse"
}
message_type {
name: "ResumeSandboxRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "ResumeSandboxResponse"
}
message_type {
name: "SandboxStatusResponse"
field {
@@ -1042,6 +1037,11 @@ file {
}
service {
name: "Sandbox"
method {
name: "CreateSandbox"
input_type: ".containerd.runtime.sandbox.v1.CreateSandboxRequest"
output_type: ".containerd.runtime.sandbox.v1.CreateSandboxResponse"
}
method {
name: "StartSandbox"
input_type: ".containerd.runtime.sandbox.v1.StartSandboxRequest"
@@ -1057,21 +1057,6 @@ file {
input_type: ".containerd.runtime.sandbox.v1.WaitSandboxRequest"
output_type: ".containerd.runtime.sandbox.v1.WaitSandboxResponse"
}
method {
name: "UpdateSandbox"
input_type: ".containerd.runtime.sandbox.v1.UpdateSandboxRequest"
output_type: ".containerd.runtime.sandbox.v1.UpdateSandboxResponse"
}
method {
name: "PauseSandbox"
input_type: ".containerd.runtime.sandbox.v1.PauseSandboxRequest"
output_type: ".containerd.runtime.sandbox.v1.PauseSandboxResponse"
}
method {
name: "ResumeSandbox"
input_type: ".containerd.runtime.sandbox.v1.ResumeSandboxRequest"
output_type: ".containerd.runtime.sandbox.v1.ResumeSandboxResponse"
}
method {
name: "SandboxStatus"
input_type: ".containerd.runtime.sandbox.v1.SandboxStatusRequest"
@@ -4177,7 +4162,7 @@ file {
}
}
message_type {
name: "ControllerStartRequest"
name: "ControllerCreateRequest"
field {
name: "sandbox_id"
number: 1
@@ -4202,6 +4187,26 @@ file {
json_name: "options"
}
}
message_type {
name: "ControllerCreateResponse"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "ControllerStartRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "ControllerStartResponse"
field {
@@ -4403,6 +4408,11 @@ file {
}
service {
name: "Controller"
method {
name: "Create"
input_type: ".containerd.services.sandbox.v1.ControllerCreateRequest"
output_type: ".containerd.services.sandbox.v1.ControllerCreateResponse"
}
method {
name: "Start"
input_type: ".containerd.services.sandbox.v1.ControllerStartRequest"