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 + var AllSeverities = []Severity + type Cvss struct + BaseScore float64 + ExploitabilityScore float64 + ImpactScore float64 + Vector string + func NewCvss(m *db.Cvss) *Cvss + type Metadata struct + CvssV2 *Cvss + CvssV3 *Cvss + Description string + ID string + Links []string + Severity string + func NewMetadata(m *db.VulnerabilityMetadata) (*Metadata, error) + type MetadataProvider interface + GetMetadata func(id, recordSource string) (*Metadata, error) + type MetadataStoreAdapter struct + func NewMetadataStoreProvider(store db.VulnerabilityMetadataStoreReader) *MetadataStoreAdapter + func (pr *MetadataStoreAdapter) GetMetadata(id, recordSource string) (*Metadata, error) + type Provider interface + type ProviderByCPE interface + GetByCPE func(syftPkg.CPE) ([]*Vulnerability, error) + type ProviderByDistro interface + GetByDistro func(distro.Distro, pkg.Package) ([]*Vulnerability, error) + type ProviderByLanguage interface + GetByLanguage func(syftPkg.Language, pkg.Package) ([]*Vulnerability, error) + type Set map[string]struct + func NewSet() Set + func (s Set) Add(v *Vulnerability) + func (s Set) Contains(v *Vulnerability) bool + func (s Set) Remove(v *Vulnerability) + type Severity int + const CriticalSeverity + const HighSeverity + const LowSeverity + const MediumSeverity + const NegligibleSeverity + const UnknownSeverity + func ParseSeverity(severity string) Severity + func (f Severity) String() string + type StoreAdapter struct + func NewProviderFromStore(store db.VulnerabilityStoreReader) *StoreAdapter + func (pr *StoreAdapter) GetByCPE(requestCPE syftPkg.CPE) ([]*Vulnerability, error) + func (pr *StoreAdapter) GetByDistro(d distro.Distro, p pkg.Package) ([]*Vulnerability, error) + func (pr *StoreAdapter) GetByLanguage(l syftPkg.Language, p pkg.Package) ([]*Vulnerability, error) + type Vulnerability struct + CPEs []pkg.CPE + Constraint version.Constraint + FixedInVersion string + ID string + RecordSource string + func NewVulnerability(vuln db.Vulnerability) (*Vulnerability, error) + func (v Vulnerability) String() string