-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve UX by speeding by metadb serialize/deserialize
Signed-off-by: Ramkumar Chinchani <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
syntax = "proto3"; | ||
package v1; | ||
|
||
option go_package = "github.com/project-zot/zot/internal/pb/v1"; | ||
|
||
|
||
// https://github.com/opencontainers/image-spec/blob/main/specs-go/v1/descriptor.go | ||
|
||
message Descriptor { | ||
string mediaType = 1; | ||
string digest = 2; | ||
int64 size = 3; | ||
repeated string urls = 4; | ||
map <string,string> annotations = 5; | ||
repeated bytes data = 6; | ||
optional Platform platform = 7; | ||
optional string artifactType = 8; | ||
} | ||
|
||
message Platform { | ||
string architecture = 1; | ||
string os = 2; | ||
optional string osversion = 3; | ||
repeated string osfeatures = 4; | ||
optional string variant = 5; | ||
} |