Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type CVEResultForImage
- type ComplexityRoot
- type Config
- type Cve
- type DirectiveRoot
- type GlobalSearchResult
- type ImageSummary
- type LayerSummary
- type OsArch
- type PackageInfo
- type QueryResolver
- type RepoInfo
- type RepoSummary
- type ResolverRoot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type CVEResultForImage ¶
type ComplexityRoot ¶
type ComplexityRoot struct { CVE struct { Description func(childComplexity int) int ID func(childComplexity int) int PackageList func(childComplexity int) int Severity func(childComplexity int) int Title func(childComplexity int) int } CVEResultForImage struct { CVEList func(childComplexity int) int Tag func(childComplexity int) int } GlobalSearchResult struct { Images func(childComplexity int) int Layers func(childComplexity int) int Repos func(childComplexity int) int } ImageSummary struct { ConfigDigest func(childComplexity int) int Description func(childComplexity int) int Digest func(childComplexity int) int DownloadCount func(childComplexity int) int IsSigned func(childComplexity int) int Labels func(childComplexity int) int LastUpdated func(childComplexity int) int Layers func(childComplexity int) int Licenses func(childComplexity int) int Platform func(childComplexity int) int RepoName func(childComplexity int) int Score func(childComplexity int) int Size func(childComplexity int) int Tag func(childComplexity int) int Vendor func(childComplexity int) int } LayerSummary struct { Digest func(childComplexity int) int Score func(childComplexity int) int Size func(childComplexity int) int } OsArch struct { Arch func(childComplexity int) int Os func(childComplexity int) int } PackageInfo struct { FixedVersion func(childComplexity int) int InstalledVersion func(childComplexity int) int Name func(childComplexity int) int } Query struct { CVEListForImage func(childComplexity int, image string) int ExpandedRepoInfo func(childComplexity int, repo string) int GlobalSearch func(childComplexity int, query string) int ImageList func(childComplexity int, repo string) int ImageListForCve func(childComplexity int, id string) int ImageListForDigest func(childComplexity int, id string) int ImageListWithCVEFixed func(childComplexity int, id string, image string) int ImageListWithLatestTag func(childComplexity int) int } RepoInfo struct { Images func(childComplexity int) int Summary func(childComplexity int) int } RepoSummary struct { DownloadCount func(childComplexity int) int IsBookmarked func(childComplexity int) int LastUpdated func(childComplexity int) int Name func(childComplexity int) int NewestImage func(childComplexity int) int Platforms func(childComplexity int) int Score func(childComplexity int) int Size func(childComplexity int) int StarCount func(childComplexity int) int Vendors func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type Cve ¶
type Cve struct { ID *string `json:"Id"` Title *string `json:"Title"` Description *string `json:"Description"` Severity *string `json:"Severity"` PackageList []*PackageInfo `json:"PackageList"` }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type GlobalSearchResult ¶
type GlobalSearchResult struct { Images []*ImageSummary `json:"Images"` Repos []*RepoSummary `json:"Repos"` Layers []*LayerSummary `json:"Layers"` }
type ImageSummary ¶
type ImageSummary struct { RepoName *string `json:"RepoName"` Tag *string `json:"Tag"` Digest *string `json:"Digest"` ConfigDigest *string `json:"ConfigDigest"` LastUpdated *time.Time `json:"LastUpdated"` IsSigned *bool `json:"IsSigned"` Size *string `json:"Size"` Platform *OsArch `json:"Platform"` Vendor *string `json:"Vendor"` Score *int `json:"Score"` DownloadCount *int `json:"DownloadCount"` Layers []*LayerSummary `json:"Layers"` Description *string `json:"Description"` Licenses *string `json:"Licenses"` Labels *string `json:"Labels"` }
type LayerSummary ¶
type PackageInfo ¶
type QueryResolver ¶
type QueryResolver interface { CVEListForImage(ctx context.Context, image string) (*CVEResultForImage, error) ImageListForCve(ctx context.Context, id string) ([]*ImageSummary, error) ImageListWithCVEFixed(ctx context.Context, id string, image string) ([]*ImageSummary, error) ImageListForDigest(ctx context.Context, id string) ([]*ImageSummary, error) ImageListWithLatestTag(ctx context.Context) ([]*ImageSummary, error) ImageList(ctx context.Context, repo string) ([]*ImageSummary, error) ExpandedRepoInfo(ctx context.Context, repo string) (*RepoInfo, error) GlobalSearch(ctx context.Context, query string) (*GlobalSearchResult, error) }
type RepoInfo ¶
type RepoInfo struct { Images []*ImageSummary `json:"Images"` Summary *RepoSummary `json:"Summary"` }
type RepoSummary ¶
type RepoSummary struct { Name *string `json:"Name"` LastUpdated *time.Time `json:"LastUpdated"` Size *string `json:"Size"` Platforms []*OsArch `json:"Platforms"` Vendors []*string `json:"Vendors"` Score *int `json:"Score"` NewestImage *ImageSummary `json:"NewestImage"` DownloadCount *int `json:"DownloadCount"` StarCount *int `json:"StarCount"` IsBookmarked *bool `json:"IsBookmarked"` }
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.