pds

package
v0.0.0-...-d9b5379 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type VulnerabilitySchemaWrapper

type VulnerabilitySchemaWrapper interface {
	References() []*api.VulnerabilityReference
	CVE() string
	CWEs() []string

	Affects() []*vulnerabilityAffected

	// Return on of CRITICAL, HIGH, MEDIUM, LOW
	FriendlySeverity() string
	FriendlySeverityCode() api.VulnerabilitySeverity

	// Standard form
	Severity() []*api.VulnerabilityScore
}

We may have different vulnerability sources and data provider. The vulnerability data has meaning based on vuln.SchemaType and vuln.SchemaVersion We need adapters/wrappers that can be plugged in to make sense of vuln.Data and provide an uniform interface to the rest of the system

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL