Skip to content

Commit

Permalink
chore(gebura): add ReportSentinelInformation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabing010102 committed Dec 29, 2024
1 parent a9a0d10 commit d7d30ce
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
26 changes: 26 additions & 0 deletions proto/librarian/sephirah/v1/gebura.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions proto/librarian/sephirah/v1/sephirah.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d7d30ce

Please sign in to comment.