mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-22 07:01:12 +02:00
43 lines
931 B
Protocol Buffer
43 lines
931 B
Protocol Buffer
|
|
syntax = "proto3";
|
|
|
|
package proto;
|
|
|
|
// The Trustd service definition.
|
|
service Trustd {
|
|
rpc Certificate(CertificateRequest) returns (CertificateResponse) {}
|
|
rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) {}
|
|
rpc WriteFile(WriteFileRequest) returns (WriteFileResponse) {}
|
|
}
|
|
|
|
// The request message containing the process name.
|
|
message CertificateRequest {
|
|
bytes csr = 1;
|
|
}
|
|
|
|
// The response message containing the requested logs.
|
|
message CertificateResponse {
|
|
bytes ca = 1;
|
|
bytes crt = 2;
|
|
}
|
|
|
|
// The request message for reading a file on disk.
|
|
message ReadFileRequest {
|
|
string path = 1;
|
|
}
|
|
|
|
// The response message for reading a file on disk.
|
|
message ReadFileResponse {
|
|
bytes data = 1;
|
|
}
|
|
|
|
// The request message containing the process name.
|
|
message WriteFileRequest {
|
|
string path = 1;
|
|
bytes data = 2;
|
|
int32 perm = 3;
|
|
}
|
|
|
|
// The response message containing the requested logs.
|
|
message WriteFileResponse {}
|