From d7d30ce55e114b65d30991e72097a930c8b6ac5d Mon Sep 17 00:00:00 2001 From: Tabing010102 Date: Sun, 29 Dec 2024 23:16:52 +0800 Subject: [PATCH] chore(gebura): add ReportSentinelInformation --- proto/librarian/sephirah/v1/gebura.proto | 26 ++++++++++++++++++++++ proto/librarian/sephirah/v1/sephirah.proto | 2 ++ 2 files changed, 28 insertions(+) diff --git a/proto/librarian/sephirah/v1/gebura.proto b/proto/librarian/sephirah/v1/gebura.proto index af4c270..728ee5c 100644 --- a/proto/librarian/sephirah/v1/gebura.proto +++ b/proto/librarian/sephirah/v1/gebura.proto @@ -157,6 +157,24 @@ message ListAppsResponse { repeated App apps = 2; } +message ReportSentinelInformationRequest { + repeated string hostnames = 1; + ServerScheme scheme = 2; + string get_token_path = 3; + repeated SentinelLibrary libraries = 4; + message SentinelLibrary { + int64 id = 1; + string base_path = 2; + } + enum ServerScheme { + SERVER_SCHEME_UNSPECIFIED = 0; + SERVER_SCHEME_HTTP = 1; + SERVER_SCHEME_HTTPS = 2; + } +} + +message ReportSentinelInformationResponse {} + message ReportAppBinariesRequest { repeated AppBinary app_binaries = 1; } @@ -425,12 +443,20 @@ message App { message AppBinary { librarian.v1.InternalID id = 1; librarian.v1.InternalID sentinel_id = 2; +<<<<<<< HEAD + int64 sentinel_library_id = 3; + string sentinel_generated_id = 4; + string name = 5; + int64 size_bytes = 6; + bool need_token = 7; +======= string name = 3; int64 size_bytes = 4; bool need_token = 5; // valid when need_token is false optional string dl_base_url = 6; string sentinel_generated_id = 9; +>>>>>>> 36e1daf (feat(gebura): add sentinel related fields to AppBinary) repeated AppBinaryFile files = 10; } diff --git a/proto/librarian/sephirah/v1/sephirah.proto b/proto/librarian/sephirah/v1/sephirah.proto index 90edf48..b4d8727 100644 --- a/proto/librarian/sephirah/v1/sephirah.proto +++ b/proto/librarian/sephirah/v1/sephirah.proto @@ -178,6 +178,8 @@ service LibrarianSephirahService { // `Gebura` `Normal` rpc UnAssignApp(UnAssignAppRequest) returns (UnAssignAppResponse); + // `Gebura` `Sentinel` + rpc ReportSentinelInformation(ReportSentinelInformationRequest) returns (ReportSentinelInformationResponse); // `Gebura` `Sentinel` // Full update, changes are handled by librarian rpc ReportAppBinaries(ReportAppBinariesRequest) returns (ReportAppBinariesResponse);