Add exec APIs
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
cccf5d3723
commit
7715ddcefa
19 changed files with 759 additions and 126 deletions
|
@ -16,6 +16,7 @@ service ContainerService {
|
|||
rpc List(ListRequest) returns (ListResponse);
|
||||
rpc Kill(KillRequest) returns (google.protobuf.Empty);
|
||||
rpc Events(EventsRequest) returns (stream containerd.v1.types.Event);
|
||||
rpc Exec(ExecRequest) returns (ExecResponse);
|
||||
}
|
||||
|
||||
message CreateRequest {
|
||||
|
@ -66,3 +67,16 @@ message KillRequest {
|
|||
|
||||
message EventsRequest {
|
||||
}
|
||||
|
||||
message ExecRequest {
|
||||
string id = 1 [(gogoproto.customname) = "ID"];
|
||||
bool terminal = 2;
|
||||
string stdin = 3;
|
||||
string stdout = 4;
|
||||
string stderr = 5;
|
||||
google.protobuf.Any spec = 6;
|
||||
}
|
||||
|
||||
message ExecResponse {
|
||||
uint32 pid = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue