52 lines
1.1 KiB
Protocol Buffer
52 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package deamon;
|
|
|
|
import "shared.proto";
|
|
|
|
|
|
message NewContainerRes {
|
|
optional shared.UUID container_id = 1;
|
|
string status = 2;
|
|
string ip_address = 3;
|
|
repeated shared.MappedPort mapped_ports = 4;
|
|
}
|
|
|
|
message ContainerInspectResp {
|
|
shared.Container containers = 1;
|
|
repeated shared.MappedPort mapped_ports = 2;
|
|
string crated_time = 3;
|
|
optional string ratls_pubkey = 4;
|
|
optional string mr_signer = 5;
|
|
optional string mr_enclave = 6;
|
|
string state = 7;
|
|
string disk_usage = 8;
|
|
}
|
|
|
|
message LogResp {
|
|
string std_out = 1;
|
|
string std_err = 2;
|
|
}
|
|
|
|
message ContainerFilters {
|
|
string admin_pubkey = 1;
|
|
}
|
|
|
|
message ContainerListResp {
|
|
repeated shared.Container containers = 1;
|
|
}
|
|
|
|
message DeleteContainerRes {
|
|
optional shared.UUID container_id = 1;
|
|
string status = 2;
|
|
}
|
|
|
|
service DaemonService {
|
|
rpc CreateContainer (shared.Container) returns (NewContainerRes);
|
|
rpc InspectContainer (shared.UUID) returns (ContainerInspectResp);
|
|
// rpc ContainerLog (shared.UUID) returns (stream LogResp);
|
|
rpc ListContainers (ContainerFilters) returns (ContainerListResp);
|
|
rpc DeleteContainer (shared.UUID) returns (DeleteContainerRes);
|
|
|
|
}
|