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.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Annotation struct { Key func(childComplexity int) int Value func(childComplexity int) int } Artifact struct { Algorithm func(childComplexity int) int Digest func(childComplexity int) int ID func(childComplexity int) int } Builder struct { ID func(childComplexity int) int URI func(childComplexity int) int } CVE struct { CveID func(childComplexity int) int ID func(childComplexity int) int Year func(childComplexity int) int } CertifyBad struct { Collector func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int Origin func(childComplexity int) int Subject func(childComplexity int) int } CertifyGood struct { Collector func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int Origin func(childComplexity int) int Subject func(childComplexity int) int } CertifyScorecard struct { ID func(childComplexity int) int Scorecard func(childComplexity int) int Source func(childComplexity int) int } CertifyVEXStatement struct { Collector func(childComplexity int) int ID func(childComplexity int) int KnownSince func(childComplexity int) int Origin func(childComplexity int) int Statement func(childComplexity int) int Status func(childComplexity int) int StatusNotes func(childComplexity int) int Subject func(childComplexity int) int VexJustification func(childComplexity int) int Vulnerability func(childComplexity int) int } CertifyVuln struct { ID func(childComplexity int) int Metadata func(childComplexity int) int Package func(childComplexity int) int Vulnerability func(childComplexity int) int } GHSA struct { GhsaID func(childComplexity int) int ID func(childComplexity int) int } HasSBOM struct { Algorithm func(childComplexity int) int Annotations func(childComplexity int) int Collector func(childComplexity int) int Digest func(childComplexity int) int DownloadLocation func(childComplexity int) int ID func(childComplexity int) int Origin func(childComplexity int) int Subject func(childComplexity int) int URI func(childComplexity int) int } HasSLSA struct { ID func(childComplexity int) int Slsa func(childComplexity int) int Subject func(childComplexity int) int } HasSourceAt struct { Collector func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int KnownSince func(childComplexity int) int Origin func(childComplexity int) int Package func(childComplexity int) int Source func(childComplexity int) int } HashEqual struct { Artifacts func(childComplexity int) int Collector func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int Origin func(childComplexity int) int } IsDependency struct { Collector func(childComplexity int) int DependencyType func(childComplexity int) int DependentPackage func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int Origin func(childComplexity int) int Package func(childComplexity int) int VersionRange func(childComplexity int) int } IsOccurrence struct { Artifact func(childComplexity int) int Collector func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int Origin func(childComplexity int) int Subject func(childComplexity int) int } IsVulnerability struct { Collector func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int Origin func(childComplexity int) int Osv func(childComplexity int) int Vulnerability func(childComplexity int) int } Mutation struct { CertifyScorecard func(childComplexity int, source model.SourceInputSpec, scorecard model.ScorecardInputSpec) int IngestArtifact func(childComplexity int, artifact *model.ArtifactInputSpec) int IngestBuilder func(childComplexity int, builder *model.BuilderInputSpec) int IngestCertifyBad func(childComplexity int, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, certifyBad model.CertifyBadInputSpec) int IngestCertifyGood func(childComplexity int, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, certifyGood model.CertifyGoodInputSpec) int IngestCve func(childComplexity int, cve *model.CVEInputSpec) int IngestDependency func(childComplexity int, pkg model.PkgInputSpec, depPkg model.PkgInputSpec, dependency model.IsDependencyInputSpec) int IngestGhsa func(childComplexity int, ghsa *model.GHSAInputSpec) int IngestHasSbom func(childComplexity int, subject model.PackageOrArtifactInput, hasSbom model.HasSBOMInputSpec) int IngestHasSourceAt func(childComplexity int, pkg model.PkgInputSpec, pkgMatchType model.MatchFlags, source model.SourceInputSpec, hasSourceAt model.HasSourceAtInputSpec) int IngestHashEqual func(childComplexity int, artifact model.ArtifactInputSpec, otherArtifact model.ArtifactInputSpec, hashEqual model.HashEqualInputSpec) int IngestIsVulnerability func(childComplexity int, osv model.OSVInputSpec, vulnerability model.CveOrGhsaInput, isVulnerability model.IsVulnerabilityInputSpec) int IngestMaterials func(childComplexity int, materials []*model.ArtifactInputSpec) int IngestOccurrence func(childComplexity int, subject model.PackageOrSourceInput, artifact model.ArtifactInputSpec, occurrence model.IsOccurrenceInputSpec) int IngestOsv func(childComplexity int, osv *model.OSVInputSpec) int IngestPackage func(childComplexity int, pkg model.PkgInputSpec) int IngestPkgEqual func(childComplexity int, pkg model.PkgInputSpec, otherPackage model.PkgInputSpec, pkgEqual model.PkgEqualInputSpec) int IngestSlsa func(childComplexity int, subject model.ArtifactInputSpec, builtFrom []*model.ArtifactInputSpec, builtBy model.BuilderInputSpec, slsa model.SLSAInputSpec) int IngestSource func(childComplexity int, source model.SourceInputSpec) int IngestVEXStatement func(childComplexity int, subject model.PackageOrArtifactInput, vulnerability model.VulnerabilityInput, vexStatement model.VexStatementInputSpec) int IngestVulnerability func(childComplexity int, pkg model.PkgInputSpec, vulnerability model.VulnerabilityInput, certifyVuln model.VulnerabilityMetaDataInput) int } NoVuln struct { ID func(childComplexity int) int } OSV struct { ID func(childComplexity int) int OsvID func(childComplexity int) int } Package struct { ID func(childComplexity int) int Namespaces func(childComplexity int) int Type func(childComplexity int) int } PackageName struct { ID func(childComplexity int) int Name func(childComplexity int) int Versions func(childComplexity int) int } PackageNamespace struct { ID func(childComplexity int) int Names func(childComplexity int) int Namespace func(childComplexity int) int } PackageQualifier struct { Key func(childComplexity int) int Value func(childComplexity int) int } PackageVersion struct { ID func(childComplexity int) int Qualifiers func(childComplexity int) int Subpath func(childComplexity int) int Version func(childComplexity int) int } PkgEqual struct { Collector func(childComplexity int) int ID func(childComplexity int) int Justification func(childComplexity int) int Origin func(childComplexity int) int Packages func(childComplexity int) int } Query struct { Artifacts func(childComplexity int, artifactSpec *model.ArtifactSpec) int Builders func(childComplexity int, builderSpec *model.BuilderSpec) int CertifyBad func(childComplexity int, certifyBadSpec *model.CertifyBadSpec) int CertifyGood func(childComplexity int, certifyGoodSpec *model.CertifyGoodSpec) int CertifyVEXStatement func(childComplexity int, certifyVEXStatementSpec *model.CertifyVEXStatementSpec) int CertifyVuln func(childComplexity int, certifyVulnSpec *model.CertifyVulnSpec) int Cve func(childComplexity int, cveSpec *model.CVESpec) int Ghsa func(childComplexity int, ghsaSpec *model.GHSASpec) int HasSbom func(childComplexity int, hasSBOMSpec *model.HasSBOMSpec) int HasSlsa func(childComplexity int, hasSLSASpec *model.HasSLSASpec) int HasSourceAt func(childComplexity int, hasSourceAtSpec *model.HasSourceAtSpec) int HashEqual func(childComplexity int, hashEqualSpec *model.HashEqualSpec) int IsDependency func(childComplexity int, isDependencySpec *model.IsDependencySpec) int IsOccurrence func(childComplexity int, isOccurrenceSpec *model.IsOccurrenceSpec) int IsVulnerability func(childComplexity int, isVulnerabilitySpec *model.IsVulnerabilitySpec) int Neighbors func(childComplexity int, node string, usingOnly []model.Edge) int Node func(childComplexity int, node string) int Nodes func(childComplexity int, nodes []string) int Osv func(childComplexity int, osvSpec *model.OSVSpec) int Packages func(childComplexity int, pkgSpec *model.PkgSpec) int Path func(childComplexity int, subject string, target string, maxPathLength int, usingOnly []model.Edge) int PkgEqual func(childComplexity int, pkgEqualSpec *model.PkgEqualSpec) int Scorecards func(childComplexity int, scorecardSpec *model.CertifyScorecardSpec) int Sources func(childComplexity int, sourceSpec *model.SourceSpec) int } SLSA struct { BuildType func(childComplexity int) int BuiltBy func(childComplexity int) int BuiltFrom func(childComplexity int) int Collector func(childComplexity int) int FinishedOn func(childComplexity int) int Origin func(childComplexity int) int SlsaPredicate func(childComplexity int) int SlsaVersion func(childComplexity int) int StartedOn func(childComplexity int) int } SLSAPredicate struct { Key func(childComplexity int) int Value func(childComplexity int) int } Scorecard struct { AggregateScore func(childComplexity int) int Checks func(childComplexity int) int Collector func(childComplexity int) int Origin func(childComplexity int) int ScorecardCommit func(childComplexity int) int ScorecardVersion func(childComplexity int) int TimeScanned func(childComplexity int) int } ScorecardCheck struct { Check func(childComplexity int) int Score func(childComplexity int) int } Source struct { ID func(childComplexity int) int Namespaces func(childComplexity int) int Type func(childComplexity int) int } SourceName struct { Commit func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Tag func(childComplexity int) int } SourceNamespace struct { ID func(childComplexity int) int Names func(childComplexity int) int Namespace func(childComplexity int) int } VulnerabilityMetaData struct { Collector func(childComplexity int) int DbURI func(childComplexity int) int DbVersion func(childComplexity int) int Origin func(childComplexity int) int ScannerURI func(childComplexity int) int ScannerVersion func(childComplexity int) int TimeScanned func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { IngestArtifact(ctx context.Context, artifact *model.ArtifactInputSpec) (*model.Artifact, error) IngestBuilder(ctx context.Context, builder *model.BuilderInputSpec) (*model.Builder, error) IngestCertifyBad(ctx context.Context, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, certifyBad model.CertifyBadInputSpec) (*model.CertifyBad, error) IngestCertifyGood(ctx context.Context, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, certifyGood model.CertifyGoodInputSpec) (*model.CertifyGood, error) CertifyScorecard(ctx context.Context, source model.SourceInputSpec, scorecard model.ScorecardInputSpec) (*model.CertifyScorecard, error) IngestVEXStatement(ctx context.Context, subject model.PackageOrArtifactInput, vulnerability model.VulnerabilityInput, vexStatement model.VexStatementInputSpec) (*model.CertifyVEXStatement, error) IngestVulnerability(ctx context.Context, pkg model.PkgInputSpec, vulnerability model.VulnerabilityInput, certifyVuln model.VulnerabilityMetaDataInput) (*model.CertifyVuln, error) IngestCve(ctx context.Context, cve *model.CVEInputSpec) (*model.Cve, error) IngestGhsa(ctx context.Context, ghsa *model.GHSAInputSpec) (*model.Ghsa, error) IngestHasSbom(ctx context.Context, subject model.PackageOrArtifactInput, hasSbom model.HasSBOMInputSpec) (*model.HasSbom, error) IngestSlsa(ctx context.Context, subject model.ArtifactInputSpec, builtFrom []*model.ArtifactInputSpec, builtBy model.BuilderInputSpec, slsa model.SLSAInputSpec) (*model.HasSlsa, error) IngestMaterials(ctx context.Context, materials []*model.ArtifactInputSpec) ([]*model.Artifact, error) IngestHasSourceAt(ctx context.Context, pkg model.PkgInputSpec, pkgMatchType model.MatchFlags, source model.SourceInputSpec, hasSourceAt model.HasSourceAtInputSpec) (*model.HasSourceAt, error) IngestHashEqual(ctx context.Context, artifact model.ArtifactInputSpec, otherArtifact model.ArtifactInputSpec, hashEqual model.HashEqualInputSpec) (*model.HashEqual, error) IngestDependency(ctx context.Context, pkg model.PkgInputSpec, depPkg model.PkgInputSpec, dependency model.IsDependencyInputSpec) (*model.IsDependency, error) IngestOccurrence(ctx context.Context, subject model.PackageOrSourceInput, artifact model.ArtifactInputSpec, occurrence model.IsOccurrenceInputSpec) (*model.IsOccurrence, error) IngestIsVulnerability(ctx context.Context, osv model.OSVInputSpec, vulnerability model.CveOrGhsaInput, isVulnerability model.IsVulnerabilityInputSpec) (*model.IsVulnerability, error) IngestOsv(ctx context.Context, osv *model.OSVInputSpec) (*model.Osv, error) IngestPackage(ctx context.Context, pkg model.PkgInputSpec) (*model.Package, error) IngestPkgEqual(ctx context.Context, pkg model.PkgInputSpec, otherPackage model.PkgInputSpec, pkgEqual model.PkgEqualInputSpec) (*model.PkgEqual, error) IngestSource(ctx context.Context, source model.SourceInputSpec) (*model.Source, error) }
type QueryResolver ¶
type QueryResolver interface { Artifacts(ctx context.Context, artifactSpec *model.ArtifactSpec) ([]*model.Artifact, error) Builders(ctx context.Context, builderSpec *model.BuilderSpec) ([]*model.Builder, error) CertifyBad(ctx context.Context, certifyBadSpec *model.CertifyBadSpec) ([]*model.CertifyBad, error) CertifyGood(ctx context.Context, certifyGoodSpec *model.CertifyGoodSpec) ([]*model.CertifyGood, error) Scorecards(ctx context.Context, scorecardSpec *model.CertifyScorecardSpec) ([]*model.CertifyScorecard, error) CertifyVEXStatement(ctx context.Context, certifyVEXStatementSpec *model.CertifyVEXStatementSpec) ([]*model.CertifyVEXStatement, error) CertifyVuln(ctx context.Context, certifyVulnSpec *model.CertifyVulnSpec) ([]*model.CertifyVuln, error) Cve(ctx context.Context, cveSpec *model.CVESpec) ([]*model.Cve, error) Ghsa(ctx context.Context, ghsaSpec *model.GHSASpec) ([]*model.Ghsa, error) HasSbom(ctx context.Context, hasSBOMSpec *model.HasSBOMSpec) ([]*model.HasSbom, error) HasSlsa(ctx context.Context, hasSLSASpec *model.HasSLSASpec) ([]*model.HasSlsa, error) HasSourceAt(ctx context.Context, hasSourceAtSpec *model.HasSourceAtSpec) ([]*model.HasSourceAt, error) HashEqual(ctx context.Context, hashEqualSpec *model.HashEqualSpec) ([]*model.HashEqual, error) IsDependency(ctx context.Context, isDependencySpec *model.IsDependencySpec) ([]*model.IsDependency, error) IsOccurrence(ctx context.Context, isOccurrenceSpec *model.IsOccurrenceSpec) ([]*model.IsOccurrence, error) IsVulnerability(ctx context.Context, isVulnerabilitySpec *model.IsVulnerabilitySpec) ([]*model.IsVulnerability, error) Osv(ctx context.Context, osvSpec *model.OSVSpec) ([]*model.Osv, error) Packages(ctx context.Context, pkgSpec *model.PkgSpec) ([]*model.Package, error) Path(ctx context.Context, subject string, target string, maxPathLength int, usingOnly []model.Edge) ([]model.Node, error) Neighbors(ctx context.Context, node string, usingOnly []model.Edge) ([]model.Node, error) Node(ctx context.Context, node string) (model.Node, error) Nodes(ctx context.Context, nodes []string) ([]model.Node, error) PkgEqual(ctx context.Context, pkgEqualSpec *model.PkgEqualSpec) ([]*model.PkgEqual, error) Sources(ctx context.Context, sourceSpec *model.SourceSpec) ([]*model.Source, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Source Files ¶
- artifact.generated.go
- builder.generated.go
- certifyBad.generated.go
- certifyGood.generated.go
- certifyScorecard.generated.go
- certifyVEXStatement.generated.go
- certifyVuln.generated.go
- cve.generated.go
- ghsa.generated.go
- hasSBOM.generated.go
- hasSLSA.generated.go
- hasSourceAt.generated.go
- hashEqual.generated.go
- isDependency.generated.go
- isOccurrence.generated.go
- isVulnerability.generated.go
- osv.generated.go
- package.generated.go
- path.generated.go
- pkgEqual.generated.go
- prelude.generated.go
- root_.generated.go
- source.generated.go
Click to show internal directories.
Click to hide internal directories.