add support to kill container process by pid
This adds support for signalling a container process by pid. Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> make Ps more extensible Signed-off-by: Evan Hazlett <ejhazlett@gmail.com> ps: windows support Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
@@ -22,11 +22,12 @@ service ContainerService {
|
||||
rpc CloseStdin(CloseStdinRequest) returns (google.protobuf.Empty);
|
||||
rpc Pause(PauseRequest) returns (google.protobuf.Empty);
|
||||
rpc Resume(ResumeRequest) returns (google.protobuf.Empty);
|
||||
rpc Ps(PsRequest) returns (PsResponse);
|
||||
}
|
||||
|
||||
message CreateRequest {
|
||||
string id = 1 [(gogoproto.customname) = "ID"];
|
||||
google.protobuf.Any spec = 2;
|
||||
google.protobuf.Any spec = 2;
|
||||
repeated containerd.v1.types.Mount rootfs = 3;
|
||||
string runtime = 4;
|
||||
string stdin = 5;
|
||||
@@ -68,7 +69,10 @@ message ListResponse {
|
||||
message KillRequest {
|
||||
string id = 1 [(gogoproto.customname) = "ID"];
|
||||
uint32 signal = 2;
|
||||
bool all = 3;
|
||||
oneof pid_or_all {
|
||||
bool all = 3;
|
||||
uint32 pid = 4;
|
||||
}
|
||||
}
|
||||
|
||||
message EventsRequest {
|
||||
@@ -106,3 +110,16 @@ message PauseRequest {
|
||||
message ResumeRequest {
|
||||
string id = 1 [(gogoproto.customname) = "ID"];
|
||||
}
|
||||
|
||||
message PsRequest {
|
||||
string id = 1 [(gogoproto.customname) = "ID"];
|
||||
}
|
||||
|
||||
message Ps {
|
||||
uint32 pid = 1;
|
||||
google.protobuf.Any runtime_data = 2;
|
||||
}
|
||||
|
||||
message PsResponse{
|
||||
repeated Ps ps = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user