2016-11-28 23:28:38 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2017-02-09 07:31:26 +00:00
|
|
|
package containerd.v1.services;
|
2016-11-28 23:28:38 +00:00
|
|
|
|
2016-12-03 00:04:13 +00:00
|
|
|
import "google/protobuf/empty.proto";
|
2017-02-13 18:23:28 +00:00
|
|
|
import "google/protobuf/any.proto";
|
2016-12-01 20:36:19 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
2017-02-13 18:23:28 +00:00
|
|
|
import "github.com/docker/containerd/api/types/mount/mount.proto";
|
2017-02-09 07:31:26 +00:00
|
|
|
import "github.com/docker/containerd/api/types/container/container.proto";
|
2016-12-01 20:36:19 +00:00
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
service ContainerService {
|
|
|
|
rpc Create(CreateRequest) returns (CreateResponse);
|
|
|
|
rpc Start(StartRequest) returns (google.protobuf.Empty);
|
|
|
|
rpc Delete(DeleteRequest) returns (google.protobuf.Empty);
|
|
|
|
rpc List(ListRequest) returns (ListResponse);
|
|
|
|
rpc Events(EventsRequest) returns (stream containerd.v1.types.Event);
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message CreateRequest {
|
2016-12-01 20:22:05 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
2017-02-13 18:23:28 +00:00
|
|
|
google.protobuf.Any spec = 2;
|
|
|
|
repeated containerd.v1.types.Mount rootfs = 3;
|
|
|
|
string runtime = 4;
|
|
|
|
string stdin = 5;
|
|
|
|
string stdout = 6;
|
|
|
|
string stderr = 7;
|
|
|
|
bool terminal = 8;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message CreateResponse {
|
2016-12-01 20:22:05 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
2017-02-13 18:23:28 +00:00
|
|
|
uint32 pid = 2;
|
2016-11-28 23:28:38 +00:00
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message StartRequest {
|
2016-12-07 22:00:20 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message DeleteRequest {
|
2016-12-07 22:00:20 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message DeleteResponse {
|
2016-12-07 22:00:20 +00:00
|
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
2017-02-13 18:23:28 +00:00
|
|
|
uint32 exit_status = 2;
|
2016-12-07 22:00:20 +00:00
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message ListRequest {
|
2016-12-07 22:00:20 +00:00
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message ListResponse {
|
|
|
|
repeated containerd.v1.types.Container containers = 1;
|
2016-12-07 22:00:20 +00:00
|
|
|
}
|
|
|
|
|
2017-02-13 18:23:28 +00:00
|
|
|
message EventsRequest {
|
2016-12-07 22:00:20 +00:00
|
|
|
}
|