Add ContainerService.Info to get info about a single container
For clients which only want to know about one container this is simpler than searching the result of execution.List. Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
660783cb00
commit
cc253b0f18
5 changed files with 291 additions and 57 deletions
|
@ -12,6 +12,7 @@ service ContainerService {
|
|||
rpc Create(CreateRequest) returns (CreateResponse);
|
||||
rpc Start(StartRequest) returns (google.protobuf.Empty);
|
||||
rpc Delete(DeleteRequest) returns (google.protobuf.Empty);
|
||||
rpc Info(InfoRequest) returns (containerd.v1.types.Container);
|
||||
rpc List(ListRequest) returns (ListResponse);
|
||||
rpc Events(EventsRequest) returns (stream containerd.v1.types.Event);
|
||||
}
|
||||
|
@ -45,6 +46,10 @@ message DeleteResponse {
|
|||
uint32 exit_status = 2;
|
||||
}
|
||||
|
||||
message InfoRequest {
|
||||
string id = 1 [(gogoproto.customname) = "ID"];
|
||||
}
|
||||
|
||||
message ListRequest {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue