mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 16:09:45 -05:00
2d8fcd9bf4
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
46 lines
910 B
Protocol Buffer
46 lines
910 B
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 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 Peer {
|
|
string public_endpoint = 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;
|
|
}
|