Add ctr run functions for mocking client
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
3ebf1c456b
commit
3ef3f74878
3 changed files with 147 additions and 5 deletions
|
@ -25,13 +25,21 @@ service Containers {
|
|||
|
||||
message Container {
|
||||
string id = 1;
|
||||
string image = 2;
|
||||
repeated Mount mounts = 2;
|
||||
repeated string tags = 3;
|
||||
Process process = 4;
|
||||
optional string container_spec = 5;
|
||||
}
|
||||
|
||||
message Process {
|
||||
uint64 pid = 1;
|
||||
repeated string args = 1;
|
||||
repeated string env = 2;
|
||||
User user = 3;
|
||||
string cwd = 4;
|
||||
bool terminal = 5;
|
||||
}
|
||||
|
||||
message ProcessSpec {
|
||||
repeated string args = 1;
|
||||
repeated string env = 2;
|
||||
User user = 3;
|
||||
|
@ -54,10 +62,10 @@ message User {
|
|||
|
||||
message CreateRequest {
|
||||
string id = 1;
|
||||
Process process = 2;
|
||||
ProcessSpec process = 2;
|
||||
repeated Mount mounts = 3;
|
||||
optional string config_path = 4;
|
||||
repeated string tags = 5;
|
||||
repeated string tags = 4;
|
||||
optional string config_path = 5;
|
||||
}
|
||||
|
||||
message CreateResponse {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue