2016-11-28 23:28:38 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package containerd.v1;
|
|
|
|
|
2016-12-02 18:27:51 +00:00
|
|
|
import "container.proto";
|
2016-12-03 00:04:13 +00:00
|
|
|
import "google/protobuf/empty.proto";
|
2016-12-01 20:36:19 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
|
2016-12-02 18:27:51 +00:00
|
|
|
service ExecutionService{
|
|
|
|
rpc Create(CreateContainerRequest) returns (CreateContainerResponse);
|
2016-12-03 00:04:13 +00:00
|
|
|
rpc Delete(DeleteContainerRequest) returns (google.protobuf.Empty);
|
2016-12-02 18:27:51 +00:00
|
|
|
rpc List(ListContainersRequest) returns (ListContainersResponse);
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2016-12-01 21:57:51 +00:00
|
|
|
message CreateContainerRequest {
|
2016-12-01 20:22:05 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
2016-12-02 18:27:51 +00:00
|
|
|
string bundle_path = 2;
|
|
|
|
string stdin = 3;
|
|
|
|
string stdout = 4;
|
|
|
|
string stderr = 5;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2016-12-01 21:57:51 +00:00
|
|
|
message CreateContainerResponse {
|
2016-12-01 20:22:05 +00:00
|
|
|
Container container = 1;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2016-12-01 21:57:51 +00:00
|
|
|
message DeleteContainerRequest {
|
2016-12-01 20:22:05 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2016-12-01 21:57:51 +00:00
|
|
|
message DeleteContainerResponse {
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2016-12-02 18:27:51 +00:00
|
|
|
message ListContainersRequest {
|
2016-12-01 20:22:05 +00:00
|
|
|
repeated string owner = 1;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2016-12-02 18:27:51 +00:00
|
|
|
message ListContainersResponse {
|
2016-12-01 20:22:05 +00:00
|
|
|
repeated Container containers = 1;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
2016-12-02 19:33:58 +00:00
|
|
|
|
|
|
|
|