From 1c92f954acf6909f3edf2989c840e84e7a2e8a30 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 10 Oct 2024 11:18:12 -0400 Subject: [PATCH] Add method for exporters to get its desired status --- proto/jumpstarter/v1/jumpstarter.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/proto/jumpstarter/v1/jumpstarter.proto b/proto/jumpstarter/v1/jumpstarter.proto index 5b6c610..99c834e 100644 --- a/proto/jumpstarter/v1/jumpstarter.proto +++ b/proto/jumpstarter/v1/jumpstarter.proto @@ -25,6 +25,10 @@ service ControllerService { // Returns stream tokens for accepting incoming client connections rpc Listen(ListenRequest) returns (stream ListenResponse); + // Exporter status + // Returns lease status for the exporter + rpc Status(StatusRequest) returns (stream StatusResponse); + // Client connecting // Returns stream token for connecting to the desired exporter // Leases are checked before token issuance @@ -85,6 +89,14 @@ message ListenResponse { string router_token = 2; } +message StatusRequest {} + +message StatusResponse { + bool leased = 1; + optional string lease_name = 2; + optional string client_name = 3; +} + message DialRequest { string uuid = 1; }