mirror of
https://github.com/project-zot/zot.git
synced 2025-01-13 22:50:38 -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>
45 lines
No EOL
1.1 KiB
Protocol Buffer
45 lines
No EOL
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package oci_v1;
|
|
|
|
import "oci/timestamp.proto";
|
|
import "oci/descriptor.proto";
|
|
|
|
// https://github.com/opencontainers/image-spec/blob/main/specs-go/v1/config.go
|
|
|
|
message Image {
|
|
optional google.protobuf.Timestamp Created = 1;
|
|
optional string Author = 2;
|
|
Platform Platform = 3;
|
|
optional ImageConfig Config = 4;
|
|
optional RootFS RootFS = 5;
|
|
repeated History History = 6;
|
|
}
|
|
|
|
message ImageConfig {
|
|
map <string,EmptyMessage> ExposedPorts = 1;
|
|
map <string,EmptyMessage> Volumes = 2;
|
|
map <string,string> Labels = 3;
|
|
string User = 4;
|
|
repeated string Env = 5;
|
|
repeated string Entrypoint = 6;
|
|
repeated string Cmd = 7;
|
|
optional string WorkingDir = 8;
|
|
optional string StopSignal = 9;
|
|
bool ArgsEscaped = 10;
|
|
}
|
|
|
|
message RootFS {
|
|
string Type = 1;
|
|
repeated string DiffIDs = 2;
|
|
}
|
|
|
|
message History {
|
|
optional google.protobuf.Timestamp Created = 1;
|
|
|
|
optional string CreatedBy = 2;
|
|
optional string Author = 3;
|
|
optional string Comment = 4;
|
|
optional bool EmptyLayer = 5;
|
|
}
|
|
|
|
message EmptyMessage{} |