mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
d8241a1b38
Signed-off-by: Benedict Schlueter <bs@edgeless.systems>
54 lines
1.1 KiB
Protocol Buffer
54 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package vpnapi;
|
|
|
|
option go_package = "github.com/edgelesssys/constellation/coordinator/vpnapi/vpnproto";
|
|
|
|
service API {
|
|
rpc GetUpdate(GetUpdateRequest) returns (GetUpdateResponse);
|
|
rpc GetK8sJoinArgs(GetK8sJoinArgsRequest) returns (GetK8sJoinArgsResponse);
|
|
rpc GetK8sCertificateKey(GetK8sCertificateKeyRequest) returns (GetK8sCertificateKeyResponse);
|
|
rpc GetDataKey(GetDataKeyRequest) returns (GetDataKeyResponse);
|
|
}
|
|
|
|
message GetUpdateRequest {
|
|
int64 resource_version = 1;
|
|
}
|
|
|
|
message GetUpdateResponse {
|
|
int64 resource_version = 1;
|
|
repeated Peer peers = 2;
|
|
}
|
|
|
|
message GetK8sJoinArgsRequest {
|
|
}
|
|
|
|
message GetK8sJoinArgsResponse {
|
|
string api_server_endpoint = 1;
|
|
string token = 2;
|
|
string discovery_token_ca_cert_hash = 3;
|
|
}
|
|
|
|
message GetK8sCertificateKeyRequest {
|
|
}
|
|
|
|
message GetK8sCertificateKeyResponse {
|
|
string certificateKey = 1;
|
|
}
|
|
|
|
message Peer {
|
|
string public_ip = 1;
|
|
string vpn_ip = 2;
|
|
bytes vpn_pub_key = 3;
|
|
uint32 role = 4;
|
|
}
|
|
|
|
message GetDataKeyRequest {
|
|
string data_key_id = 1;
|
|
uint32 length = 2;
|
|
}
|
|
|
|
message GetDataKeyResponse {
|
|
bytes data_key = 1;
|
|
}
|