Documentation ¶
Index ¶
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.
func ProjectToGQL ¶
func ProjectToGQL(p db.DatabaseSecurityProject) model.Project
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Mutation struct { CreateProject func(childComplexity int, project model.ProjectInput) int CreateScanner func(childComplexity int, scanner model.ScannerInput) int CreateUser func(childComplexity int, user model.UserInput) int } Parameters struct { IDParameter func(childComplexity int) int Name func(childComplexity int) int Value func(childComplexity int) int } Project struct { Analysis func(childComplexity int) int Credentials func(childComplexity int) int IDProject func(childComplexity int) int Name func(childComplexity int) int Params func(childComplexity int) int ProjectAssets func(childComplexity int) int Users func(childComplexity int) int Vulnerabilities func(childComplexity int) int } ProjectAssets struct { Details func(childComplexity int) int TypeAsset func(childComplexity int) int } ProjectCredentials struct { Label func(childComplexity int) int Value func(childComplexity int) int } Query struct { Project func(childComplexity int, id string) int Scanner func(childComplexity int, id string) int Scanners func(childComplexity int, id *string) int } Scanner struct { IDScanner func(childComplexity int) int Install func(childComplexity int) int Name func(childComplexity int) int Report func(childComplexity int) int Run func(childComplexity int) int Type func(childComplexity int) int } ScannerAnalysis struct { Cron func(childComplexity int) int IDAnalysis func(childComplexity int) int Params func(childComplexity int) int Scanner func(childComplexity int) int Timeout func(childComplexity int) int } User struct { IDUser func(childComplexity int) int Name func(childComplexity int) int } UserRole struct { Name func(childComplexity int) int Role func(childComplexity int) int } Vulnerability struct { AnalysisDate func(childComplexity int) int Cve func(childComplexity int) int Cwe func(childComplexity int) int IDVuln func(childComplexity int) int Infos func(childComplexity int) int Origin func(childComplexity int) int OriginalCvss func(childComplexity int) int RevisedCvss func(childComplexity int) int ScannerID func(childComplexity int) int Status func(childComplexity int) int Vex func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type Resolver ¶
type Resolver struct { DB *db.SecurityDatabase Logger *zap.SugaredLogger }
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.