Add shim proto generation

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-01-19 11:59:47 -08:00
parent 3c44ec5dbc
commit e6de7ea4b5
3 changed files with 1495 additions and 4 deletions

3
api/shim/gen.go Normal file
View file

@ -0,0 +1,3 @@
package shim
//go:generate protoc -I.:../../vendor:../../vendor/github.com/gogo/protobuf:../../../../../..:/usr/local/include --gogoctrd_out=plugins=grpc,import_path=github.com/docker/containerd/api/shim,Mgogoproto/gogo.proto=github.com/gogo/protobuf/gogoproto,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. shim.proto

1460
api/shim/shim.pb.go Normal file

File diff suppressed because it is too large Load diff

View file

@ -6,10 +6,38 @@ import "google/protobuf/empty.proto";
import "gogoproto/gogo.proto";
service ShimService {
rpc Create(CreateRequest) returns (google.protobuf.Empty);
rpc Exec(ExecRequest) returns (google.protobuf.Empty);
rpc State(StateRequest) returns (StateResponse);
rpc Pty(PtyRequest) returns (google.protobuf.Empty);
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 {