Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBackend
- func (m *MockBackend) Artifacts(ctx context.Context, artifactSpec *model.ArtifactSpec) ([]*model.Artifact, error)
- func (m *MockBackend) ArtifactsList(ctx context.Context, artifactSpec model.ArtifactSpec, after *string, ...) (*model.ArtifactConnection, error)
- func (m *MockBackend) Builders(ctx context.Context, builderSpec *model.BuilderSpec) ([]*model.Builder, error)
- func (m *MockBackend) BuildersList(ctx context.Context, builderSpec model.BuilderSpec, after *string, first *int) (*model.BuilderConnection, error)
- func (m *MockBackend) CertifyBad(ctx context.Context, certifyBadSpec *model.CertifyBadSpec) ([]*model.CertifyBad, error)
- func (m *MockBackend) CertifyBadList(ctx context.Context, certifyBadSpec model.CertifyBadSpec, after *string, ...) (*model.CertifyBadConnection, error)
- func (m *MockBackend) CertifyGood(ctx context.Context, certifyGoodSpec *model.CertifyGoodSpec) ([]*model.CertifyGood, error)
- func (m *MockBackend) CertifyGoodList(ctx context.Context, certifyGoodSpec model.CertifyGoodSpec, after *string, ...) (*model.CertifyGoodConnection, error)
- func (m *MockBackend) CertifyLegal(ctx context.Context, certifyLegalSpec *model.CertifyLegalSpec) ([]*model.CertifyLegal, error)
- func (m *MockBackend) CertifyLegalList(ctx context.Context, certifyLegalSpec model.CertifyLegalSpec, after *string, ...) (*model.CertifyLegalConnection, error)
- func (m *MockBackend) CertifyVEXStatement(ctx context.Context, certifyVEXStatementSpec *model.CertifyVEXStatementSpec) ([]*model.CertifyVEXStatement, error)
- func (m *MockBackend) CertifyVEXStatementList(ctx context.Context, certifyVEXStatementSpec model.CertifyVEXStatementSpec, ...) (*model.VEXConnection, error)
- func (m *MockBackend) CertifyVuln(ctx context.Context, certifyVulnSpec *model.CertifyVulnSpec) ([]*model.CertifyVuln, error)
- func (m *MockBackend) CertifyVulnList(ctx context.Context, certifyVulnSpec model.CertifyVulnSpec, after *string, ...) (*model.CertifyVulnConnection, error)
- func (m *MockBackend) EXPECT() *MockBackendMockRecorder
- func (m *MockBackend) FindSoftware(ctx context.Context, searchText string) ([]model.PackageSourceOrArtifact, error)
- func (m *MockBackend) FindSoftwareList(ctx context.Context, searchText string, after *string, first *int) (*model.FindSoftwareConnection, error)
- func (m *MockBackend) HasMetadata(ctx context.Context, hasMetadataSpec *model.HasMetadataSpec) ([]*model.HasMetadata, error)
- func (m *MockBackend) HasMetadataList(ctx context.Context, hasMetadataSpec model.HasMetadataSpec, after *string, ...) (*model.HasMetadataConnection, error)
- func (m *MockBackend) HasSBOM(ctx context.Context, hasSBOMSpec *model.HasSBOMSpec) ([]*model.HasSbom, error)
- func (m *MockBackend) HasSBOMList(ctx context.Context, hasSBOMSpec model.HasSBOMSpec, after *string, first *int) (*model.HasSBOMConnection, error)
- func (m *MockBackend) HasSLSAList(ctx context.Context, hasSLSASpec model.HasSLSASpec, after *string, first *int) (*model.HasSLSAConnection, error)
- func (m *MockBackend) HasSlsa(ctx context.Context, hasSLSASpec *model.HasSLSASpec) ([]*model.HasSlsa, error)
- func (m *MockBackend) HasSourceAt(ctx context.Context, hasSourceAtSpec *model.HasSourceAtSpec) ([]*model.HasSourceAt, error)
- func (m *MockBackend) HasSourceAtList(ctx context.Context, hasSourceAtSpec model.HasSourceAtSpec, after *string, ...) (*model.HasSourceAtConnection, error)
- func (m *MockBackend) HashEqual(ctx context.Context, hashEqualSpec *model.HashEqualSpec) ([]*model.HashEqual, error)
- func (m *MockBackend) HashEqualList(ctx context.Context, hashEqualSpec model.HashEqualSpec, after *string, ...) (*model.HashEqualConnection, error)
- func (m *MockBackend) IngestArtifact(ctx context.Context, artifact *model.IDorArtifactInput) (string, error)
- func (m *MockBackend) IngestArtifacts(ctx context.Context, artifacts []*model.IDorArtifactInput) ([]string, error)
- func (m *MockBackend) IngestBuilder(ctx context.Context, builder *model.IDorBuilderInput) (string, error)
- func (m *MockBackend) IngestBuilders(ctx context.Context, builders []*model.IDorBuilderInput) ([]string, error)
- func (m *MockBackend) IngestBulkHasMetadata(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, ...) ([]string, error)
- func (m *MockBackend) IngestBulkVulnerabilityMetadata(ctx context.Context, vulnerabilities []*model.IDorVulnerabilityInput, ...) ([]string, error)
- func (m *MockBackend) IngestCertifyBad(ctx context.Context, subject model.PackageSourceOrArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestCertifyBads(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, ...) ([]string, error)
- func (m *MockBackend) IngestCertifyGood(ctx context.Context, subject model.PackageSourceOrArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestCertifyGoods(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, ...) ([]string, error)
- func (m *MockBackend) IngestCertifyLegal(ctx context.Context, subject model.PackageOrSourceInput, ...) (string, error)
- func (m *MockBackend) IngestCertifyLegals(ctx context.Context, subjects model.PackageOrSourceInputs, ...) ([]string, error)
- func (m *MockBackend) IngestCertifyVuln(ctx context.Context, pkg model.IDorPkgInput, ...) (string, error)
- func (m *MockBackend) IngestCertifyVulns(ctx context.Context, pkgs []*model.IDorPkgInput, ...) ([]string, error)
- func (m *MockBackend) IngestDependencies(ctx context.Context, pkgs, depPkgs []*model.IDorPkgInput, ...) ([]string, error)
- func (m *MockBackend) IngestDependency(ctx context.Context, pkg, depPkg model.IDorPkgInput, ...) (string, error)
- func (m *MockBackend) IngestHasMetadata(ctx context.Context, subject model.PackageSourceOrArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestHasSBOMs(ctx context.Context, subjects model.PackageOrArtifactInputs, ...) ([]string, error)
- func (m *MockBackend) IngestHasSbom(ctx context.Context, subject model.PackageOrArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestHasSourceAt(ctx context.Context, pkg model.IDorPkgInput, pkgMatchType model.MatchFlags, ...) (string, error)
- func (m *MockBackend) IngestHasSourceAts(ctx context.Context, pkgs []*model.IDorPkgInput, ...) ([]string, error)
- func (m *MockBackend) IngestHashEqual(ctx context.Context, artifact, equalArtifact model.IDorArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestHashEquals(ctx context.Context, artifacts, otherArtifacts []*model.IDorArtifactInput, ...) ([]string, error)
- func (m *MockBackend) IngestLicense(ctx context.Context, license *model.IDorLicenseInput) (string, error)
- func (m *MockBackend) IngestLicenses(ctx context.Context, licenses []*model.IDorLicenseInput) ([]string, error)
- func (m *MockBackend) IngestOccurrence(ctx context.Context, subject model.PackageOrSourceInput, ...) (string, error)
- func (m *MockBackend) IngestOccurrences(ctx context.Context, subjects model.PackageOrSourceInputs, ...) ([]string, error)
- func (m *MockBackend) IngestPackage(ctx context.Context, pkg model.IDorPkgInput) (*model.PackageIDs, error)
- func (m *MockBackend) IngestPackages(ctx context.Context, pkgs []*model.IDorPkgInput) ([]*model.PackageIDs, error)
- func (m *MockBackend) IngestPkgEqual(ctx context.Context, pkg, depPkg model.IDorPkgInput, ...) (string, error)
- func (m *MockBackend) IngestPkgEquals(ctx context.Context, pkgs, otherPackages []*model.IDorPkgInput, ...) ([]string, error)
- func (m *MockBackend) IngestPointOfContact(ctx context.Context, subject model.PackageSourceOrArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestPointOfContacts(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, ...) ([]string, error)
- func (m *MockBackend) IngestSLSA(ctx context.Context, subject model.IDorArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestSLSAs(ctx context.Context, subjects []*model.IDorArtifactInput, ...) ([]string, error)
- func (m *MockBackend) IngestScorecard(ctx context.Context, source model.IDorSourceInput, ...) (string, error)
- func (m *MockBackend) IngestScorecards(ctx context.Context, sources []*model.IDorSourceInput, ...) ([]string, error)
- func (m *MockBackend) IngestSource(ctx context.Context, source model.IDorSourceInput) (*model.SourceIDs, error)
- func (m *MockBackend) IngestSources(ctx context.Context, sources []*model.IDorSourceInput) ([]*model.SourceIDs, error)
- func (m *MockBackend) IngestVEXStatement(ctx context.Context, subject model.PackageOrArtifactInput, ...) (string, error)
- func (m *MockBackend) IngestVEXStatements(ctx context.Context, subjects model.PackageOrArtifactInputs, ...) ([]string, error)
- func (m *MockBackend) IngestVulnEqual(ctx context.Context, ...) (string, error)
- func (m *MockBackend) IngestVulnEquals(ctx context.Context, ...) ([]string, error)
- func (m *MockBackend) IngestVulnerabilities(ctx context.Context, vulns []*model.IDorVulnerabilityInput) ([]*model.VulnerabilityIDs, error)
- func (m *MockBackend) IngestVulnerability(ctx context.Context, vuln model.IDorVulnerabilityInput) (*model.VulnerabilityIDs, error)
- func (m *MockBackend) IngestVulnerabilityMetadata(ctx context.Context, vulnerability model.IDorVulnerabilityInput, ...) (string, error)
- func (m *MockBackend) IsDependency(ctx context.Context, isDependencySpec *model.IsDependencySpec) ([]*model.IsDependency, error)
- func (m *MockBackend) IsDependencyList(ctx context.Context, isDependencySpec model.IsDependencySpec, after *string, ...) (*model.IsDependencyConnection, error)
- func (m *MockBackend) IsOccurrence(ctx context.Context, isOccurrenceSpec *model.IsOccurrenceSpec) ([]*model.IsOccurrence, error)
- func (m *MockBackend) IsOccurrenceList(ctx context.Context, isOccurrenceSpec model.IsOccurrenceSpec, after *string, ...) (*model.IsOccurrenceConnection, error)
- func (m *MockBackend) LicenseList(ctx context.Context, licenseSpec model.LicenseSpec, after *string, first *int) (*model.LicenseConnection, error)
- func (m *MockBackend) Licenses(ctx context.Context, licenseSpec *model.LicenseSpec) ([]*model.License, error)
- func (m *MockBackend) Neighbors(ctx context.Context, node string, usingOnly []model.Edge) ([]model.Node, error)
- func (m *MockBackend) NeighborsList(ctx context.Context, node string, usingOnly []model.Edge, after *string, ...) (*model.NeighborConnection, error)
- func (m *MockBackend) Node(ctx context.Context, node string) (model.Node, error)
- func (m *MockBackend) Nodes(ctx context.Context, nodes []string) ([]model.Node, error)
- func (m *MockBackend) Packages(ctx context.Context, pkgSpec *model.PkgSpec) ([]*model.Package, error)
- func (m *MockBackend) PackagesList(ctx context.Context, pkgSpec model.PkgSpec, after *string, first *int) (*model.PackageConnection, error)
- func (m *MockBackend) Path(ctx context.Context, subject, target string, maxPathLength int, ...) ([]model.Node, error)
- func (m *MockBackend) PkgEqual(ctx context.Context, pkgEqualSpec *model.PkgEqualSpec) ([]*model.PkgEqual, error)
- func (m *MockBackend) PkgEqualList(ctx context.Context, pkgEqualSpec model.PkgEqualSpec, after *string, ...) (*model.PkgEqualConnection, error)
- func (m *MockBackend) PointOfContact(ctx context.Context, pointOfContactSpec *model.PointOfContactSpec) ([]*model.PointOfContact, error)
- func (m *MockBackend) PointOfContactList(ctx context.Context, pointOfContactSpec model.PointOfContactSpec, ...) (*model.PointOfContactConnection, error)
- func (m *MockBackend) Scorecards(ctx context.Context, certifyScorecardSpec *model.CertifyScorecardSpec) ([]*model.CertifyScorecard, error)
- func (m *MockBackend) ScorecardsList(ctx context.Context, scorecardSpec model.CertifyScorecardSpec, after *string, ...) (*model.CertifyScorecardConnection, error)
- func (m *MockBackend) Sources(ctx context.Context, sourceSpec *model.SourceSpec) ([]*model.Source, error)
- func (m *MockBackend) SourcesList(ctx context.Context, sourceSpec model.SourceSpec, after *string, first *int) (*model.SourceConnection, error)
- func (m *MockBackend) VulnEqual(ctx context.Context, vulnEqualSpec *model.VulnEqualSpec) ([]*model.VulnEqual, error)
- func (m *MockBackend) VulnEqualList(ctx context.Context, vulnEqualSpec model.VulnEqualSpec, after *string, ...) (*model.VulnEqualConnection, error)
- func (m *MockBackend) Vulnerabilities(ctx context.Context, vulnSpec *model.VulnerabilitySpec) ([]*model.Vulnerability, error)
- func (m *MockBackend) VulnerabilityList(ctx context.Context, vulnSpec model.VulnerabilitySpec, after *string, ...) (*model.VulnerabilityConnection, error)
- func (m *MockBackend) VulnerabilityMetadata(ctx context.Context, ...) ([]*model.VulnerabilityMetadata, error)
- func (m *MockBackend) VulnerabilityMetadataList(ctx context.Context, vulnerabilityMetadataSpec model.VulnerabilityMetadataSpec, ...) (*model.VulnerabilityMetadataConnection, error)
- type MockBackendArgs
- type MockBackendArgsMockRecorder
- type MockBackendMockRecorder
- func (mr *MockBackendMockRecorder) Artifacts(ctx, artifactSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) ArtifactsList(ctx, artifactSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) Builders(ctx, builderSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) BuildersList(ctx, builderSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyBad(ctx, certifyBadSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyBadList(ctx, certifyBadSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyGood(ctx, certifyGoodSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyGoodList(ctx, certifyGoodSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyLegal(ctx, certifyLegalSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyLegalList(ctx, certifyLegalSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyVEXStatement(ctx, certifyVEXStatementSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyVEXStatementList(ctx, certifyVEXStatementSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyVuln(ctx, certifyVulnSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) CertifyVulnList(ctx, certifyVulnSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) FindSoftware(ctx, searchText any) *gomock.Call
- func (mr *MockBackendMockRecorder) FindSoftwareList(ctx, searchText, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasMetadata(ctx, hasMetadataSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasMetadataList(ctx, hasMetadataSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasSBOM(ctx, hasSBOMSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasSBOMList(ctx, hasSBOMSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasSLSAList(ctx, hasSLSASpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasSlsa(ctx, hasSLSASpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasSourceAt(ctx, hasSourceAtSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) HasSourceAtList(ctx, hasSourceAtSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) HashEqual(ctx, hashEqualSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) HashEqualList(ctx, hashEqualSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestArtifact(ctx, artifact any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestArtifacts(ctx, artifacts any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestBuilder(ctx, builder any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestBuilders(ctx, builders any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestBulkHasMetadata(ctx, subjects, pkgMatchType, hasMetadataList any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestBulkVulnerabilityMetadata(ctx, vulnerabilities, vulnerabilityMetadataList any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyBad(ctx, subject, pkgMatchType, certifyBad any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyBads(ctx, subjects, pkgMatchType, certifyBads any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyGood(ctx, subject, pkgMatchType, certifyGood any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyGoods(ctx, subjects, pkgMatchType, certifyGoods any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyLegal(ctx, subject, declaredLicenses, discoveredLicenses, certifyLegal any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyLegals(ctx, subjects, declaredLicensesList, discoveredLicensesList, certifyLegals any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyVuln(ctx, pkg, vulnerability, certifyVuln any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestCertifyVulns(ctx, pkgs, vulnerabilities, certifyVulns any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestDependencies(ctx, pkgs, depPkgs, depPkgMatchType, dependencies any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestDependency(ctx, pkg, depPkg, depPkgMatchType, dependency any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestHasMetadata(ctx, subject, pkgMatchType, hasMetadata any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestHasSBOMs(ctx, subjects, hasSBOMs, includes any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestHasSbom(ctx, subject, hasSbom, includes any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestHasSourceAt(ctx, pkg, pkgMatchType, source, hasSourceAt any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestHasSourceAts(ctx, pkgs, pkgMatchType, sources, hasSourceAts any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestHashEqual(ctx, artifact, equalArtifact, hashEqual any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestHashEquals(ctx, artifacts, otherArtifacts, hashEquals any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestLicense(ctx, license any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestLicenses(ctx, licenses any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestOccurrence(ctx, subject, artifact, occurrence any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestOccurrences(ctx, subjects, artifacts, occurrences any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestPackage(ctx, pkg any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestPackages(ctx, pkgs any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestPkgEqual(ctx, pkg, depPkg, pkgEqual any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestPkgEquals(ctx, pkgs, otherPackages, pkgEquals any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestPointOfContact(ctx, subject, pkgMatchType, pointOfContact any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestPointOfContacts(ctx, subjects, pkgMatchType, pointOfContacts any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestSLSA(ctx, subject, builtFrom, builtBy, slsa any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestSLSAs(ctx, subjects, builtFromList, builtByList, slsaList any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestScorecard(ctx, source, scorecard any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestScorecards(ctx, sources, scorecards any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestSource(ctx, source any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestSources(ctx, sources any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestVEXStatement(ctx, subject, vulnerability, vexStatement any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestVEXStatements(ctx, subjects, vulnerabilities, vexStatements any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestVulnEqual(ctx, vulnerability, otherVulnerability, vulnEqual any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestVulnEquals(ctx, vulnerabilities, otherVulnerabilities, vulnEquals any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestVulnerabilities(ctx, vulns any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestVulnerability(ctx, vuln any) *gomock.Call
- func (mr *MockBackendMockRecorder) IngestVulnerabilityMetadata(ctx, vulnerability, vulnerabilityMetadata any) *gomock.Call
- func (mr *MockBackendMockRecorder) IsDependency(ctx, isDependencySpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) IsDependencyList(ctx, isDependencySpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) IsOccurrence(ctx, isOccurrenceSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) IsOccurrenceList(ctx, isOccurrenceSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) LicenseList(ctx, licenseSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) Licenses(ctx, licenseSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) Neighbors(ctx, node, usingOnly any) *gomock.Call
- func (mr *MockBackendMockRecorder) NeighborsList(ctx, node, usingOnly, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) Node(ctx, node any) *gomock.Call
- func (mr *MockBackendMockRecorder) Nodes(ctx, nodes any) *gomock.Call
- func (mr *MockBackendMockRecorder) Packages(ctx, pkgSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) PackagesList(ctx, pkgSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) Path(ctx, subject, target, maxPathLength, usingOnly any) *gomock.Call
- func (mr *MockBackendMockRecorder) PkgEqual(ctx, pkgEqualSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) PkgEqualList(ctx, pkgEqualSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) PointOfContact(ctx, pointOfContactSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) PointOfContactList(ctx, pointOfContactSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) Scorecards(ctx, certifyScorecardSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) ScorecardsList(ctx, scorecardSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) Sources(ctx, sourceSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) SourcesList(ctx, sourceSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) VulnEqual(ctx, vulnEqualSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) VulnEqualList(ctx, vulnEqualSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) Vulnerabilities(ctx, vulnSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) VulnerabilityList(ctx, vulnSpec, after, first any) *gomock.Call
- func (mr *MockBackendMockRecorder) VulnerabilityMetadata(ctx, vulnerabilityMetadataSpec any) *gomock.Call
- func (mr *MockBackendMockRecorder) VulnerabilityMetadataList(ctx, vulnerabilityMetadataSpec, after, first any) *gomock.Call
- type MockDocumentParser
- func (m *MockDocumentParser) EXPECT() *MockDocumentParserMockRecorder
- func (m *MockDocumentParser) GetIdentifiers(ctx context.Context) (*common.IdentifierStrings, error)
- func (m *MockDocumentParser) GetIdentities(ctx context.Context) []common.TrustInformation
- func (m *MockDocumentParser) GetPredicates(ctx context.Context) *assembler.IngestPredicates
- func (m *MockDocumentParser) Parse(ctx context.Context, doc *processor.Document) error
- type MockDocumentParserMockRecorder
- func (mr *MockDocumentParserMockRecorder) GetIdentifiers(ctx any) *gomock.Call
- func (mr *MockDocumentParserMockRecorder) GetIdentities(ctx any) *gomock.Call
- func (mr *MockDocumentParserMockRecorder) GetPredicates(ctx any) *gomock.Call
- func (mr *MockDocumentParserMockRecorder) Parse(ctx, doc any) *gomock.Call
- type MockResolver
- type MockScorecard
- type MockScorecardMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶ added in v0.2.0
type MockBackend struct {
// contains filtered or unexported fields
}
MockBackend is a mock of Backend interface.
func NewMockBackend ¶ added in v0.2.0
func NewMockBackend(ctrl *gomock.Controller) *MockBackend
NewMockBackend creates a new mock instance.
func (*MockBackend) Artifacts ¶ added in v0.2.0
func (m *MockBackend) Artifacts(ctx context.Context, artifactSpec *model.ArtifactSpec) ([]*model.Artifact, error)
Artifacts mocks base method.
func (*MockBackend) ArtifactsList ¶ added in v0.6.0
func (m *MockBackend) ArtifactsList(ctx context.Context, artifactSpec model.ArtifactSpec, after *string, first *int) (*model.ArtifactConnection, error)
ArtifactsList mocks base method.
func (*MockBackend) Builders ¶ added in v0.2.0
func (m *MockBackend) Builders(ctx context.Context, builderSpec *model.BuilderSpec) ([]*model.Builder, error)
Builders mocks base method.
func (*MockBackend) BuildersList ¶ added in v0.6.0
func (m *MockBackend) BuildersList(ctx context.Context, builderSpec model.BuilderSpec, after *string, first *int) (*model.BuilderConnection, error)
BuildersList mocks base method.
func (*MockBackend) CertifyBad ¶ added in v0.2.0
func (m *MockBackend) CertifyBad(ctx context.Context, certifyBadSpec *model.CertifyBadSpec) ([]*model.CertifyBad, error)
CertifyBad mocks base method.
func (*MockBackend) CertifyBadList ¶ added in v0.6.0
func (m *MockBackend) CertifyBadList(ctx context.Context, certifyBadSpec model.CertifyBadSpec, after *string, first *int) (*model.CertifyBadConnection, error)
CertifyBadList mocks base method.
func (*MockBackend) CertifyGood ¶ added in v0.2.0
func (m *MockBackend) CertifyGood(ctx context.Context, certifyGoodSpec *model.CertifyGoodSpec) ([]*model.CertifyGood, error)
CertifyGood mocks base method.
func (*MockBackend) CertifyGoodList ¶ added in v0.6.0
func (m *MockBackend) CertifyGoodList(ctx context.Context, certifyGoodSpec model.CertifyGoodSpec, after *string, first *int) (*model.CertifyGoodConnection, error)
CertifyGoodList mocks base method.
func (*MockBackend) CertifyLegal ¶ added in v0.2.0
func (m *MockBackend) CertifyLegal(ctx context.Context, certifyLegalSpec *model.CertifyLegalSpec) ([]*model.CertifyLegal, error)
CertifyLegal mocks base method.
func (*MockBackend) CertifyLegalList ¶ added in v0.6.0
func (m *MockBackend) CertifyLegalList(ctx context.Context, certifyLegalSpec model.CertifyLegalSpec, after *string, first *int) (*model.CertifyLegalConnection, error)
CertifyLegalList mocks base method.
func (*MockBackend) CertifyVEXStatement ¶ added in v0.2.0
func (m *MockBackend) CertifyVEXStatement(ctx context.Context, certifyVEXStatementSpec *model.CertifyVEXStatementSpec) ([]*model.CertifyVEXStatement, error)
CertifyVEXStatement mocks base method.
func (*MockBackend) CertifyVEXStatementList ¶ added in v0.6.0
func (m *MockBackend) CertifyVEXStatementList(ctx context.Context, certifyVEXStatementSpec model.CertifyVEXStatementSpec, after *string, first *int) (*model.VEXConnection, error)
CertifyVEXStatementList mocks base method.
func (*MockBackend) CertifyVuln ¶ added in v0.2.0
func (m *MockBackend) CertifyVuln(ctx context.Context, certifyVulnSpec *model.CertifyVulnSpec) ([]*model.CertifyVuln, error)
CertifyVuln mocks base method.
func (*MockBackend) CertifyVulnList ¶ added in v0.6.0
func (m *MockBackend) CertifyVulnList(ctx context.Context, certifyVulnSpec model.CertifyVulnSpec, after *string, first *int) (*model.CertifyVulnConnection, error)
CertifyVulnList mocks base method.
func (*MockBackend) EXPECT ¶ added in v0.2.0
func (m *MockBackend) EXPECT() *MockBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackend) FindSoftware ¶ added in v0.2.0
func (m *MockBackend) FindSoftware(ctx context.Context, searchText string) ([]model.PackageSourceOrArtifact, error)
FindSoftware mocks base method.
func (*MockBackend) FindSoftwareList ¶ added in v0.6.0
func (m *MockBackend) FindSoftwareList(ctx context.Context, searchText string, after *string, first *int) (*model.FindSoftwareConnection, error)
FindSoftwareList mocks base method.
func (*MockBackend) HasMetadata ¶ added in v0.2.0
func (m *MockBackend) HasMetadata(ctx context.Context, hasMetadataSpec *model.HasMetadataSpec) ([]*model.HasMetadata, error)
HasMetadata mocks base method.
func (*MockBackend) HasMetadataList ¶ added in v0.6.0
func (m *MockBackend) HasMetadataList(ctx context.Context, hasMetadataSpec model.HasMetadataSpec, after *string, first *int) (*model.HasMetadataConnection, error)
HasMetadataList mocks base method.
func (*MockBackend) HasSBOM ¶ added in v0.2.0
func (m *MockBackend) HasSBOM(ctx context.Context, hasSBOMSpec *model.HasSBOMSpec) ([]*model.HasSbom, error)
HasSBOM mocks base method.
func (*MockBackend) HasSBOMList ¶ added in v0.6.0
func (m *MockBackend) HasSBOMList(ctx context.Context, hasSBOMSpec model.HasSBOMSpec, after *string, first *int) (*model.HasSBOMConnection, error)
HasSBOMList mocks base method.
func (*MockBackend) HasSLSAList ¶ added in v0.6.0
func (m *MockBackend) HasSLSAList(ctx context.Context, hasSLSASpec model.HasSLSASpec, after *string, first *int) (*model.HasSLSAConnection, error)
HasSLSAList mocks base method.
func (*MockBackend) HasSlsa ¶ added in v0.2.0
func (m *MockBackend) HasSlsa(ctx context.Context, hasSLSASpec *model.HasSLSASpec) ([]*model.HasSlsa, error)
HasSlsa mocks base method.
func (*MockBackend) HasSourceAt ¶ added in v0.2.0
func (m *MockBackend) HasSourceAt(ctx context.Context, hasSourceAtSpec *model.HasSourceAtSpec) ([]*model.HasSourceAt, error)
HasSourceAt mocks base method.
func (*MockBackend) HasSourceAtList ¶ added in v0.6.0
func (m *MockBackend) HasSourceAtList(ctx context.Context, hasSourceAtSpec model.HasSourceAtSpec, after *string, first *int) (*model.HasSourceAtConnection, error)
HasSourceAtList mocks base method.
func (*MockBackend) HashEqual ¶ added in v0.2.0
func (m *MockBackend) HashEqual(ctx context.Context, hashEqualSpec *model.HashEqualSpec) ([]*model.HashEqual, error)
HashEqual mocks base method.
func (*MockBackend) HashEqualList ¶ added in v0.6.0
func (m *MockBackend) HashEqualList(ctx context.Context, hashEqualSpec model.HashEqualSpec, after *string, first *int) (*model.HashEqualConnection, error)
HashEqualList mocks base method.
func (*MockBackend) IngestArtifact ¶ added in v0.2.0
func (m *MockBackend) IngestArtifact(ctx context.Context, artifact *model.IDorArtifactInput) (string, error)
IngestArtifact mocks base method.
func (*MockBackend) IngestArtifacts ¶ added in v0.2.0
func (m *MockBackend) IngestArtifacts(ctx context.Context, artifacts []*model.IDorArtifactInput) ([]string, error)
IngestArtifacts mocks base method.
func (*MockBackend) IngestBuilder ¶ added in v0.2.0
func (m *MockBackend) IngestBuilder(ctx context.Context, builder *model.IDorBuilderInput) (string, error)
IngestBuilder mocks base method.
func (*MockBackend) IngestBuilders ¶ added in v0.2.0
func (m *MockBackend) IngestBuilders(ctx context.Context, builders []*model.IDorBuilderInput) ([]string, error)
IngestBuilders mocks base method.
func (*MockBackend) IngestBulkHasMetadata ¶ added in v0.2.0
func (m *MockBackend) IngestBulkHasMetadata(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, pkgMatchType *model.MatchFlags, hasMetadataList []*model.HasMetadataInputSpec) ([]string, error)
IngestBulkHasMetadata mocks base method.
func (*MockBackend) IngestBulkVulnerabilityMetadata ¶ added in v0.2.0
func (m *MockBackend) IngestBulkVulnerabilityMetadata(ctx context.Context, vulnerabilities []*model.IDorVulnerabilityInput, vulnerabilityMetadataList []*model.VulnerabilityMetadataInputSpec) ([]string, error)
IngestBulkVulnerabilityMetadata mocks base method.
func (*MockBackend) IngestCertifyBad ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyBad(ctx context.Context, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, certifyBad model.CertifyBadInputSpec) (string, error)
IngestCertifyBad mocks base method.
func (*MockBackend) IngestCertifyBads ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyBads(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, pkgMatchType *model.MatchFlags, certifyBads []*model.CertifyBadInputSpec) ([]string, error)
IngestCertifyBads mocks base method.
func (*MockBackend) IngestCertifyGood ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyGood(ctx context.Context, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, certifyGood model.CertifyGoodInputSpec) (string, error)
IngestCertifyGood mocks base method.
func (*MockBackend) IngestCertifyGoods ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyGoods(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, pkgMatchType *model.MatchFlags, certifyGoods []*model.CertifyGoodInputSpec) ([]string, error)
IngestCertifyGoods mocks base method.
func (*MockBackend) IngestCertifyLegal ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyLegal(ctx context.Context, subject model.PackageOrSourceInput, declaredLicenses, discoveredLicenses []*model.IDorLicenseInput, certifyLegal *model.CertifyLegalInputSpec) (string, error)
IngestCertifyLegal mocks base method.
func (*MockBackend) IngestCertifyLegals ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyLegals(ctx context.Context, subjects model.PackageOrSourceInputs, declaredLicensesList, discoveredLicensesList [][]*model.IDorLicenseInput, certifyLegals []*model.CertifyLegalInputSpec) ([]string, error)
IngestCertifyLegals mocks base method.
func (*MockBackend) IngestCertifyVuln ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyVuln(ctx context.Context, pkg model.IDorPkgInput, vulnerability model.IDorVulnerabilityInput, certifyVuln model.ScanMetadataInput) (string, error)
IngestCertifyVuln mocks base method.
func (*MockBackend) IngestCertifyVulns ¶ added in v0.2.0
func (m *MockBackend) IngestCertifyVulns(ctx context.Context, pkgs []*model.IDorPkgInput, vulnerabilities []*model.IDorVulnerabilityInput, certifyVulns []*model.ScanMetadataInput) ([]string, error)
IngestCertifyVulns mocks base method.
func (*MockBackend) IngestDependencies ¶ added in v0.2.0
func (m *MockBackend) IngestDependencies(ctx context.Context, pkgs, depPkgs []*model.IDorPkgInput, depPkgMatchType model.MatchFlags, dependencies []*model.IsDependencyInputSpec) ([]string, error)
IngestDependencies mocks base method.
func (*MockBackend) IngestDependency ¶ added in v0.2.0
func (m *MockBackend) IngestDependency(ctx context.Context, pkg, depPkg model.IDorPkgInput, depPkgMatchType model.MatchFlags, dependency model.IsDependencyInputSpec) (string, error)
IngestDependency mocks base method.
func (*MockBackend) IngestHasMetadata ¶ added in v0.2.0
func (m *MockBackend) IngestHasMetadata(ctx context.Context, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, hasMetadata model.HasMetadataInputSpec) (string, error)
IngestHasMetadata mocks base method.
func (*MockBackend) IngestHasSBOMs ¶ added in v0.2.0
func (m *MockBackend) IngestHasSBOMs(ctx context.Context, subjects model.PackageOrArtifactInputs, hasSBOMs []*model.HasSBOMInputSpec, includes []*model.HasSBOMIncludesInputSpec) ([]string, error)
IngestHasSBOMs mocks base method.
func (*MockBackend) IngestHasSbom ¶ added in v0.2.0
func (m *MockBackend) IngestHasSbom(ctx context.Context, subject model.PackageOrArtifactInput, hasSbom model.HasSBOMInputSpec, includes model.HasSBOMIncludesInputSpec) (string, error)
IngestHasSbom mocks base method.
func (*MockBackend) IngestHasSourceAt ¶ added in v0.2.0
func (m *MockBackend) IngestHasSourceAt(ctx context.Context, pkg model.IDorPkgInput, pkgMatchType model.MatchFlags, source model.IDorSourceInput, hasSourceAt model.HasSourceAtInputSpec) (string, error)
IngestHasSourceAt mocks base method.
func (*MockBackend) IngestHasSourceAts ¶ added in v0.2.0
func (m *MockBackend) IngestHasSourceAts(ctx context.Context, pkgs []*model.IDorPkgInput, pkgMatchType *model.MatchFlags, sources []*model.IDorSourceInput, hasSourceAts []*model.HasSourceAtInputSpec) ([]string, error)
IngestHasSourceAts mocks base method.
func (*MockBackend) IngestHashEqual ¶ added in v0.2.0
func (m *MockBackend) IngestHashEqual(ctx context.Context, artifact, equalArtifact model.IDorArtifactInput, hashEqual model.HashEqualInputSpec) (string, error)
IngestHashEqual mocks base method.
func (*MockBackend) IngestHashEquals ¶ added in v0.2.0
func (m *MockBackend) IngestHashEquals(ctx context.Context, artifacts, otherArtifacts []*model.IDorArtifactInput, hashEquals []*model.HashEqualInputSpec) ([]string, error)
IngestHashEquals mocks base method.
func (*MockBackend) IngestLicense ¶ added in v0.2.0
func (m *MockBackend) IngestLicense(ctx context.Context, license *model.IDorLicenseInput) (string, error)
IngestLicense mocks base method.
func (*MockBackend) IngestLicenses ¶ added in v0.2.0
func (m *MockBackend) IngestLicenses(ctx context.Context, licenses []*model.IDorLicenseInput) ([]string, error)
IngestLicenses mocks base method.
func (*MockBackend) IngestOccurrence ¶ added in v0.2.0
func (m *MockBackend) IngestOccurrence(ctx context.Context, subject model.PackageOrSourceInput, artifact model.IDorArtifactInput, occurrence model.IsOccurrenceInputSpec) (string, error)
IngestOccurrence mocks base method.
func (*MockBackend) IngestOccurrences ¶ added in v0.2.0
func (m *MockBackend) IngestOccurrences(ctx context.Context, subjects model.PackageOrSourceInputs, artifacts []*model.IDorArtifactInput, occurrences []*model.IsOccurrenceInputSpec) ([]string, error)
IngestOccurrences mocks base method.
func (*MockBackend) IngestPackage ¶ added in v0.2.0
func (m *MockBackend) IngestPackage(ctx context.Context, pkg model.IDorPkgInput) (*model.PackageIDs, error)
IngestPackage mocks base method.
func (*MockBackend) IngestPackages ¶ added in v0.2.0
func (m *MockBackend) IngestPackages(ctx context.Context, pkgs []*model.IDorPkgInput) ([]*model.PackageIDs, error)
IngestPackages mocks base method.
func (*MockBackend) IngestPkgEqual ¶ added in v0.2.0
func (m *MockBackend) IngestPkgEqual(ctx context.Context, pkg, depPkg model.IDorPkgInput, pkgEqual model.PkgEqualInputSpec) (string, error)
IngestPkgEqual mocks base method.
func (*MockBackend) IngestPkgEquals ¶ added in v0.2.0
func (m *MockBackend) IngestPkgEquals(ctx context.Context, pkgs, otherPackages []*model.IDorPkgInput, pkgEquals []*model.PkgEqualInputSpec) ([]string, error)
IngestPkgEquals mocks base method.
func (*MockBackend) IngestPointOfContact ¶ added in v0.2.0
func (m *MockBackend) IngestPointOfContact(ctx context.Context, subject model.PackageSourceOrArtifactInput, pkgMatchType *model.MatchFlags, pointOfContact model.PointOfContactInputSpec) (string, error)
IngestPointOfContact mocks base method.
func (*MockBackend) IngestPointOfContacts ¶ added in v0.2.0
func (m *MockBackend) IngestPointOfContacts(ctx context.Context, subjects model.PackageSourceOrArtifactInputs, pkgMatchType *model.MatchFlags, pointOfContacts []*model.PointOfContactInputSpec) ([]string, error)
IngestPointOfContacts mocks base method.
func (*MockBackend) IngestSLSA ¶ added in v0.2.0
func (m *MockBackend) IngestSLSA(ctx context.Context, subject model.IDorArtifactInput, builtFrom []*model.IDorArtifactInput, builtBy model.IDorBuilderInput, slsa model.SLSAInputSpec) (string, error)
IngestSLSA mocks base method.
func (*MockBackend) IngestSLSAs ¶ added in v0.2.0
func (m *MockBackend) IngestSLSAs(ctx context.Context, subjects []*model.IDorArtifactInput, builtFromList [][]*model.IDorArtifactInput, builtByList []*model.IDorBuilderInput, slsaList []*model.SLSAInputSpec) ([]string, error)
IngestSLSAs mocks base method.
func (*MockBackend) IngestScorecard ¶ added in v0.2.0
func (m *MockBackend) IngestScorecard(ctx context.Context, source model.IDorSourceInput, scorecard model.ScorecardInputSpec) (string, error)
IngestScorecard mocks base method.
func (*MockBackend) IngestScorecards ¶ added in v0.2.0
func (m *MockBackend) IngestScorecards(ctx context.Context, sources []*model.IDorSourceInput, scorecards []*model.ScorecardInputSpec) ([]string, error)
IngestScorecards mocks base method.
func (*MockBackend) IngestSource ¶ added in v0.2.0
func (m *MockBackend) IngestSource(ctx context.Context, source model.IDorSourceInput) (*model.SourceIDs, error)
IngestSource mocks base method.
func (*MockBackend) IngestSources ¶ added in v0.2.0
func (m *MockBackend) IngestSources(ctx context.Context, sources []*model.IDorSourceInput) ([]*model.SourceIDs, error)
IngestSources mocks base method.
func (*MockBackend) IngestVEXStatement ¶ added in v0.2.0
func (m *MockBackend) IngestVEXStatement(ctx context.Context, subject model.PackageOrArtifactInput, vulnerability model.IDorVulnerabilityInput, vexStatement model.VexStatementInputSpec) (string, error)
IngestVEXStatement mocks base method.
func (*MockBackend) IngestVEXStatements ¶ added in v0.2.0
func (m *MockBackend) IngestVEXStatements(ctx context.Context, subjects model.PackageOrArtifactInputs, vulnerabilities []*model.IDorVulnerabilityInput, vexStatements []*model.VexStatementInputSpec) ([]string, error)
IngestVEXStatements mocks base method.
func (*MockBackend) IngestVulnEqual ¶ added in v0.2.0
func (m *MockBackend) IngestVulnEqual(ctx context.Context, vulnerability, otherVulnerability model.IDorVulnerabilityInput, vulnEqual model.VulnEqualInputSpec) (string, error)
IngestVulnEqual mocks base method.
func (*MockBackend) IngestVulnEquals ¶ added in v0.2.0
func (m *MockBackend) IngestVulnEquals(ctx context.Context, vulnerabilities, otherVulnerabilities []*model.IDorVulnerabilityInput, vulnEquals []*model.VulnEqualInputSpec) ([]string, error)
IngestVulnEquals mocks base method.
func (*MockBackend) IngestVulnerabilities ¶ added in v0.2.0
func (m *MockBackend) IngestVulnerabilities(ctx context.Context, vulns []*model.IDorVulnerabilityInput) ([]*model.VulnerabilityIDs, error)
IngestVulnerabilities mocks base method.
func (*MockBackend) IngestVulnerability ¶ added in v0.2.0
func (m *MockBackend) IngestVulnerability(ctx context.Context, vuln model.IDorVulnerabilityInput) (*model.VulnerabilityIDs, error)
IngestVulnerability mocks base method.
func (*MockBackend) IngestVulnerabilityMetadata ¶ added in v0.2.0
func (m *MockBackend) IngestVulnerabilityMetadata(ctx context.Context, vulnerability model.IDorVulnerabilityInput, vulnerabilityMetadata model.VulnerabilityMetadataInputSpec) (string, error)
IngestVulnerabilityMetadata mocks base method.
func (*MockBackend) IsDependency ¶ added in v0.2.0
func (m *MockBackend) IsDependency(ctx context.Context, isDependencySpec *model.IsDependencySpec) ([]*model.IsDependency, error)
IsDependency mocks base method.
func (*MockBackend) IsDependencyList ¶ added in v0.6.0
func (m *MockBackend) IsDependencyList(ctx context.Context, isDependencySpec model.IsDependencySpec, after *string, first *int) (*model.IsDependencyConnection, error)
IsDependencyList mocks base method.
func (*MockBackend) IsOccurrence ¶ added in v0.2.0
func (m *MockBackend) IsOccurrence(ctx context.Context, isOccurrenceSpec *model.IsOccurrenceSpec) ([]*model.IsOccurrence, error)
IsOccurrence mocks base method.
func (*MockBackend) IsOccurrenceList ¶ added in v0.6.0
func (m *MockBackend) IsOccurrenceList(ctx context.Context, isOccurrenceSpec model.IsOccurrenceSpec, after *string, first *int) (*model.IsOccurrenceConnection, error)
IsOccurrenceList mocks base method.
func (*MockBackend) LicenseList ¶ added in v0.6.0
func (m *MockBackend) LicenseList(ctx context.Context, licenseSpec model.LicenseSpec, after *string, first *int) (*model.LicenseConnection, error)
LicenseList mocks base method.
func (*MockBackend) Licenses ¶ added in v0.2.0
func (m *MockBackend) Licenses(ctx context.Context, licenseSpec *model.LicenseSpec) ([]*model.License, error)
Licenses mocks base method.
func (*MockBackend) Neighbors ¶ added in v0.2.0
func (m *MockBackend) Neighbors(ctx context.Context, node string, usingOnly []model.Edge) ([]model.Node, error)
Neighbors mocks base method.
func (*MockBackend) NeighborsList ¶ added in v0.6.0
func (m *MockBackend) NeighborsList(ctx context.Context, node string, usingOnly []model.Edge, after *string, first *int) (*model.NeighborConnection, error)
NeighborsList mocks base method.
func (*MockBackend) Packages ¶ added in v0.2.0
func (m *MockBackend) Packages(ctx context.Context, pkgSpec *model.PkgSpec) ([]*model.Package, error)
Packages mocks base method.
func (*MockBackend) PackagesList ¶ added in v0.6.0
func (m *MockBackend) PackagesList(ctx context.Context, pkgSpec model.PkgSpec, after *string, first *int) (*model.PackageConnection, error)
PackagesList mocks base method.
func (*MockBackend) Path ¶ added in v0.2.0
func (m *MockBackend) Path(ctx context.Context, subject, target string, maxPathLength int, usingOnly []model.Edge) ([]model.Node, error)
Path mocks base method.
func (*MockBackend) PkgEqual ¶ added in v0.2.0
func (m *MockBackend) PkgEqual(ctx context.Context, pkgEqualSpec *model.PkgEqualSpec) ([]*model.PkgEqual, error)
PkgEqual mocks base method.
func (*MockBackend) PkgEqualList ¶ added in v0.6.0
func (m *MockBackend) PkgEqualList(ctx context.Context, pkgEqualSpec model.PkgEqualSpec, after *string, first *int) (*model.PkgEqualConnection, error)
PkgEqualList mocks base method.
func (*MockBackend) PointOfContact ¶ added in v0.2.0
func (m *MockBackend) PointOfContact(ctx context.Context, pointOfContactSpec *model.PointOfContactSpec) ([]*model.PointOfContact, error)
PointOfContact mocks base method.
func (*MockBackend) PointOfContactList ¶ added in v0.6.0
func (m *MockBackend) PointOfContactList(ctx context.Context, pointOfContactSpec model.PointOfContactSpec, after *string, first *int) (*model.PointOfContactConnection, error)
PointOfContactList mocks base method.
func (*MockBackend) Scorecards ¶ added in v0.2.0
func (m *MockBackend) Scorecards(ctx context.Context, certifyScorecardSpec *model.CertifyScorecardSpec) ([]*model.CertifyScorecard, error)
Scorecards mocks base method.
func (*MockBackend) ScorecardsList ¶ added in v0.6.0
func (m *MockBackend) ScorecardsList(ctx context.Context, scorecardSpec model.CertifyScorecardSpec, after *string, first *int) (*model.CertifyScorecardConnection, error)
ScorecardsList mocks base method.
func (*MockBackend) Sources ¶ added in v0.2.0
func (m *MockBackend) Sources(ctx context.Context, sourceSpec *model.SourceSpec) ([]*model.Source, error)
Sources mocks base method.
func (*MockBackend) SourcesList ¶ added in v0.6.0
func (m *MockBackend) SourcesList(ctx context.Context, sourceSpec model.SourceSpec, after *string, first *int) (*model.SourceConnection, error)
SourcesList mocks base method.
func (*MockBackend) VulnEqual ¶ added in v0.2.0
func (m *MockBackend) VulnEqual(ctx context.Context, vulnEqualSpec *model.VulnEqualSpec) ([]*model.VulnEqual, error)
VulnEqual mocks base method.
func (*MockBackend) VulnEqualList ¶ added in v0.6.0
func (m *MockBackend) VulnEqualList(ctx context.Context, vulnEqualSpec model.VulnEqualSpec, after *string, first *int) (*model.VulnEqualConnection, error)
VulnEqualList mocks base method.
func (*MockBackend) Vulnerabilities ¶ added in v0.2.0
func (m *MockBackend) Vulnerabilities(ctx context.Context, vulnSpec *model.VulnerabilitySpec) ([]*model.Vulnerability, error)
Vulnerabilities mocks base method.
func (*MockBackend) VulnerabilityList ¶ added in v0.6.0
func (m *MockBackend) VulnerabilityList(ctx context.Context, vulnSpec model.VulnerabilitySpec, after *string, first *int) (*model.VulnerabilityConnection, error)
VulnerabilityList mocks base method.
func (*MockBackend) VulnerabilityMetadata ¶ added in v0.2.0
func (m *MockBackend) VulnerabilityMetadata(ctx context.Context, vulnerabilityMetadataSpec *model.VulnerabilityMetadataSpec) ([]*model.VulnerabilityMetadata, error)
VulnerabilityMetadata mocks base method.
func (*MockBackend) VulnerabilityMetadataList ¶ added in v0.6.0
func (m *MockBackend) VulnerabilityMetadataList(ctx context.Context, vulnerabilityMetadataSpec model.VulnerabilityMetadataSpec, after *string, first *int) (*model.VulnerabilityMetadataConnection, error)
VulnerabilityMetadataList mocks base method.
type MockBackendArgs ¶ added in v0.2.0
type MockBackendArgs struct {
// contains filtered or unexported fields
}
MockBackendArgs is a mock of BackendArgs interface.
func NewMockBackendArgs ¶ added in v0.2.0
func NewMockBackendArgs(ctrl *gomock.Controller) *MockBackendArgs
NewMockBackendArgs creates a new mock instance.
func (*MockBackendArgs) EXPECT ¶ added in v0.2.0
func (m *MockBackendArgs) EXPECT() *MockBackendArgsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBackendArgsMockRecorder ¶ added in v0.2.0
type MockBackendArgsMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendArgsMockRecorder is the mock recorder for MockBackendArgs.
type MockBackendMockRecorder ¶ added in v0.2.0
type MockBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendMockRecorder is the mock recorder for MockBackend.
func (*MockBackendMockRecorder) Artifacts ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Artifacts(ctx, artifactSpec any) *gomock.Call
Artifacts indicates an expected call of Artifacts.
func (*MockBackendMockRecorder) ArtifactsList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) ArtifactsList(ctx, artifactSpec, after, first any) *gomock.Call
ArtifactsList indicates an expected call of ArtifactsList.
func (*MockBackendMockRecorder) Builders ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Builders(ctx, builderSpec any) *gomock.Call
Builders indicates an expected call of Builders.
func (*MockBackendMockRecorder) BuildersList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) BuildersList(ctx, builderSpec, after, first any) *gomock.Call
BuildersList indicates an expected call of BuildersList.
func (*MockBackendMockRecorder) CertifyBad ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) CertifyBad(ctx, certifyBadSpec any) *gomock.Call
CertifyBad indicates an expected call of CertifyBad.
func (*MockBackendMockRecorder) CertifyBadList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) CertifyBadList(ctx, certifyBadSpec, after, first any) *gomock.Call
CertifyBadList indicates an expected call of CertifyBadList.
func (*MockBackendMockRecorder) CertifyGood ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) CertifyGood(ctx, certifyGoodSpec any) *gomock.Call
CertifyGood indicates an expected call of CertifyGood.
func (*MockBackendMockRecorder) CertifyGoodList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) CertifyGoodList(ctx, certifyGoodSpec, after, first any) *gomock.Call
CertifyGoodList indicates an expected call of CertifyGoodList.
func (*MockBackendMockRecorder) CertifyLegal ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) CertifyLegal(ctx, certifyLegalSpec any) *gomock.Call
CertifyLegal indicates an expected call of CertifyLegal.
func (*MockBackendMockRecorder) CertifyLegalList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) CertifyLegalList(ctx, certifyLegalSpec, after, first any) *gomock.Call
CertifyLegalList indicates an expected call of CertifyLegalList.
func (*MockBackendMockRecorder) CertifyVEXStatement ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) CertifyVEXStatement(ctx, certifyVEXStatementSpec any) *gomock.Call
CertifyVEXStatement indicates an expected call of CertifyVEXStatement.
func (*MockBackendMockRecorder) CertifyVEXStatementList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) CertifyVEXStatementList(ctx, certifyVEXStatementSpec, after, first any) *gomock.Call
CertifyVEXStatementList indicates an expected call of CertifyVEXStatementList.
func (*MockBackendMockRecorder) CertifyVuln ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) CertifyVuln(ctx, certifyVulnSpec any) *gomock.Call
CertifyVuln indicates an expected call of CertifyVuln.
func (*MockBackendMockRecorder) CertifyVulnList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) CertifyVulnList(ctx, certifyVulnSpec, after, first any) *gomock.Call
CertifyVulnList indicates an expected call of CertifyVulnList.
func (*MockBackendMockRecorder) FindSoftware ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) FindSoftware(ctx, searchText any) *gomock.Call
FindSoftware indicates an expected call of FindSoftware.
func (*MockBackendMockRecorder) FindSoftwareList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) FindSoftwareList(ctx, searchText, after, first any) *gomock.Call
FindSoftwareList indicates an expected call of FindSoftwareList.
func (*MockBackendMockRecorder) HasMetadata ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) HasMetadata(ctx, hasMetadataSpec any) *gomock.Call
HasMetadata indicates an expected call of HasMetadata.
func (*MockBackendMockRecorder) HasMetadataList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) HasMetadataList(ctx, hasMetadataSpec, after, first any) *gomock.Call
HasMetadataList indicates an expected call of HasMetadataList.
func (*MockBackendMockRecorder) HasSBOM ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) HasSBOM(ctx, hasSBOMSpec any) *gomock.Call
HasSBOM indicates an expected call of HasSBOM.
func (*MockBackendMockRecorder) HasSBOMList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) HasSBOMList(ctx, hasSBOMSpec, after, first any) *gomock.Call
HasSBOMList indicates an expected call of HasSBOMList.
func (*MockBackendMockRecorder) HasSLSAList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) HasSLSAList(ctx, hasSLSASpec, after, first any) *gomock.Call
HasSLSAList indicates an expected call of HasSLSAList.
func (*MockBackendMockRecorder) HasSlsa ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) HasSlsa(ctx, hasSLSASpec any) *gomock.Call
HasSlsa indicates an expected call of HasSlsa.
func (*MockBackendMockRecorder) HasSourceAt ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) HasSourceAt(ctx, hasSourceAtSpec any) *gomock.Call
HasSourceAt indicates an expected call of HasSourceAt.
func (*MockBackendMockRecorder) HasSourceAtList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) HasSourceAtList(ctx, hasSourceAtSpec, after, first any) *gomock.Call
HasSourceAtList indicates an expected call of HasSourceAtList.
func (*MockBackendMockRecorder) HashEqual ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) HashEqual(ctx, hashEqualSpec any) *gomock.Call
HashEqual indicates an expected call of HashEqual.
func (*MockBackendMockRecorder) HashEqualList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) HashEqualList(ctx, hashEqualSpec, after, first any) *gomock.Call
HashEqualList indicates an expected call of HashEqualList.
func (*MockBackendMockRecorder) IngestArtifact ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestArtifact(ctx, artifact any) *gomock.Call
IngestArtifact indicates an expected call of IngestArtifact.
func (*MockBackendMockRecorder) IngestArtifacts ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestArtifacts(ctx, artifacts any) *gomock.Call
IngestArtifacts indicates an expected call of IngestArtifacts.
func (*MockBackendMockRecorder) IngestBuilder ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestBuilder(ctx, builder any) *gomock.Call
IngestBuilder indicates an expected call of IngestBuilder.
func (*MockBackendMockRecorder) IngestBuilders ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestBuilders(ctx, builders any) *gomock.Call
IngestBuilders indicates an expected call of IngestBuilders.
func (*MockBackendMockRecorder) IngestBulkHasMetadata ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestBulkHasMetadata(ctx, subjects, pkgMatchType, hasMetadataList any) *gomock.Call
IngestBulkHasMetadata indicates an expected call of IngestBulkHasMetadata.
func (*MockBackendMockRecorder) IngestBulkVulnerabilityMetadata ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestBulkVulnerabilityMetadata(ctx, vulnerabilities, vulnerabilityMetadataList any) *gomock.Call
IngestBulkVulnerabilityMetadata indicates an expected call of IngestBulkVulnerabilityMetadata.
func (*MockBackendMockRecorder) IngestCertifyBad ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyBad(ctx, subject, pkgMatchType, certifyBad any) *gomock.Call
IngestCertifyBad indicates an expected call of IngestCertifyBad.
func (*MockBackendMockRecorder) IngestCertifyBads ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyBads(ctx, subjects, pkgMatchType, certifyBads any) *gomock.Call
IngestCertifyBads indicates an expected call of IngestCertifyBads.
func (*MockBackendMockRecorder) IngestCertifyGood ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyGood(ctx, subject, pkgMatchType, certifyGood any) *gomock.Call
IngestCertifyGood indicates an expected call of IngestCertifyGood.
func (*MockBackendMockRecorder) IngestCertifyGoods ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyGoods(ctx, subjects, pkgMatchType, certifyGoods any) *gomock.Call
IngestCertifyGoods indicates an expected call of IngestCertifyGoods.
func (*MockBackendMockRecorder) IngestCertifyLegal ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyLegal(ctx, subject, declaredLicenses, discoveredLicenses, certifyLegal any) *gomock.Call
IngestCertifyLegal indicates an expected call of IngestCertifyLegal.
func (*MockBackendMockRecorder) IngestCertifyLegals ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyLegals(ctx, subjects, declaredLicensesList, discoveredLicensesList, certifyLegals any) *gomock.Call
IngestCertifyLegals indicates an expected call of IngestCertifyLegals.
func (*MockBackendMockRecorder) IngestCertifyVuln ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyVuln(ctx, pkg, vulnerability, certifyVuln any) *gomock.Call
IngestCertifyVuln indicates an expected call of IngestCertifyVuln.
func (*MockBackendMockRecorder) IngestCertifyVulns ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestCertifyVulns(ctx, pkgs, vulnerabilities, certifyVulns any) *gomock.Call
IngestCertifyVulns indicates an expected call of IngestCertifyVulns.
func (*MockBackendMockRecorder) IngestDependencies ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestDependencies(ctx, pkgs, depPkgs, depPkgMatchType, dependencies any) *gomock.Call
IngestDependencies indicates an expected call of IngestDependencies.
func (*MockBackendMockRecorder) IngestDependency ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestDependency(ctx, pkg, depPkg, depPkgMatchType, dependency any) *gomock.Call
IngestDependency indicates an expected call of IngestDependency.
func (*MockBackendMockRecorder) IngestHasMetadata ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestHasMetadata(ctx, subject, pkgMatchType, hasMetadata any) *gomock.Call
IngestHasMetadata indicates an expected call of IngestHasMetadata.
func (*MockBackendMockRecorder) IngestHasSBOMs ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestHasSBOMs(ctx, subjects, hasSBOMs, includes any) *gomock.Call
IngestHasSBOMs indicates an expected call of IngestHasSBOMs.
func (*MockBackendMockRecorder) IngestHasSbom ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestHasSbom(ctx, subject, hasSbom, includes any) *gomock.Call
IngestHasSbom indicates an expected call of IngestHasSbom.
func (*MockBackendMockRecorder) IngestHasSourceAt ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestHasSourceAt(ctx, pkg, pkgMatchType, source, hasSourceAt any) *gomock.Call
IngestHasSourceAt indicates an expected call of IngestHasSourceAt.
func (*MockBackendMockRecorder) IngestHasSourceAts ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestHasSourceAts(ctx, pkgs, pkgMatchType, sources, hasSourceAts any) *gomock.Call
IngestHasSourceAts indicates an expected call of IngestHasSourceAts.
func (*MockBackendMockRecorder) IngestHashEqual ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestHashEqual(ctx, artifact, equalArtifact, hashEqual any) *gomock.Call
IngestHashEqual indicates an expected call of IngestHashEqual.
func (*MockBackendMockRecorder) IngestHashEquals ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestHashEquals(ctx, artifacts, otherArtifacts, hashEquals any) *gomock.Call
IngestHashEquals indicates an expected call of IngestHashEquals.
func (*MockBackendMockRecorder) IngestLicense ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestLicense(ctx, license any) *gomock.Call
IngestLicense indicates an expected call of IngestLicense.
func (*MockBackendMockRecorder) IngestLicenses ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestLicenses(ctx, licenses any) *gomock.Call
IngestLicenses indicates an expected call of IngestLicenses.
func (*MockBackendMockRecorder) IngestOccurrence ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestOccurrence(ctx, subject, artifact, occurrence any) *gomock.Call
IngestOccurrence indicates an expected call of IngestOccurrence.
func (*MockBackendMockRecorder) IngestOccurrences ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestOccurrences(ctx, subjects, artifacts, occurrences any) *gomock.Call
IngestOccurrences indicates an expected call of IngestOccurrences.
func (*MockBackendMockRecorder) IngestPackage ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestPackage(ctx, pkg any) *gomock.Call
IngestPackage indicates an expected call of IngestPackage.
func (*MockBackendMockRecorder) IngestPackages ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestPackages(ctx, pkgs any) *gomock.Call
IngestPackages indicates an expected call of IngestPackages.
func (*MockBackendMockRecorder) IngestPkgEqual ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestPkgEqual(ctx, pkg, depPkg, pkgEqual any) *gomock.Call
IngestPkgEqual indicates an expected call of IngestPkgEqual.
func (*MockBackendMockRecorder) IngestPkgEquals ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestPkgEquals(ctx, pkgs, otherPackages, pkgEquals any) *gomock.Call
IngestPkgEquals indicates an expected call of IngestPkgEquals.
func (*MockBackendMockRecorder) IngestPointOfContact ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestPointOfContact(ctx, subject, pkgMatchType, pointOfContact any) *gomock.Call
IngestPointOfContact indicates an expected call of IngestPointOfContact.
func (*MockBackendMockRecorder) IngestPointOfContacts ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestPointOfContacts(ctx, subjects, pkgMatchType, pointOfContacts any) *gomock.Call
IngestPointOfContacts indicates an expected call of IngestPointOfContacts.
func (*MockBackendMockRecorder) IngestSLSA ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestSLSA(ctx, subject, builtFrom, builtBy, slsa any) *gomock.Call
IngestSLSA indicates an expected call of IngestSLSA.
func (*MockBackendMockRecorder) IngestSLSAs ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestSLSAs(ctx, subjects, builtFromList, builtByList, slsaList any) *gomock.Call
IngestSLSAs indicates an expected call of IngestSLSAs.
func (*MockBackendMockRecorder) IngestScorecard ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestScorecard(ctx, source, scorecard any) *gomock.Call
IngestScorecard indicates an expected call of IngestScorecard.
func (*MockBackendMockRecorder) IngestScorecards ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestScorecards(ctx, sources, scorecards any) *gomock.Call
IngestScorecards indicates an expected call of IngestScorecards.
func (*MockBackendMockRecorder) IngestSource ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestSource(ctx, source any) *gomock.Call
IngestSource indicates an expected call of IngestSource.
func (*MockBackendMockRecorder) IngestSources ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestSources(ctx, sources any) *gomock.Call
IngestSources indicates an expected call of IngestSources.
func (*MockBackendMockRecorder) IngestVEXStatement ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestVEXStatement(ctx, subject, vulnerability, vexStatement any) *gomock.Call
IngestVEXStatement indicates an expected call of IngestVEXStatement.
func (*MockBackendMockRecorder) IngestVEXStatements ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestVEXStatements(ctx, subjects, vulnerabilities, vexStatements any) *gomock.Call
IngestVEXStatements indicates an expected call of IngestVEXStatements.
func (*MockBackendMockRecorder) IngestVulnEqual ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestVulnEqual(ctx, vulnerability, otherVulnerability, vulnEqual any) *gomock.Call
IngestVulnEqual indicates an expected call of IngestVulnEqual.
func (*MockBackendMockRecorder) IngestVulnEquals ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestVulnEquals(ctx, vulnerabilities, otherVulnerabilities, vulnEquals any) *gomock.Call
IngestVulnEquals indicates an expected call of IngestVulnEquals.
func (*MockBackendMockRecorder) IngestVulnerabilities ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestVulnerabilities(ctx, vulns any) *gomock.Call
IngestVulnerabilities indicates an expected call of IngestVulnerabilities.
func (*MockBackendMockRecorder) IngestVulnerability ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestVulnerability(ctx, vuln any) *gomock.Call
IngestVulnerability indicates an expected call of IngestVulnerability.
func (*MockBackendMockRecorder) IngestVulnerabilityMetadata ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IngestVulnerabilityMetadata(ctx, vulnerability, vulnerabilityMetadata any) *gomock.Call
IngestVulnerabilityMetadata indicates an expected call of IngestVulnerabilityMetadata.
func (*MockBackendMockRecorder) IsDependency ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IsDependency(ctx, isDependencySpec any) *gomock.Call
IsDependency indicates an expected call of IsDependency.
func (*MockBackendMockRecorder) IsDependencyList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) IsDependencyList(ctx, isDependencySpec, after, first any) *gomock.Call
IsDependencyList indicates an expected call of IsDependencyList.
func (*MockBackendMockRecorder) IsOccurrence ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) IsOccurrence(ctx, isOccurrenceSpec any) *gomock.Call
IsOccurrence indicates an expected call of IsOccurrence.
func (*MockBackendMockRecorder) IsOccurrenceList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) IsOccurrenceList(ctx, isOccurrenceSpec, after, first any) *gomock.Call
IsOccurrenceList indicates an expected call of IsOccurrenceList.
func (*MockBackendMockRecorder) LicenseList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) LicenseList(ctx, licenseSpec, after, first any) *gomock.Call
LicenseList indicates an expected call of LicenseList.
func (*MockBackendMockRecorder) Licenses ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Licenses(ctx, licenseSpec any) *gomock.Call
Licenses indicates an expected call of Licenses.
func (*MockBackendMockRecorder) Neighbors ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Neighbors(ctx, node, usingOnly any) *gomock.Call
Neighbors indicates an expected call of Neighbors.
func (*MockBackendMockRecorder) NeighborsList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) NeighborsList(ctx, node, usingOnly, after, first any) *gomock.Call
NeighborsList indicates an expected call of NeighborsList.
func (*MockBackendMockRecorder) Node ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Node(ctx, node any) *gomock.Call
Node indicates an expected call of Node.
func (*MockBackendMockRecorder) Nodes ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Nodes(ctx, nodes any) *gomock.Call
Nodes indicates an expected call of Nodes.
func (*MockBackendMockRecorder) Packages ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Packages(ctx, pkgSpec any) *gomock.Call
Packages indicates an expected call of Packages.
func (*MockBackendMockRecorder) PackagesList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) PackagesList(ctx, pkgSpec, after, first any) *gomock.Call
PackagesList indicates an expected call of PackagesList.
func (*MockBackendMockRecorder) Path ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Path(ctx, subject, target, maxPathLength, usingOnly any) *gomock.Call
Path indicates an expected call of Path.
func (*MockBackendMockRecorder) PkgEqual ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) PkgEqual(ctx, pkgEqualSpec any) *gomock.Call
PkgEqual indicates an expected call of PkgEqual.
func (*MockBackendMockRecorder) PkgEqualList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) PkgEqualList(ctx, pkgEqualSpec, after, first any) *gomock.Call
PkgEqualList indicates an expected call of PkgEqualList.
func (*MockBackendMockRecorder) PointOfContact ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) PointOfContact(ctx, pointOfContactSpec any) *gomock.Call
PointOfContact indicates an expected call of PointOfContact.
func (*MockBackendMockRecorder) PointOfContactList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) PointOfContactList(ctx, pointOfContactSpec, after, first any) *gomock.Call
PointOfContactList indicates an expected call of PointOfContactList.
func (*MockBackendMockRecorder) Scorecards ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Scorecards(ctx, certifyScorecardSpec any) *gomock.Call
Scorecards indicates an expected call of Scorecards.
func (*MockBackendMockRecorder) ScorecardsList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) ScorecardsList(ctx, scorecardSpec, after, first any) *gomock.Call
ScorecardsList indicates an expected call of ScorecardsList.
func (*MockBackendMockRecorder) Sources ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Sources(ctx, sourceSpec any) *gomock.Call
Sources indicates an expected call of Sources.
func (*MockBackendMockRecorder) SourcesList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) SourcesList(ctx, sourceSpec, after, first any) *gomock.Call
SourcesList indicates an expected call of SourcesList.
func (*MockBackendMockRecorder) VulnEqual ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) VulnEqual(ctx, vulnEqualSpec any) *gomock.Call
VulnEqual indicates an expected call of VulnEqual.
func (*MockBackendMockRecorder) VulnEqualList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) VulnEqualList(ctx, vulnEqualSpec, after, first any) *gomock.Call
VulnEqualList indicates an expected call of VulnEqualList.
func (*MockBackendMockRecorder) Vulnerabilities ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) Vulnerabilities(ctx, vulnSpec any) *gomock.Call
Vulnerabilities indicates an expected call of Vulnerabilities.
func (*MockBackendMockRecorder) VulnerabilityList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) VulnerabilityList(ctx, vulnSpec, after, first any) *gomock.Call
VulnerabilityList indicates an expected call of VulnerabilityList.
func (*MockBackendMockRecorder) VulnerabilityMetadata ¶ added in v0.2.0
func (mr *MockBackendMockRecorder) VulnerabilityMetadata(ctx, vulnerabilityMetadataSpec any) *gomock.Call
VulnerabilityMetadata indicates an expected call of VulnerabilityMetadata.
func (*MockBackendMockRecorder) VulnerabilityMetadataList ¶ added in v0.6.0
func (mr *MockBackendMockRecorder) VulnerabilityMetadataList(ctx, vulnerabilityMetadataSpec, after, first any) *gomock.Call
VulnerabilityMetadataList indicates an expected call of VulnerabilityMetadataList.
type MockDocumentParser ¶ added in v0.1.1
type MockDocumentParser struct {
// contains filtered or unexported fields
}
MockDocumentParser is a mock of DocumentParser interface.
func NewMockDocumentParser ¶ added in v0.1.1
func NewMockDocumentParser(ctrl *gomock.Controller) *MockDocumentParser
NewMockDocumentParser creates a new mock instance.
func (*MockDocumentParser) EXPECT ¶ added in v0.1.1
func (m *MockDocumentParser) EXPECT() *MockDocumentParserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDocumentParser) GetIdentifiers ¶ added in v0.1.1
func (m *MockDocumentParser) GetIdentifiers(ctx context.Context) (*common.IdentifierStrings, error)
GetIdentifiers mocks base method.
func (*MockDocumentParser) GetIdentities ¶ added in v0.1.1
func (m *MockDocumentParser) GetIdentities(ctx context.Context) []common.TrustInformation
GetIdentities mocks base method.
func (*MockDocumentParser) GetPredicates ¶ added in v0.1.1
func (m *MockDocumentParser) GetPredicates(ctx context.Context) *assembler.IngestPredicates
GetPredicates mocks base method.
type MockDocumentParserMockRecorder ¶ added in v0.1.1
type MockDocumentParserMockRecorder struct {
// contains filtered or unexported fields
}
MockDocumentParserMockRecorder is the mock recorder for MockDocumentParser.
func (*MockDocumentParserMockRecorder) GetIdentifiers ¶ added in v0.1.1
func (mr *MockDocumentParserMockRecorder) GetIdentifiers(ctx any) *gomock.Call
GetIdentifiers indicates an expected call of GetIdentifiers.
func (*MockDocumentParserMockRecorder) GetIdentities ¶ added in v0.1.1
func (mr *MockDocumentParserMockRecorder) GetIdentities(ctx any) *gomock.Call
GetIdentities indicates an expected call of GetIdentities.
func (*MockDocumentParserMockRecorder) GetPredicates ¶ added in v0.1.1
func (mr *MockDocumentParserMockRecorder) GetPredicates(ctx any) *gomock.Call
GetPredicates indicates an expected call of GetPredicates.
type MockResolver ¶ added in v0.4.0
type MockScorecard ¶
type MockScorecard struct {
// contains filtered or unexported fields
}
MockScorecard is a mock of Scorecard interface.
func NewMockScorecard ¶
func NewMockScorecard(ctrl *gomock.Controller) *MockScorecard
NewMockScorecard creates a new mock instance.
func (*MockScorecard) EXPECT ¶
func (m *MockScorecard) EXPECT() *MockScorecardMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockScorecard) GetScore ¶
func (m *MockScorecard) GetScore(repoName, commitSHA, tag string) (*pkg.ScorecardResult, error)
GetScore mocks base method.
type MockScorecardMockRecorder ¶
type MockScorecardMockRecorder struct {
// contains filtered or unexported fields
}
MockScorecardMockRecorder is the mock recorder for MockScorecard.