mirror of
https://github.com/lingble/talos.git
synced 2025-12-07 16:15:17 +00:00
65 lines
1.6 KiB
Protocol Buffer
65 lines
1.6 KiB
Protocol Buffer
|
|
syntax = "proto3";
|
|
|
|
package proto;
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
// The OSD service definition.
|
|
service OSD {
|
|
rpc Kubeconfig(google.protobuf.Empty) returns (Data) {}
|
|
rpc Processes(ProcessesRequest) returns (ProcessesReply) {}
|
|
rpc Restart(RestartRequest) returns (RestartReply) {}
|
|
rpc Reset(google.protobuf.Empty) returns (ResetReply) {}
|
|
rpc Reboot(google.protobuf.Empty) returns (RebootReply) {}
|
|
rpc Logs(LogsRequest) returns (stream Data) {}
|
|
rpc Dmesg(google.protobuf.Empty) returns (Data) {}
|
|
rpc Version(google.protobuf.Empty) returns (Data) {}
|
|
}
|
|
|
|
// The request message containing the containerd namespace.
|
|
message ProcessesRequest {
|
|
string namespace = 1;
|
|
}
|
|
|
|
// The response message containing the requested processes.
|
|
message ProcessesReply {
|
|
repeated Process processes = 1;
|
|
}
|
|
|
|
// The response message containing the requested processes.
|
|
message Process {
|
|
string id = 1;
|
|
string image = 2;
|
|
string status = 3;
|
|
uint64 memory_usage = 4;
|
|
uint64 cpu_usage = 5;
|
|
}
|
|
|
|
// The request message containing the process to restart.
|
|
message RestartRequest {
|
|
string id = 1;
|
|
string namespace = 2;
|
|
int32 timeout = 3;
|
|
}
|
|
|
|
// The response message containing the restart status.
|
|
message RestartReply {}
|
|
|
|
// The response message containing the restart status.
|
|
message ResetReply {}
|
|
|
|
// The response message containing the restart status.
|
|
message RebootReply {}
|
|
|
|
// The request message containing the process name.
|
|
message LogsRequest {
|
|
string id = 1;
|
|
string namespace = 2;
|
|
}
|
|
|
|
// The response message containing the requested logs.
|
|
message Data {
|
|
bytes bytes = 1;
|
|
}
|