Skip to content

Commit

Permalink
feat(gebura): add sentinel related fields to AppBinary
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabing010102 committed Dec 28, 2024
1 parent fdf6be9 commit 36e1daf
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions proto/librarian/sephirah/v1/gebura.proto
Original file line number Diff line number Diff line change
Expand Up @@ -424,19 +424,28 @@ message App {

message AppBinary {
librarian.v1.InternalID id = 1;
string name = 2;
int64 size_bytes = 3;
string public_url = 4;
bytes sha256 = 5;
string token_server_url = 6;
repeated Chunk chunks = 7;
message Chunk {
// Starts from 1
int64 sequence = 1;
int64 size_bytes = 2;
string public_url = 3;
bytes sha256 = 4;
}
librarian.v1.InternalID sentinel_id = 2;
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;
repeated AppBinaryFile files = 10;
}

message AppBinaryFile {
string name = 1;
int64 size_bytes = 2;
bytes sha256 = 3;
// should be path-joined when AppBinary.need_token is false
string server_file_path = 4;
}

message AppBinaryFileChunk {
int64 offset_bytes = 1;
int64 size_bytes = 2;
bytes sha256 = 3;
}

message AppCategory {
Expand Down

0 comments on commit 36e1daf

Please sign in to comment.