search: added graphql api to return repository list with latest tag

This commit is contained in:
Shivam Mishra
2021-01-25 10:04:03 -08:00
committed by Ramkumar Chinchani
parent 0b302d9614
commit 63fef3e48c
16 changed files with 1775 additions and 640 deletions
+14 -1
View File
@@ -35,12 +35,25 @@ type ImgResultForDigest {
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]
}