Documentation ¶
Index ¶
Constants ¶
View Source
const SchemaVersion = grypeDB.SchemaVersion
Variables ¶
View Source
var AllSeverities = []Severity{ NegligibleSeverity, LowSeverity, MediumSeverity, HighSeverity, CriticalSeverity, }
Functions ¶
This section is empty.
Types ¶
type Cvss ¶
type Cvss struct { Version string Vector string Metrics CvssMetrics VendorMetadata interface{} }
type CvssMetrics ¶ added in v0.13.0
func NewCvssMetrics ¶ added in v0.13.0
func NewCvssMetrics(baseScore, exploitabilityScore, impactScore float64) CvssMetrics
type Metadata ¶
type Metadata struct { ID string DataSource string Namespace string Severity string URLs []string Description string Cvss []Cvss }
func NewMetadata ¶
func NewMetadata(m *grypeDB.VulnerabilityMetadata) (*Metadata, error)
type MetadataProvider ¶
type Provider ¶
type Provider interface { ProviderByDistro ProviderByLanguage ProviderByCPE }
type ProviderByCPE ¶
type ProviderByCPE interface {
GetByCPE(syftPkg.CPE) ([]Vulnerability, error)
}
type ProviderByDistro ¶
type ProviderByLanguage ¶
type Set ¶
type Set map[string]struct{}
func (Set) Add ¶
func (s Set) Add(v *Vulnerability)
func (Set) Contains ¶
func (s Set) Contains(v *Vulnerability) bool
func (Set) Remove ¶
func (s Set) Remove(v *Vulnerability)
type Vulnerability ¶
type Vulnerability struct { Constraint version.Constraint CPEs []pkg.CPE ID string Namespace string Fix Fix Advisories []Advisory RelatedVulnerabilities []Reference }
func NewVulnerability ¶
func NewVulnerability(vuln grypeDB.Vulnerability) (*Vulnerability, error)
func (Vulnerability) String ¶
func (v Vulnerability) String() string
Click to show internal directories.
Click to hide internal directories.