Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type CVEResultForImage
- type ComplexityRoot
- type Config
- type Cve
- type DirectiveRoot
- type GlobalSearchResult
- type HistoryDescription
- type ImageSummary
- type LayerHistory
- 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 } HistoryDescription struct { Author func(childComplexity int) int Comment func(childComplexity int) int Created func(childComplexity int) int CreatedBy func(childComplexity int) int EmptyLayer func(childComplexity int) int } ImageSummary struct { ConfigDigest func(childComplexity int) int Description func(childComplexity int) int Digest func(childComplexity int) int Documentation func(childComplexity int) int DownloadCount func(childComplexity int) int History 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 Source func(childComplexity int) int Tag func(childComplexity int) int Title func(childComplexity int) int Vendor func(childComplexity int) int } LayerHistory struct { HistoryDescription func(childComplexity int) int Layer 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 { BaseImageList func(childComplexity int, image string) int CVEListForImage func(childComplexity int, image string) int DerivedImageList 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 RepoListWithNewestImage 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 HistoryDescription ¶ added in v1.4.3
type HistoryDescription struct { Created *time.Time `json:"Created"` // CreatedBy is the command which created the layer. CreatedBy *string `json:"CreatedBy"` // Author is the author of the build point. Author *string `json:"Author"` // Comment is a custom message set when creating the layer. Comment *string `json:"Comment"` // EmptyLayer is used to mark if the history item created a filesystem diff. EmptyLayer *bool `json:"EmptyLayer"` }
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"` Title *string `json:"Title"` Source *string `json:"Source"` Documentation *string `json:"Documentation"` History []*LayerHistory `json:"History"` }
type LayerHistory ¶ added in v1.4.3
type LayerHistory struct { Layer *LayerSummary `json:"Layer"` HistoryDescription *HistoryDescription `json:"HistoryDescription"` }
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) RepoListWithNewestImage(ctx context.Context) ([]*RepoSummary, 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) DerivedImageList(ctx context.Context, image string) ([]*ImageSummary, error) BaseImageList(ctx context.Context, image string) ([]*ImageSummary, 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.