mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
59 lines
1 KiB
GraphQL
59 lines
1 KiB
GraphQL
scalar Time
|
|
|
|
type CVEResultForImage {
|
|
Tag: String
|
|
CVEList: [CVE]
|
|
}
|
|
|
|
type CVE {
|
|
Id: String
|
|
Title: String
|
|
Description: String
|
|
Severity: String
|
|
PackageList: [PackageInfo]
|
|
}
|
|
|
|
type PackageInfo {
|
|
Name: String
|
|
InstalledVersion: String
|
|
FixedVersion: String
|
|
}
|
|
|
|
type ImgResultForCVE {
|
|
Name: String
|
|
Tags: [String]
|
|
}
|
|
|
|
type ImgResultForFixedCVE {
|
|
Tags: [TagInfo]
|
|
}
|
|
|
|
type ImgResultForDigest {
|
|
Name: String
|
|
Tags: [String]
|
|
}
|
|
|
|
type TagInfo {
|
|
Name: String
|
|
Digest: String
|
|
Timestamp: Time
|
|
}
|
|
|
|
type ImageInfo {
|
|
Name: String
|
|
Latest: String
|
|
LastUpdated: Time
|
|
Description: String
|
|
Licenses: String
|
|
Vendor: String
|
|
Size: String
|
|
Labels: String
|
|
}
|
|
|
|
type Query {
|
|
CVEListForImage(image: String!) :CVEResultForImage
|
|
ImageListForCVE(id: String!) :[ImgResultForCVE]
|
|
ImageListWithCVEFixed(id: String!, image: String!) :ImgResultForFixedCVE
|
|
ImageListForDigest(id: String!) :[ImgResultForDigest]
|
|
ImageListWithLatestTag:[ImageInfo]
|
|
}
|