2020-08-19 01:53:04 -05:00
|
|
|
scalar Time
|
|
|
|
|
2020-06-26 14:09:10 -05:00
|
|
|
type CVEResultForImage {
|
2022-01-19 10:57:10 -05:00
|
|
|
Tag: String
|
|
|
|
CVEList: [CVE]
|
2020-06-26 14:09:10 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type CVE {
|
2022-01-19 10:57:10 -05:00
|
|
|
Id: String
|
|
|
|
Title: String
|
|
|
|
Description: String
|
|
|
|
Severity: String
|
|
|
|
PackageList: [PackageInfo]
|
2020-06-26 14:09:10 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type PackageInfo {
|
2022-01-19 10:57:10 -05:00
|
|
|
Name: String
|
|
|
|
InstalledVersion: String
|
|
|
|
FixedVersion: String
|
2021-01-25 13:04:03 -05:00
|
|
|
}
|
|
|
|
|
2022-02-01 21:02:05 -05:00
|
|
|
type RepoInfo {
|
2022-01-19 10:57:10 -05:00
|
|
|
Images: [ImageSummary]
|
|
|
|
Summary: RepoSummary
|
2022-02-01 21:02:05 -05:00
|
|
|
}
|
|
|
|
|
2022-07-12 07:58:04 -05:00
|
|
|
# Search results in all repos/images/layers
|
|
|
|
# There will be other more structures for more detailed information
|
|
|
|
type GlobalSearchResult {
|
2022-01-19 10:57:10 -05:00
|
|
|
Images: [ImageSummary]
|
|
|
|
Repos: [RepoSummary]
|
|
|
|
Layers: [LayerSummary]
|
2022-07-12 07:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
# Brief on a specific image to be used in queries returning a list of images
|
|
|
|
# We define an image as a pairing or a repo and a tag belonging to that repo
|
|
|
|
type ImageSummary {
|
2022-01-19 10:57:10 -05:00
|
|
|
RepoName: String
|
|
|
|
Tag: String
|
|
|
|
Digest: String
|
|
|
|
ConfigDigest: String
|
|
|
|
LastUpdated: Time
|
|
|
|
IsSigned: Boolean
|
|
|
|
Size: String
|
|
|
|
Platform: OsArch
|
|
|
|
Vendor: String
|
|
|
|
Score: Int
|
|
|
|
DownloadCount: Int
|
|
|
|
Layers: [LayerSummary]
|
|
|
|
Description: String
|
|
|
|
Licenses: String
|
|
|
|
Labels: String
|
2022-07-12 07:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
# Brief on a specific repo to be used in queries returning a list of repos
|
|
|
|
type RepoSummary {
|
2022-01-19 10:57:10 -05:00
|
|
|
Name: String
|
|
|
|
LastUpdated: Time
|
|
|
|
Size: String
|
|
|
|
Platforms: [OsArch]
|
|
|
|
Vendors: [String]
|
|
|
|
Score: Int
|
|
|
|
NewestImage: ImageSummary
|
|
|
|
DownloadCount: Int
|
|
|
|
StarCount: Int
|
|
|
|
IsBookmarked: Boolean
|
2022-07-12 07:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
# Currently the same as LayerInfo, we can refactor later
|
|
|
|
# For detailed information on the layer a ImageListForDigest call can be made
|
|
|
|
type LayerSummary {
|
2022-01-19 10:57:10 -05:00
|
|
|
Size: String # Int64 is not supported.
|
|
|
|
Digest: String
|
|
|
|
Score: Int
|
2022-07-12 07:58:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type OsArch {
|
2022-01-19 10:57:10 -05:00
|
|
|
Os: String
|
|
|
|
Arch: String
|
2022-07-12 07:58:04 -05:00
|
|
|
}
|
|
|
|
|
2020-06-26 14:09:10 -05:00
|
|
|
type Query {
|
2022-01-19 10:57:10 -05:00
|
|
|
CVEListForImage(image: String!): CVEResultForImage!
|
|
|
|
ImageListForCVE(id: String!): [ImageSummary!]
|
|
|
|
ImageListWithCVEFixed(id: String!, image: String!): [ImageSummary!]
|
|
|
|
ImageListForDigest(id: String!): [ImageSummary!]
|
|
|
|
ImageListWithLatestTag: [ImageSummary!]
|
|
|
|
ImageList(repo: String!): [ImageSummary!]
|
|
|
|
ExpandedRepoInfo(repo: String!): RepoInfo!
|
|
|
|
GlobalSearch(query: String!): GlobalSearchResult!
|
2021-01-25 13:04:03 -05:00
|
|
|
}
|