protos: remove need for customname on ID fields

Credit to Aaron Lehmann for the implementation from SwarmKit.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day
2017-05-18 18:34:34 -07:00
parent 0dbe46d952
commit cb68150a2f
7 changed files with 77 additions and 21 deletions

View File

@@ -31,7 +31,7 @@ service Shim {
}
message CreateRequest {
string id = 1 [(gogoproto.customname) = "ID"];
string id = 1;
string bundle = 2;
string runtime = 3;
bool no_pivot = 4;
@@ -89,7 +89,7 @@ message StateRequest {
}
message StateResponse {
string id = 1 [(gogoproto.customname) = "ID"];
string id = 1;
string bundle = 2;
uint32 pid = 3;
containerd.v1.types.Status status = 4;
@@ -116,7 +116,7 @@ message CloseStdinRequest {
}
message ProcessesRequest {
string id = 1 [(gogoproto.customname) = "ID"];
string id = 1;
}
message ProcessesResponse{