mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
48 lines
1.1 KiB
Protocol Buffer
48 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package api;
|
|
|
|
option go_package = "github.com/psviderski/uncloud/internal/machine/api/pb";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service Docker {
|
|
rpc CreateContainer(CreateContainerRequest) returns (CreateContainerResponse);
|
|
rpc StartContainer(StartContainerRequest) returns (google.protobuf.Empty);
|
|
rpc PullImage(PullImageRequest) returns (stream JSONMessage);
|
|
}
|
|
|
|
message CreateContainerRequest {
|
|
// JSON serialized container.Config.
|
|
bytes config = 1;
|
|
// JSON serialized container.HostConfig.
|
|
bytes host_config = 2;
|
|
// JSON serialized network.NetworkingConfig.
|
|
bytes network_config = 3;
|
|
// JSON serialized ocispec.Platform.
|
|
bytes platform = 4;
|
|
string name = 5;
|
|
}
|
|
|
|
message CreateContainerResponse {
|
|
// JSON serialized container.CreateResponse.
|
|
bytes response = 1;
|
|
}
|
|
|
|
message StartContainerRequest {
|
|
string id = 1;
|
|
// JSON serialized container.StartOptions.
|
|
bytes options = 2;
|
|
}
|
|
|
|
message PullImageRequest {
|
|
string image = 1;
|
|
// JSON serialized image.PullOptions.
|
|
bytes options = 2;
|
|
}
|
|
|
|
message JSONMessage {
|
|
// JSON serialized jsonmessage.JSONMessage.
|
|
bytes message = 1;
|
|
}
|