0dcd3a034d
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
112 lines
1.6 KiB
Protocol Buffer
112 lines
1.6 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package "docker.containerkit.v1";
|
|
|
|
import "types.proto"
|
|
|
|
service ContainerService {
|
|
rpc Create(CreateRequest) returns (CreateResponse) {
|
|
|
|
}
|
|
rpc Start(StartRequest) returns (StartResponse) {
|
|
|
|
}
|
|
rpc Stop(StopRequest) returns (StopResponse) {
|
|
|
|
}
|
|
rpc Delete(DeleteRequest) returns (DeleteResponse) {
|
|
|
|
}
|
|
rpc List(ListRequest) returns (ListResponse) {
|
|
|
|
}
|
|
rpc State(StateRequest) returns (StateResponse) {
|
|
|
|
}
|
|
rpc Exec(ExecRequest) returns (ExecResponse) {
|
|
|
|
}
|
|
rpc Update(UpdateRequest) returns (UpdateResponse) {
|
|
|
|
}
|
|
}
|
|
|
|
message CreateRequest {
|
|
string id = 1;
|
|
string image = 2;
|
|
repeated string args = 3;
|
|
repeated string env = 4;
|
|
}
|
|
|
|
message CreateResponse {
|
|
Container container = 1;
|
|
}
|
|
|
|
message StartRequest {
|
|
string id = 1;
|
|
}
|
|
|
|
message StartResponse {
|
|
|
|
}
|
|
|
|
message StopRequest {
|
|
string id = 1;
|
|
uint32 signal = 2;
|
|
uint32 timeout = 3;
|
|
}
|
|
|
|
message StopResponse {
|
|
|
|
}
|
|
|
|
message DeleteRequest {
|
|
string id = 1;
|
|
}
|
|
|
|
message DeleteResponse {
|
|
|
|
}
|
|
|
|
message ListRequest {
|
|
|
|
}
|
|
|
|
message ListResponse {
|
|
repeated Container containers = 1;
|
|
}
|
|
|
|
message StateRequest {
|
|
string id = 1;
|
|
}
|
|
|
|
message StateResponse {
|
|
Container container = 1;
|
|
}
|
|
|
|
message ExecRequest {
|
|
string id = 1;
|
|
bool terminal = 2;
|
|
User user = 3;
|
|
repeated string args = 4;
|
|
repeated string env = 5;
|
|
string cwd = 6;
|
|
string pid = 7;
|
|
repeated string capabilities = 8;
|
|
string apparmorProfile = 9;
|
|
string selinuxLabel = 10;
|
|
bool noNewPrivileges = 11;
|
|
repeated Rlimit rlimits = 12;
|
|
}
|
|
|
|
message ExecResponse {
|
|
|
|
}
|
|
|
|
message UpdateRequest {
|
|
string id = 1;
|
|
}
|
|
|
|
message UpdateResponse {
|
|
|
|
}
|