mirror of
https://github.com/project-zot/zot.git
synced 2025-01-20 22:52:51 -05:00
56ad9e6707
Use protocol buffers and update the metadb interface to better suit our search needs Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com> Co-authored-by: Ramkumar Chinchani <rchincha@cisco.com>
23 lines
No EOL
620 B
Protocol Buffer
23 lines
No EOL
620 B
Protocol Buffer
syntax = "proto3";
|
|
package oci_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;
|
|
bytes Data = 5;
|
|
optional Platform Platform = 6;
|
|
optional string ArtifactType = 7;
|
|
map <string,string> Annotations = 8;
|
|
}
|
|
|
|
message Platform {
|
|
string Architecture = 1;
|
|
string OS = 2;
|
|
optional string OSVersion = 3;
|
|
repeated string OSFeatures = 4;
|
|
optional string Variant = 5;
|
|
} |