containerd/api/shim/shim.proto

48 lines
787 B
Protocol Buffer

syntax = "proto3";
package containerd.v1;
import "google/protobuf/empty.proto";
import "gogoproto/gogo.proto";
service ShimService {
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 {
}
message CreateResponse {
uint32 pid = 1;
}
message StartRequest {
}
message DeleteRequest {
}
message DeleteResponse {
uint32 exit_status = 1;
}
message ExecRequest {
}
message ExecResponse {
uint32 pid = 1;
}
message PtyRequest {
string id = 1 [(gogoproto.customname) = "ID"];
uint32 width = 2;
uint32 height = 3;
}