mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 16:31:13 +01:00 
			
		
		
		
	This moves `pkg/config`, `pkg/client` and `pkg/constants` under `pkg/machinery` umbrella. And `pkg/machinery` is published as Go module inside Talos repository. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			879 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			879 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
| syntax = "proto3";
 | |
| 
 | |
| package time;
 | |
| 
 | |
| option go_package = "github.com/talos-systems/talos/pkg/machinery/api/time";
 | |
| option java_multiple_files = true;
 | |
| option java_outer_classname = "TimeApi";
 | |
| option java_package = "com.time.api";
 | |
| 
 | |
| 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; }
 |