Added graphql api feature for image vulnerability scanning

This commit is contained in:
Shivam Mishra
2020-06-26 12:09:10 -07:00
parent baa5d247ec
commit 2cf2c16137
14 changed files with 3455 additions and 3 deletions
+28
View File
@@ -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]
}