Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type CVEResultForImage
- type ComplexityRoot
- type Config
- type Cve
- type DirectiveRoot
- type ImageInfo
- type ImgResultForCve
- type ImgResultForDigest
- type ImgResultForFixedCve
- type PackageInfo
- type QueryResolver
- type Resolver
- type ResolverRoot
- type TagInfo
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 } ImageInfo struct { Description func(childComplexity int) int Labels func(childComplexity int) int LastUpdated func(childComplexity int) int Latest func(childComplexity int) int Licenses func(childComplexity int) int Name func(childComplexity int) int Size func(childComplexity int) int Vendor func(childComplexity int) int } ImgResultForCve struct { Name func(childComplexity int) int Tags func(childComplexity int) int } ImgResultForDigest struct { Name func(childComplexity int) int Tags func(childComplexity int) int } ImgResultForFixedCve struct { Tags 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 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 } TagInfo struct { Digest func(childComplexity int) int Name func(childComplexity int) int Timestamp func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
func GetResolverConfig ¶
func GetResolverConfig(log log.Logger, storeController storage.StoreController, enableCVE bool) Config
GetResolverConfig ...
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 { Deprecated func(ctx context.Context, obj interface{}, next graphql.Resolver, reason *string) (res interface{}, err error) Include func(ctx context.Context, obj interface{}, next graphql.Resolver, ifArg bool) (res interface{}, err error) Skip func(ctx context.Context, obj interface{}, next graphql.Resolver, ifArg bool) (res interface{}, err error) }
type ImgResultForCve ¶
type ImgResultForDigest ¶
type ImgResultForFixedCve ¶
type ImgResultForFixedCve struct {
Tags []*TagInfo `json:"Tags"`
}
type PackageInfo ¶
type QueryResolver ¶
type QueryResolver interface { CVEListForImage(ctx context.Context, image string) (*CVEResultForImage, error) ImageListForCve(ctx context.Context, id string) ([]*ImgResultForCve, error) ImageListWithCVEFixed(ctx context.Context, id string, image string) (*ImgResultForFixedCve, error) ImageListForDigest(ctx context.Context, id string) ([]*ImgResultForDigest, error) ImageListWithLatestTag(ctx context.Context) ([]*ImageInfo, error) }
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.