mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-11-04 10:21:13 +01:00 
			
		
		
		
	- Added common.proto to host NodeMetadata - go_package names were fixed up so imports are generated with the proper package names - fixed up build work (dockerfile) to prevent copying the previously generated go proto files. This fixes a bug where we could incorrectly copy the previously generated protobuf instead of a new one generated at an incorrect location/name/etc. Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
 | 
						|
package securityapi;
 | 
						|
 | 
						|
option go_package = "github.com/talos-systems/talos/api/security";
 | 
						|
option java_multiple_files = true;
 | 
						|
option java_outer_classname = "SecurityApi";
 | 
						|
option java_package = "com.security.api";
 | 
						|
 | 
						|
// The security service definition.
 | 
						|
service Security {
 | 
						|
  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 {}
 |