mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
f75bce3085
UI can now make use of OCI artifacts and references using `Referrers` gQL query. It returns a list of descriptors that refer on their `subject` field to another digest. Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>
129 lines
4.5 KiB
Go
129 lines
4.5 KiB
Go
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
|
|
|
|
package gql_generated
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Annotation struct {
|
|
Key *string `json:"Key"`
|
|
Value *string `json:"Value"`
|
|
}
|
|
|
|
// Contains various details about the CVE and a list of PackageInfo about the affected packages
|
|
type Cve struct {
|
|
ID *string `json:"Id"`
|
|
Title *string `json:"Title"`
|
|
Description *string `json:"Description"`
|
|
Severity *string `json:"Severity"`
|
|
PackageList []*PackageInfo `json:"PackageList"`
|
|
}
|
|
|
|
// Contains the tag of the image and a list of CVEs
|
|
type CVEResultForImage struct {
|
|
Tag *string `json:"Tag"`
|
|
CVEList []*Cve `json:"CVEList"`
|
|
}
|
|
|
|
// Search everything. Can search Images, Repos and Layers
|
|
type GlobalSearchResult struct {
|
|
Images []*ImageSummary `json:"Images"`
|
|
Repos []*RepoSummary `json:"Repos"`
|
|
Layers []*LayerSummary `json:"Layers"`
|
|
}
|
|
|
|
type HistoryDescription struct {
|
|
Created *time.Time `json:"Created"`
|
|
// CreatedBy is the command which created the layer.
|
|
CreatedBy *string `json:"CreatedBy"`
|
|
// Author is the author of the build point.
|
|
Author *string `json:"Author"`
|
|
// Comment is a custom message set when creating the layer.
|
|
Comment *string `json:"Comment"`
|
|
// EmptyLayer is used to mark if the history item created a filesystem diff.
|
|
EmptyLayer *bool `json:"EmptyLayer"`
|
|
}
|
|
|
|
// Contains details about the image
|
|
type ImageSummary struct {
|
|
RepoName *string `json:"RepoName"`
|
|
Tag *string `json:"Tag"`
|
|
Digest *string `json:"Digest"`
|
|
ConfigDigest *string `json:"ConfigDigest"`
|
|
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"`
|
|
DownloadCount *int `json:"DownloadCount"`
|
|
Layers []*LayerSummary `json:"Layers"`
|
|
Description *string `json:"Description"`
|
|
Licenses *string `json:"Licenses"`
|
|
Labels *string `json:"Labels"`
|
|
Title *string `json:"Title"`
|
|
Source *string `json:"Source"`
|
|
Documentation *string `json:"Documentation"`
|
|
History []*LayerHistory `json:"History"`
|
|
Vulnerabilities *ImageVulnerabilitySummary `json:"Vulnerabilities"`
|
|
Authors *string `json:"Authors"`
|
|
}
|
|
|
|
type ImageVulnerabilitySummary struct {
|
|
MaxSeverity *string `json:"MaxSeverity"`
|
|
Count *int `json:"Count"`
|
|
}
|
|
|
|
type LayerHistory struct {
|
|
Layer *LayerSummary `json:"Layer"`
|
|
HistoryDescription *HistoryDescription `json:"HistoryDescription"`
|
|
}
|
|
|
|
// Contains details about the layer
|
|
type LayerSummary struct {
|
|
Size *string `json:"Size"`
|
|
Digest *string `json:"Digest"`
|
|
Score *int `json:"Score"`
|
|
}
|
|
|
|
// Contains details about the supported OS and architecture of the image
|
|
type OsArch struct {
|
|
Os *string `json:"Os"`
|
|
Arch *string `json:"Arch"`
|
|
}
|
|
|
|
// Contains the name of the package, the current installed version and the version where the CVE was fixed
|
|
type PackageInfo struct {
|
|
Name *string `json:"Name"`
|
|
InstalledVersion *string `json:"InstalledVersion"`
|
|
FixedVersion *string `json:"FixedVersion"`
|
|
}
|
|
|
|
type Referrer struct {
|
|
MediaType *string `json:"MediaType"`
|
|
ArtifactType *string `json:"ArtifactType"`
|
|
Size *int `json:"Size"`
|
|
Digest *string `json:"Digest"`
|
|
Annotations []*Annotation `json:"Annotations"`
|
|
}
|
|
|
|
// Contains details about the repo: a list of image summaries and a summary of the repo
|
|
type RepoInfo struct {
|
|
Images []*ImageSummary `json:"Images"`
|
|
Summary *RepoSummary `json:"Summary"`
|
|
}
|
|
|
|
// Contains details about the repo
|
|
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"`
|
|
NewestImage *ImageSummary `json:"NewestImage"`
|
|
DownloadCount *int `json:"DownloadCount"`
|
|
StarCount *int `json:"StarCount"`
|
|
IsBookmarked *bool `json:"IsBookmarked"`
|
|
}
|