talos/api/common/common.proto
Andrew Rynhard ad863a7f92 refactor: rename protobuf services, RPCs, and messages
This PR brings our protobuf files into conformance with the protobuf
style guide, and community conventions. It is purely renames, along with
generated docs.

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-12-11 11:41:40 -08:00

36 lines
655 B
Protocol Buffer

syntax = "proto3";
package common;
option go_package = "github.com/talos-systems/talos/api/common";
// Common metadata message nested in all reply message types
message Metadata {
// hostname of the server response comes from (injected by proxy)
string hostname = 1;
// error is set if request failed to the upstream (rest of response is undefined)
string error = 2;
}
message Data {
Metadata metadata = 1;
bytes bytes = 2;
}
message DataResponse {
repeated Data messages = 1;
}
message Empty {
Metadata metadata = 1;
}
message EmptyResponse {
repeated Empty messages = 1;
}
enum ContainerDriver {
CONTAINERD = 0;
CRI = 1;
}