Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cvss ¶
type Cvss struct { Source string Type string 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 FixState ¶ added in v0.86.0
type FixState string
func AllFixStates ¶ added in v0.72.0
func AllFixStates() []FixState
type MetadataProvider ¶
type Provider ¶
type Provider interface { Get(id, namespace string) ([]Vulnerability, error) ProviderByDistro ProviderByLanguage ProviderByCPE }
type ProviderByCPE ¶
type ProviderByCPE interface {
GetByCPE(cpe.CPE) ([]Vulnerability, error)
}
type ProviderByDistro ¶
type ProviderByLanguage ¶
type Severities ¶ added in v0.59.0
type Severities []Severity
func (Severities) Len ¶ added in v0.59.0
func (s Severities) Len() int
func (Severities) Less ¶ added in v0.59.0
func (s Severities) Less(i, j int) bool
func (Severities) Swap ¶ added in v0.59.0
func (s Severities) Swap(i, j int)
type Severity ¶
type Severity int
func AllSeverities ¶
func AllSeverities() []Severity
func ParseSeverity ¶
type Vulnerability ¶
type Vulnerability struct { PackageName string Constraint version.Constraint PackageQualifiers []qualifier.Qualifier CPEs []cpe.CPE ID string Namespace string Fix Fix Advisories []Advisory RelatedVulnerabilities []Reference }
func (Vulnerability) String ¶
func (v Vulnerability) String() string
Click to show internal directories.
Click to hide internal directories.