2020-08-19 01:53:04 -05:00
|
|
|
scalar Time
|
|
|
|
|
2020-06-26 14:09:10 -05:00
|
|
|
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]
|
|
|
|
}
|
|
|
|
|
2020-08-19 01:53:04 -05:00
|
|
|
type ImgResultForFixedCVE {
|
|
|
|
Tags: [TagInfo]
|
|
|
|
}
|
|
|
|
|
2021-05-26 12:22:31 -05:00
|
|
|
type ImgResultForDigest {
|
|
|
|
Name: String
|
|
|
|
Tags: [String]
|
|
|
|
}
|
|
|
|
|
2020-08-19 01:53:04 -05:00
|
|
|
type TagInfo {
|
|
|
|
Name: String
|
2021-01-25 13:04:03 -05:00
|
|
|
Digest: String
|
2020-08-19 01:53:04 -05:00
|
|
|
Timestamp: Time
|
|
|
|
}
|
|
|
|
|
2021-01-25 13:04:03 -05:00
|
|
|
type ImageInfo {
|
|
|
|
Name: String
|
|
|
|
Latest: String
|
|
|
|
LastUpdated: Time
|
|
|
|
Description: String
|
|
|
|
Licenses: String
|
|
|
|
Vendor: String
|
|
|
|
Size: String
|
|
|
|
Labels: String
|
|
|
|
}
|
|
|
|
|
2022-02-01 21:02:05 -05:00
|
|
|
type RepoInfo {
|
|
|
|
Manifests: [ManifestInfo]
|
|
|
|
}
|
|
|
|
|
|
|
|
type ManifestInfo {
|
|
|
|
Digest: String
|
|
|
|
Tag: String
|
|
|
|
IsSigned: Boolean
|
|
|
|
Layers: [LayerInfo]
|
|
|
|
}
|
|
|
|
|
|
|
|
type LayerInfo {
|
|
|
|
Size: String # Int64 is not supported.
|
|
|
|
Digest: String
|
|
|
|
}
|
|
|
|
|
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 {
|
|
|
|
Images: [ImageSummary]
|
|
|
|
Repos: [RepoSummary]
|
|
|
|
Layers: [LayerSummary]
|
|
|
|
}
|
|
|
|
|
|
|
|
# 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 {
|
|
|
|
RepoName: String
|
|
|
|
Tag: String
|
|
|
|
LastUpdated: Time
|
|
|
|
IsSigned: Boolean
|
|
|
|
Size: String
|
|
|
|
Platform: OsArch
|
|
|
|
Vendor: String
|
|
|
|
Score: Int
|
|
|
|
}
|
|
|
|
|
|
|
|
# Brief on a specific repo to be used in queries returning a list of repos
|
|
|
|
type RepoSummary {
|
|
|
|
Name: String
|
|
|
|
LastUpdated: Time
|
|
|
|
Size: String
|
|
|
|
Platforms: [OsArch]
|
|
|
|
Vendors: [String]
|
|
|
|
Score: Int
|
|
|
|
}
|
|
|
|
|
|
|
|
# Currently the same as LayerInfo, we can refactor later
|
|
|
|
# For detailed information on the layer a ImageListForDigest call can be made
|
|
|
|
type LayerSummary {
|
|
|
|
Size: String # Int64 is not supported.
|
|
|
|
Digest: String
|
|
|
|
Score: Int
|
|
|
|
}
|
|
|
|
|
|
|
|
type OsArch {
|
|
|
|
Os: String
|
|
|
|
Arch: String
|
|
|
|
}
|
|
|
|
|
2020-06-26 14:09:10 -05:00
|
|
|
type Query {
|
|
|
|
CVEListForImage(image: String!) :CVEResultForImage
|
|
|
|
ImageListForCVE(id: String!) :[ImgResultForCVE]
|
2020-08-19 01:53:04 -05:00
|
|
|
ImageListWithCVEFixed(id: String!, image: String!) :ImgResultForFixedCVE
|
2021-05-26 12:22:31 -05:00
|
|
|
ImageListForDigest(id: String!) :[ImgResultForDigest]
|
2021-01-25 13:04:03 -05:00
|
|
|
ImageListWithLatestTag:[ImageInfo]
|
2022-02-01 21:02:05 -05:00
|
|
|
ExpandedRepoInfo(repo: String!):RepoInfo
|
2022-07-12 07:58:04 -05:00
|
|
|
GlobalSearch(query: String!): GlobalSearchResult
|
2021-01-25 13:04:03 -05:00
|
|
|
}
|