Documentation ¶
Index ¶
Constants ¶
View Source
const SchemaVersion = grypeDB.SchemaVersion
Variables ¶
This section is empty.
Functions ¶
func AllFixStates ¶ added in v0.72.0
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 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 { Get(id, namespace string) ([]Vulnerability, error) ProviderByDistro ProviderByLanguage ProviderByCPE }
type ProviderByCPE ¶
type ProviderByCPE interface {
GetByCPE(cpe.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 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 { Constraint version.Constraint PackageQualifiers []qualifier.Qualifier CPEs []cpe.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.