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

@@ -15,7 +15,7 @@ enum Status {
}
message Container {
string id = 1 [(gogoproto.customname) = "ID"];
string id = 1;
uint32 pid = 2;
Status status = 3;
}
@@ -39,7 +39,7 @@ message User {
}
message Event {
string id = 1 [(gogoproto.customname) = "ID"];
string id = 1;
enum EventType {
EXIT = 0;