mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
freeform querry api
Signed-off-by: Laurentiu Niculae <themelopeus@gmail.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
a31869f270
commit
7e3d063319
File diff suppressed because it is too large
Load Diff
@@ -19,6 +19,12 @@ type CVEResultForImage struct {
|
||||
CVEList []*Cve `json:"CVEList"`
|
||||
}
|
||||
|
||||
type GlobalSearchResult struct {
|
||||
Images []*ImageSummary `json:"Images"`
|
||||
Repos []*RepoSummary `json:"Repos"`
|
||||
Layers []*LayerSummary `json:"Layers"`
|
||||
}
|
||||
|
||||
type ImageInfo struct {
|
||||
Name *string `json:"Name"`
|
||||
Latest *string `json:"Latest"`
|
||||
@@ -30,6 +36,17 @@ type ImageInfo struct {
|
||||
Labels *string `json:"Labels"`
|
||||
}
|
||||
|
||||
type ImageSummary struct {
|
||||
RepoName *string `json:"RepoName"`
|
||||
Tag *string `json:"Tag"`
|
||||
LastUpdated *time.Time `json:"LastUpdated"`
|
||||
IsSigned *bool `json:"IsSigned"`
|
||||
Size *string `json:"Size"`
|
||||
Platform *OsArch `json:"Platform"`
|
||||
Vendor *string `json:"Vendor"`
|
||||
Score *int `json:"Score"`
|
||||
}
|
||||
|
||||
type ImgResultForCve struct {
|
||||
Name *string `json:"Name"`
|
||||
Tags []*string `json:"Tags"`
|
||||
@@ -49,6 +66,12 @@ type LayerInfo struct {
|
||||
Digest *string `json:"Digest"`
|
||||
}
|
||||
|
||||
type LayerSummary struct {
|
||||
Size *string `json:"Size"`
|
||||
Digest *string `json:"Digest"`
|
||||
Score *int `json:"Score"`
|
||||
}
|
||||
|
||||
type ManifestInfo struct {
|
||||
Digest *string `json:"Digest"`
|
||||
Tag *string `json:"Tag"`
|
||||
@@ -56,6 +79,11 @@ type ManifestInfo struct {
|
||||
Layers []*LayerInfo `json:"Layers"`
|
||||
}
|
||||
|
||||
type OsArch struct {
|
||||
Os *string `json:"Os"`
|
||||
Arch *string `json:"Arch"`
|
||||
}
|
||||
|
||||
type PackageInfo struct {
|
||||
Name *string `json:"Name"`
|
||||
InstalledVersion *string `json:"InstalledVersion"`
|
||||
@@ -66,6 +94,15 @@ type RepoInfo struct {
|
||||
Manifests []*ManifestInfo `json:"Manifests"`
|
||||
}
|
||||
|
||||
type RepoSummary struct {
|
||||
Name *string `json:"Name"`
|
||||
LastUpdated *time.Time `json:"LastUpdated"`
|
||||
Size *string `json:"Size"`
|
||||
Platforms []*OsArch `json:"Platforms"`
|
||||
Vendors []*string `json:"Vendors"`
|
||||
Score *int `json:"Score"`
|
||||
}
|
||||
|
||||
type TagInfo struct {
|
||||
Name *string `json:"Name"`
|
||||
Digest *string `json:"Digest"`
|
||||
|
||||
Reference in New Issue
Block a user