talos/api/security/api.proto
Andrew Rynhard 6efd6fbe08 chore: move gRPC API to public
In order for other projects to make use of our APIs, they must not
reside underneath the internal directory. This moves the protobuf
definitions to a top-level "api" directory and scopes them according to
their domain. This change also removes generated code from the gitignore
file so that users don't have to generate the code themseleves.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-09-19 08:55:13 -07:00

47 lines
1.0 KiB
Protocol Buffer

syntax = "proto3";
package proto;
option go_package = "proto";
option java_multiple_files = true;
option java_outer_classname = "ApiProto";
option java_package = "com.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 {}