Add sandbox shutdown API

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2022-12-09 09:41:42 -08:00
parent a7428f4473
commit d65269fda0
7 changed files with 409 additions and 239 deletions

View File

@@ -1071,6 +1071,19 @@ file {
message_type {
name: "PingResponse"
}
message_type {
name: "ShutdownSandboxRequest"
field {
name: "sandbox_id"
number: 1
label: LABEL_OPTIONAL
type: TYPE_STRING
json_name: "sandboxId"
}
}
message_type {
name: "ShutdownSandboxResponse"
}
service {
name: "Sandbox"
method {
@@ -1103,6 +1116,11 @@ file {
input_type: ".containerd.runtime.sandbox.v1.PingRequest"
output_type: ".containerd.runtime.sandbox.v1.PingResponse"
}
method {
name: "ShutdownSandbox"
input_type: ".containerd.runtime.sandbox.v1.ShutdownSandboxRequest"
output_type: ".containerd.runtime.sandbox.v1.ShutdownSandboxResponse"
}
}
options {
go_package: "github.com/containerd/containerd/api/runtime/sandbox/v1;sandbox"
@@ -4452,7 +4470,7 @@ file {
}
}
message_type {
name: "ControllerDeleteRequest"
name: "ControllerShutdownRequest"
field {
name: "sandbox_id"
number: 1
@@ -4462,7 +4480,7 @@ file {
}
}
message_type {
name: "ControllerDeleteResponse"
name: "ControllerShutdownResponse"
}
service {
name: "Store"
@@ -4520,9 +4538,9 @@ file {
output_type: ".containerd.services.sandbox.v1.ControllerStatusResponse"
}
method {
name: "Delete"
input_type: ".containerd.services.sandbox.v1.ControllerDeleteRequest"
output_type: ".containerd.services.sandbox.v1.ControllerDeleteResponse"
name: "Shutdown"
input_type: ".containerd.services.sandbox.v1.ControllerShutdownRequest"
output_type: ".containerd.services.sandbox.v1.ControllerShutdownResponse"
}
}
options {