mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
Added graphql api feature for image vulnerability scanning
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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 Query {
|
||||
CVEListForImage(image: String!) :CVEResultForImage
|
||||
ImageListForCVE(id: String!) :[ImgResultForCVE]
|
||||
}
|
||||
Reference in New Issue
Block a user