Fix spacing in api.proto
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
parent
577f9d7696
commit
9979502ca8
1 changed files with 44 additions and 44 deletions
|
@ -6,7 +6,7 @@ service API {
|
||||||
rpc CreateContainer(CreateContainerRequest) returns (CreateContainerResponse) {}
|
rpc CreateContainer(CreateContainerRequest) returns (CreateContainerResponse) {}
|
||||||
rpc UpdateContainer(UpdateContainerRequest) returns (UpdateContainerResponse) {}
|
rpc UpdateContainer(UpdateContainerRequest) returns (UpdateContainerResponse) {}
|
||||||
rpc Signal(SignalRequest) returns (SignalResponse) {}
|
rpc Signal(SignalRequest) returns (SignalResponse) {}
|
||||||
rpc UpdateProcess(UpdateProcessRequest) returns (UpdateProcessResponse) {}
|
rpc UpdateProcess(UpdateProcessRequest) returns (UpdateProcessResponse) {}
|
||||||
rpc AddProcess(AddProcessRequest) returns (AddProcessResponse) {}
|
rpc AddProcess(AddProcessRequest) returns (AddProcessResponse) {}
|
||||||
rpc CreateCheckpoint(CreateCheckpointRequest) returns (CreateCheckpointResponse) {}
|
rpc CreateCheckpoint(CreateCheckpointRequest) returns (CreateCheckpointResponse) {}
|
||||||
rpc DeleteCheckpoint(DeleteCheckpointRequest) returns (DeleteCheckpointResponse) {}
|
rpc DeleteCheckpoint(DeleteCheckpointRequest) returns (DeleteCheckpointResponse) {}
|
||||||
|
@ -17,11 +17,11 @@ service API {
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateProcessRequest {
|
message UpdateProcessRequest {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
string pid = 2;
|
string pid = 2;
|
||||||
bool closeStdin = 3; // Close stdin of the container
|
bool closeStdin = 3; // Close stdin of the container
|
||||||
uint32 width = 4;
|
uint32 width = 4;
|
||||||
uint32 height = 5;
|
uint32 height = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateProcessResponse {
|
message UpdateProcessResponse {
|
||||||
|
@ -31,14 +31,14 @@ message CreateContainerRequest {
|
||||||
string id = 1; // ID of container
|
string id = 1; // ID of container
|
||||||
string bundlePath = 2; // path to OCI bundle
|
string bundlePath = 2; // path to OCI bundle
|
||||||
string checkpoint = 3; // checkpoint name if you want to create immediate checkpoint (optional)
|
string checkpoint = 3; // checkpoint name if you want to create immediate checkpoint (optional)
|
||||||
string stdin = 4; // path to the file where stdin will be read (optional)
|
string stdin = 4; // path to the file where stdin will be read (optional)
|
||||||
string stdout = 5; // path to file where stdout will be written (optional)
|
string stdout = 5; // path to file where stdout will be written (optional)
|
||||||
string stderr = 6; // path to file where stderr will be written (optional)
|
string stderr = 6; // path to file where stderr will be written (optional)
|
||||||
repeated string labels = 7;
|
repeated string labels = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateContainerResponse {
|
message CreateContainerResponse {
|
||||||
Container container = 1;
|
Container container = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SignalRequest {
|
message SignalRequest {
|
||||||
|
@ -57,21 +57,21 @@ message AddProcessRequest {
|
||||||
repeated string args = 4; // Arguments for process, first is binary path itself
|
repeated string args = 4; // Arguments for process, first is binary path itself
|
||||||
repeated string env = 5; // List of environment variables for process
|
repeated string env = 5; // List of environment variables for process
|
||||||
string cwd = 6; // Workind directory of process
|
string cwd = 6; // Workind directory of process
|
||||||
string pid = 7; // Process ID
|
string pid = 7; // Process ID
|
||||||
string stdin = 8; // path to the file where stdin will be read (optional)
|
string stdin = 8; // path to the file where stdin will be read (optional)
|
||||||
string stdout = 9; // path to file where stdout will be written (optional)
|
string stdout = 9; // path to file where stdout will be written (optional)
|
||||||
string stderr = 10; // path to file where stderr will be written (optional)
|
string stderr = 10; // path to file where stderr will be written (optional)
|
||||||
repeated string capabilities = 11;
|
repeated string capabilities = 11;
|
||||||
string apparmorProfile = 12;
|
string apparmorProfile = 12;
|
||||||
string selinuxLabel = 13;
|
string selinuxLabel = 13;
|
||||||
bool noNewPrivileges = 14;
|
bool noNewPrivileges = 14;
|
||||||
repeated Rlimit rlimits = 15;
|
repeated Rlimit rlimits = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Rlimit {
|
message Rlimit {
|
||||||
string type = 1;
|
string type = 1;
|
||||||
uint64 soft = 2;
|
uint64 soft = 2;
|
||||||
uint64 hard = 3;
|
uint64 hard = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message User {
|
message User {
|
||||||
|
@ -116,7 +116,7 @@ message ListCheckpointResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
message StateRequest {
|
message StateRequest {
|
||||||
string id = 1; // container id for a single container
|
string id = 1; // container id for a single container
|
||||||
}
|
}
|
||||||
|
|
||||||
message ContainerState {
|
message ContainerState {
|
||||||
|
@ -130,15 +130,15 @@ message Process {
|
||||||
repeated string args = 4; // Arguments for process, first is binary path itself
|
repeated string args = 4; // Arguments for process, first is binary path itself
|
||||||
repeated string env = 5; // List of environment variables for process
|
repeated string env = 5; // List of environment variables for process
|
||||||
string cwd = 6; // Workind directory of process
|
string cwd = 6; // Workind directory of process
|
||||||
uint32 systemPid = 7;
|
uint32 systemPid = 7;
|
||||||
string stdin = 8; // path to the file where stdin will be read (optional)
|
string stdin = 8; // path to the file where stdin will be read (optional)
|
||||||
string stdout = 9; // path to file where stdout will be written (optional)
|
string stdout = 9; // path to file where stdout will be written (optional)
|
||||||
string stderr = 10; // path to file where stderr will be written (optional)
|
string stderr = 10; // path to file where stderr will be written (optional)
|
||||||
repeated string capabilities = 11;
|
repeated string capabilities = 11;
|
||||||
string apparmorProfile = 12;
|
string apparmorProfile = 12;
|
||||||
string selinuxLabel = 13;
|
string selinuxLabel = 13;
|
||||||
bool noNewPrivileges = 14;
|
bool noNewPrivileges = 14;
|
||||||
repeated Rlimit rlimits = 15;
|
repeated Rlimit rlimits = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Container {
|
message Container {
|
||||||
|
@ -146,9 +146,9 @@ message Container {
|
||||||
string bundlePath = 2; // Path to OCI bundle
|
string bundlePath = 2; // Path to OCI bundle
|
||||||
repeated Process processes = 3; // List of processes which run in container
|
repeated Process processes = 3; // List of processes which run in container
|
||||||
string status = 4; // Container status ("running", "paused", etc.)
|
string status = 4; // Container status ("running", "paused", etc.)
|
||||||
repeated string labels = 5;
|
repeated string labels = 5;
|
||||||
repeated uint32 pids = 6;
|
repeated uint32 pids = 6;
|
||||||
string runtime = 7; // runtime used to execute the container
|
string runtime = 7; // runtime used to execute the container
|
||||||
}
|
}
|
||||||
|
|
||||||
// Machine is information about machine on which containerd is run
|
// Machine is information about machine on which containerd is run
|
||||||
|
@ -165,29 +165,29 @@ message StateResponse {
|
||||||
|
|
||||||
message UpdateContainerRequest {
|
message UpdateContainerRequest {
|
||||||
string id = 1; // ID of container
|
string id = 1; // ID of container
|
||||||
string pid = 2;
|
string pid = 2;
|
||||||
string status = 3; // Status to whcih containerd will try to change
|
string status = 3; // Status to whcih containerd will try to change
|
||||||
UpdateResource resources =4;
|
UpdateResource resources =4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateResource {
|
message UpdateResource {
|
||||||
uint32 blkioWeight =1;
|
uint32 blkioWeight =1;
|
||||||
uint32 cpuShares = 2;
|
uint32 cpuShares = 2;
|
||||||
uint32 cpuPeriod = 3;
|
uint32 cpuPeriod = 3;
|
||||||
uint32 cpuQuota = 4;
|
uint32 cpuQuota = 4;
|
||||||
string cpusetCpus = 5;
|
string cpusetCpus = 5;
|
||||||
string cpusetMems = 6;
|
string cpusetMems = 6;
|
||||||
uint32 memoryLimit = 7;
|
uint32 memoryLimit = 7;
|
||||||
uint32 memorySwap = 8;
|
uint32 memorySwap = 8;
|
||||||
uint32 memoryReservation = 9;
|
uint32 memoryReservation = 9;
|
||||||
uint32 kernelMemoryLimit = 10;
|
uint32 kernelMemoryLimit = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateContainerResponse {
|
message UpdateContainerResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
message EventsRequest {
|
message EventsRequest {
|
||||||
uint64 timestamp = 1;
|
uint64 timestamp = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Event {
|
message Event {
|
||||||
|
@ -195,7 +195,7 @@ message Event {
|
||||||
string id = 2;
|
string id = 2;
|
||||||
uint32 status = 3;
|
uint32 status = 3;
|
||||||
string pid = 4;
|
string pid = 4;
|
||||||
uint64 timestamp = 5;
|
uint64 timestamp = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NetworkStats {
|
message NetworkStats {
|
||||||
|
|
Loading…
Reference in a new issue