Add additional request/response protos
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
ce7702f2db
commit
0dcd3a034d
2 changed files with 92 additions and 0 deletions
|
@ -2,6 +2,8 @@ syntax = "proto3";
|
||||||
|
|
||||||
package "docker.containerkit.v1";
|
package "docker.containerkit.v1";
|
||||||
|
|
||||||
|
import "types.proto"
|
||||||
|
|
||||||
service ContainerService {
|
service ContainerService {
|
||||||
rpc Create(CreateRequest) returns (CreateResponse) {
|
rpc Create(CreateRequest) returns (CreateResponse) {
|
||||||
|
|
||||||
|
@ -20,6 +22,12 @@ service ContainerService {
|
||||||
}
|
}
|
||||||
rpc State(StateRequest) returns (StateResponse) {
|
rpc State(StateRequest) returns (StateResponse) {
|
||||||
|
|
||||||
|
}
|
||||||
|
rpc Exec(ExecRequest) returns (ExecResponse) {
|
||||||
|
|
||||||
|
}
|
||||||
|
rpc Update(UpdateRequest) returns (UpdateResponse) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,3 +41,72 @@ message CreateRequest {
|
||||||
message CreateResponse {
|
message CreateResponse {
|
||||||
Container container = 1;
|
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 {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
15
api/types.proto
Normal file
15
api/types.proto
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package "docker.containerkit.v1";
|
||||||
|
|
||||||
|
message Rlimit {
|
||||||
|
string type = 1;
|
||||||
|
uint64 soft = 2;
|
||||||
|
uint64 hard = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message User {
|
||||||
|
uint32 uid = 1;
|
||||||
|
uint32 gid = 2;
|
||||||
|
repeated uint32 additionalGids = 3;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue