talos/api/time/time.proto
Alexey Palazhchenko f63ab9dd9b feat: implement talosctl config new command
Refs #3421.

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
2021-06-17 09:06:43 -07:00

29 lines
765 B
Protocol Buffer

syntax = "proto3";
package time;
option go_package = "github.com/talos-systems/talos/pkg/machinery/api/time";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "common/common.proto";
// The time service definition.
service TimeService {
rpc Time(google.protobuf.Empty) returns (TimeResponse);
rpc TimeCheck(TimeRequest) returns (TimeResponse);
}
// The response message containing the ntp server
message TimeRequest { string server = 1; }
message Time {
common.Metadata metadata = 1;
string server = 2;
google.protobuf.Timestamp localtime = 3;
google.protobuf.Timestamp remotetime = 4;
}
// The response message containing the ntp server, time, and offset
message TimeResponse { repeated Time messages = 1; }