Versions in this module Expand all Collapse all v0 v0.13.0 Apr 25, 2021 v0.12.0 Apr 25, 2021 Changes in this version + func GenerateAnalysis(t *testing.T) (match.Matches, []pkg.Package, pkg.Context, vulnerability.MetadataProvider, ...) + type Cvss struct + BaseScore float64 + ExploitabilityScore *float64 + ImpactScore *float64 + Vector string + type Document struct + Descriptor descriptor + Distro distribution + Matches []Match + Source *source + func NewDocument(packages []pkg.Package, context pkg.Context, matches match.Matches, ...) (Document, error) + type Match struct + Artifact Package + MatchDetails MatchDetails + Vulnerability Vulnerability + type MatchDetails struct + MatchInfo map[string]interface{} + Matcher string + SearchKey map[string]interface{} + type MetadataMock struct + func NewMetadataMock() *MetadataMock + func (m *MetadataMock) GetMetadata(id, recordSource string) (*vulnerability.Metadata, error) + type Package struct + CPEs []string + Language syftPkg.Language + Licenses []string + Locations []syftSource.Location + Name string + PURL string + Type syftPkg.Type + Version string + type Vulnerability struct + CvssV2 *Cvss + CvssV3 *Cvss + Description string + FixedInVersion string + ID string + Links []string + Severity string + func NewVulnerability(m match.Match, metadata *vulnerability.Metadata) Vulnerability