proto: rename container service to execution
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
62ca43566e
commit
4cf40db861
1 changed files with 22 additions and 22 deletions
|
@ -4,14 +4,14 @@ package containerd.v1;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
|
|
||||||
service Containers {
|
service Execution {
|
||||||
rpc Create(CreateRequest) returns (CreateResponse);
|
rpc CreateContainer(CreateContainerRequest) returns (CreateContainerResponse);
|
||||||
rpc Start(StartRequest) returns (StartResponse);
|
rpc StartContainer(StartContainerRequest) returns (StartContainerResponse);
|
||||||
rpc Delete(DeleteRequest) returns (DeleteResponse);
|
rpc DeleteContainer(DeleteContainerRequest) returns (DeleteContainerResponse);
|
||||||
rpc State(StateRequest) returns (StateResponse);
|
rpc StateContainer(StateContainerRequest) returns (StateContainerResponse);
|
||||||
rpc Update(UpdateRequest) returns (UpdateResponse);
|
rpc UpdateContainer(UpdateContainerRequest) returns (UpdateContainerResponse);
|
||||||
rpc Pause(PauseRequest) returns (PauseResponse);
|
rpc PauseContainer(PauseContainerRequest) returns (PauseContainerResponse);
|
||||||
rpc Resume(ResumeRequest) returns (ResumeResponse);
|
rpc ResumeContainer(ResumeContainerRequest) returns (ResumeContainerResponse);
|
||||||
|
|
||||||
rpc ContainerList(ContainerListRequest) returns (ContainerListResponse);
|
rpc ContainerList(ContainerListRequest) returns (ContainerListResponse);
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ message User {
|
||||||
repeated uint32 additionalGids = 3;
|
repeated uint32 additionalGids = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateRequest {
|
message CreateContainerRequest {
|
||||||
string id = 1 [(gogoproto.customname) = "ID"];
|
string id = 1 [(gogoproto.customname) = "ID"];
|
||||||
ProcessSpec process = 2;
|
ProcessSpec process = 2;
|
||||||
repeated Mount mounts = 3;
|
repeated Mount mounts = 3;
|
||||||
|
@ -73,26 +73,26 @@ message CreateRequest {
|
||||||
string config_path = 5;
|
string config_path = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateResponse {
|
message CreateContainerResponse {
|
||||||
Container container = 1;
|
Container container = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message StartRequest {
|
message StartContainerRequest {
|
||||||
string id = 1 [(gogoproto.customname) = "ID"];
|
string id = 1 [(gogoproto.customname) = "ID"];
|
||||||
}
|
}
|
||||||
|
|
||||||
message State {
|
message State {
|
||||||
}
|
}
|
||||||
|
|
||||||
message StartResponse {
|
message StartContainerResponse {
|
||||||
State state = 1;
|
State state = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeleteRequest {
|
message DeleteContainerRequest {
|
||||||
string id = 1 [(gogoproto.customname) = "ID"];
|
string id = 1 [(gogoproto.customname) = "ID"];
|
||||||
}
|
}
|
||||||
|
|
||||||
message DeleteResponse {
|
message DeleteContainerResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
message ContainerListRequest {
|
message ContainerListRequest {
|
||||||
|
@ -103,33 +103,33 @@ message ContainerListResponse {
|
||||||
repeated Container containers = 1;
|
repeated Container containers = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message StateRequest {
|
message StateContainerRequest {
|
||||||
string id = 1 [(gogoproto.customname) = "ID"];
|
string id = 1 [(gogoproto.customname) = "ID"];
|
||||||
}
|
}
|
||||||
|
|
||||||
message StateResponse {
|
message StateContainerResponse {
|
||||||
Container container = 1;
|
Container container = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateRequest {
|
message UpdateContainerRequest {
|
||||||
string id = 1 [(gogoproto.customname) = "ID"];
|
string id = 1 [(gogoproto.customname) = "ID"];
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateResponse {
|
message UpdateContainerResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
message PauseRequest {
|
message PauseContainerRequest {
|
||||||
string id = 1 [(gogoproto.customname) = "ID"];
|
string id = 1 [(gogoproto.customname) = "ID"];
|
||||||
}
|
}
|
||||||
|
|
||||||
message PauseResponse {
|
message PauseContainerResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
message ResumeRequest {
|
message ResumeContainerRequest {
|
||||||
string id = 1 [(gogoproto.customname) = "ID"];
|
string id = 1 [(gogoproto.customname) = "ID"];
|
||||||
}
|
}
|
||||||
|
|
||||||
message ResumeResponse {
|
message ResumeContainerResponse {
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateProcessRequest {
|
message CreateProcessRequest {
|
||||||
|
|
Loading…
Reference in a new issue