Skip to content

Commit 05dc1c0

Browse files
committed
Update sandbox API to return target platform
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 39031d7 commit 05dc1c0

12 files changed

Lines changed: 1026 additions & 557 deletions

File tree

api/next.pb.txt

Lines changed: 86 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -798,12 +798,45 @@ file {
798798
}
799799
syntax: "proto3"
800800
}
801+
file {
802+
name: "github.com/containerd/containerd/api/types/platform.proto"
803+
package: "containerd.types"
804+
message_type {
805+
name: "Platform"
806+
field {
807+
name: "os"
808+
number: 1
809+
label: LABEL_OPTIONAL
810+
type: TYPE_STRING
811+
json_name: "os"
812+
}
813+
field {
814+
name: "architecture"
815+
number: 2
816+
label: LABEL_OPTIONAL
817+
type: TYPE_STRING
818+
json_name: "architecture"
819+
}
820+
field {
821+
name: "variant"
822+
number: 3
823+
label: LABEL_OPTIONAL
824+
type: TYPE_STRING
825+
json_name: "variant"
826+
}
827+
}
828+
options {
829+
go_package: "github.com/containerd/containerd/api/types;types"
830+
}
831+
syntax: "proto3"
832+
}
801833
file {
802834
name: "github.com/containerd/containerd/api/runtime/sandbox/v1/sandbox.proto"
803835
package: "containerd.runtime.sandbox.v1"
804836
dependency: "google/protobuf/any.proto"
805837
dependency: "google/protobuf/timestamp.proto"
806838
dependency: "github.com/containerd/containerd/api/types/mount.proto"
839+
dependency: "github.com/containerd/containerd/api/types/platform.proto"
807840
message_type {
808841
name: "CreateSandboxRequest"
809842
field {
@@ -868,6 +901,27 @@ file {
868901
json_name: "createdAt"
869902
}
870903
}
904+
message_type {
905+
name: "PlatformRequest"
906+
field {
907+
name: "sandbox_id"
908+
number: 1
909+
label: LABEL_OPTIONAL
910+
type: TYPE_STRING
911+
json_name: "sandboxId"
912+
}
913+
}
914+
message_type {
915+
name: "PlatformResponse"
916+
field {
917+
name: "platform"
918+
number: 1
919+
label: LABEL_OPTIONAL
920+
type: TYPE_MESSAGE
921+
type_name: ".containerd.types.Platform"
922+
json_name: "platform"
923+
}
924+
}
871925
message_type {
872926
name: "StopSandboxRequest"
873927
field {
@@ -1096,6 +1150,11 @@ file {
10961150
input_type: ".containerd.runtime.sandbox.v1.StartSandboxRequest"
10971151
output_type: ".containerd.runtime.sandbox.v1.StartSandboxResponse"
10981152
}
1153+
method {
1154+
name: "Platform"
1155+
input_type: ".containerd.runtime.sandbox.v1.PlatformRequest"
1156+
output_type: ".containerd.runtime.sandbox.v1.PlatformResponse"
1157+
}
10991158
method {
11001159
name: "StopSandbox"
11011160
input_type: ".containerd.runtime.sandbox.v1.StopSandboxRequest"
@@ -3361,38 +3420,6 @@ file {
33613420
}
33623421
syntax: "proto3"
33633422
}
3364-
file {
3365-
name: "github.com/containerd/containerd/api/types/platform.proto"
3366-
package: "containerd.types"
3367-
message_type {
3368-
name: "Platform"
3369-
field {
3370-
name: "os"
3371-
number: 1
3372-
label: LABEL_OPTIONAL
3373-
type: TYPE_STRING
3374-
json_name: "os"
3375-
}
3376-
field {
3377-
name: "architecture"
3378-
number: 2
3379-
label: LABEL_OPTIONAL
3380-
type: TYPE_STRING
3381-
json_name: "architecture"
3382-
}
3383-
field {
3384-
name: "variant"
3385-
number: 3
3386-
label: LABEL_OPTIONAL
3387-
type: TYPE_STRING
3388-
json_name: "variant"
3389-
}
3390-
}
3391-
options {
3392-
go_package: "github.com/containerd/containerd/api/types;types"
3393-
}
3394-
syntax: "proto3"
3395-
}
33963423
file {
33973424
name: "google/rpc/status.proto"
33983425
package: "google.rpc"
@@ -4139,6 +4166,7 @@ file {
41394166
dependency: "google/protobuf/timestamp.proto"
41404167
dependency: "github.com/containerd/containerd/api/types/sandbox.proto"
41414168
dependency: "github.com/containerd/containerd/api/types/mount.proto"
4169+
dependency: "github.com/containerd/containerd/api/types/platform.proto"
41424170
message_type {
41434171
name: "StoreCreateRequest"
41444172
field {
@@ -4344,6 +4372,27 @@ file {
43444372
}
43454373
}
43464374
}
4375+
message_type {
4376+
name: "ControllerPlatformRequest"
4377+
field {
4378+
name: "sandbox_id"
4379+
number: 1
4380+
label: LABEL_OPTIONAL
4381+
type: TYPE_STRING
4382+
json_name: "sandboxId"
4383+
}
4384+
}
4385+
message_type {
4386+
name: "ControllerPlatformResponse"
4387+
field {
4388+
name: "platform"
4389+
number: 1
4390+
label: LABEL_OPTIONAL
4391+
type: TYPE_MESSAGE
4392+
type_name: ".containerd.types.Platform"
4393+
json_name: "platform"
4394+
}
4395+
}
43474396
message_type {
43484397
name: "ControllerStopRequest"
43494398
field {
@@ -4538,6 +4587,11 @@ file {
45384587
input_type: ".containerd.services.sandbox.v1.ControllerStartRequest"
45394588
output_type: ".containerd.services.sandbox.v1.ControllerStartResponse"
45404589
}
4590+
method {
4591+
name: "Platform"
4592+
input_type: ".containerd.services.sandbox.v1.ControllerPlatformRequest"
4593+
output_type: ".containerd.services.sandbox.v1.ControllerPlatformResponse"
4594+
}
45414595
method {
45424596
name: "Stop"
45434597
input_type: ".containerd.services.sandbox.v1.ControllerStopRequest"

0 commit comments

Comments
 (0)