2016-12-09 18:13:41 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package containerd.v1;
|
|
|
|
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
|
|
|
|
service ShimService {
|
2017-01-19 19:59:47 +00:00
|
|
|
rpc Create(CreateRequest) returns (CreateResponse);
|
|
|
|
rpc Start(StartRequest) returns (google.protobuf.Empty);
|
|
|
|
rpc Delete(DeleteRequest) returns (DeleteResponse);
|
|
|
|
rpc Exec(ExecRequest) returns (ExecResponse);
|
|
|
|
rpc Pty(PtyRequest) returns (google.protobuf.Empty);
|
|
|
|
}
|
|
|
|
|
|
|
|
message CreateRequest {
|
2017-01-19 22:16:50 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
|
|
string bundle = 2;
|
|
|
|
string runtime = 3;
|
2017-01-24 00:18:10 +00:00
|
|
|
bool no_pivot = 4;
|
|
|
|
bool terminal = 5;
|
|
|
|
string stdin = 6;
|
|
|
|
string stdout = 7;
|
|
|
|
string stderr = 8;
|
2017-01-19 19:59:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CreateResponse {
|
|
|
|
uint32 pid = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message StartRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteRequest {
|
2017-01-24 00:18:10 +00:00
|
|
|
uint32 pid = 1;
|
2017-01-19 19:59:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DeleteResponse {
|
|
|
|
uint32 exit_status = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExecRequest {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExecResponse {
|
|
|
|
uint32 pid = 1;
|
2016-12-09 18:13:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PtyRequest {
|
2017-01-24 00:18:10 +00:00
|
|
|
uint32 pid = 1;
|
2016-12-16 22:18:33 +00:00
|
|
|
uint32 width = 2;
|
|
|
|
uint32 height = 3;
|
2016-12-09 18:13:41 +00:00
|
|
|
}
|