containerd/api/execution/execution.proto
Kenfe-Mickael Laventure c857213b4c move work on execution service
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
2016-12-05 14:15:03 -08:00

40 lines
862 B
Protocol Buffer

syntax = "proto3";
package containerd.v1;
import "container.proto";
import "google/protobuf/empty.proto";
import "gogoproto/gogo.proto";
service ExecutionService{
rpc Create(CreateContainerRequest) returns (CreateContainerResponse);
rpc Delete(DeleteContainerRequest) returns (google.protobuf.Empty);
rpc List(ListContainersRequest) returns (ListContainersResponse);
}
message CreateContainerRequest {
string id = 1 [(gogoproto.customname) = "ID"];
string bundle_path = 2;
string stdin = 3;
string stdout = 4;
string stderr = 5;
}
message CreateContainerResponse {
Container container = 1;
}
message DeleteContainerRequest {
string id = 1 [(gogoproto.customname) = "ID"];
}
message DeleteContainerResponse {
}
message ListContainersRequest {
repeated string owner = 1;
}
message ListContainersResponse {
repeated Container containers = 1;
}