vulnerability

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Data source
	NVD                   types.SourceID = "nvd"
	RedHat                types.SourceID = "redhat"
	RedHatOVAL            types.SourceID = "redhat-oval"
	Debian                types.SourceID = "debian"
	Ubuntu                types.SourceID = "ubuntu"
	CentOS                types.SourceID = "centos"
	Rocky                 types.SourceID = "rocky"
	Fedora                types.SourceID = "fedora"
	Amazon                types.SourceID = "amazon"
	OracleOVAL            types.SourceID = "oracle-oval"
	SuseCVRF              types.SourceID = "suse-cvrf"
	Alpine                types.SourceID = "alpine"
	ArchLinux             types.SourceID = "arch-linux"
	Alma                  types.SourceID = "alma"
	AzureLinux            types.SourceID = "azure"
	CBLMariner            types.SourceID = "cbl-mariner"
	Photon                types.SourceID = "photon"
	RubySec               types.SourceID = "ruby-advisory-db"
	PhpSecurityAdvisories types.SourceID = "php-security-advisories"
	NodejsSecurityWg      types.SourceID = "nodejs-security-wg"
	GHSA                  types.SourceID = "ghsa"
	GLAD                  types.SourceID = "glad"
	OSV                   types.SourceID = "osv"
	Wolfi                 types.SourceID = "wolfi"
	Chainguard            types.SourceID = "chainguard"
	BitnamiVulndb         types.SourceID = "bitnami"
	K8sVulnDB             types.SourceID = "k8s"
	GoVulnDB              types.SourceID = "govulndb"

	// Ecosystem
	Unknown    types.Ecosystem = "unknown"
	Npm        types.Ecosystem = "npm"
	Composer   types.Ecosystem = "composer"
	Pip        types.Ecosystem = "pip"
	RubyGems   types.Ecosystem = "rubygems"
	Cargo      types.Ecosystem = "cargo"
	NuGet      types.Ecosystem = "nuget"
	Maven      types.Ecosystem = "maven"
	Go         types.Ecosystem = "go"
	Conan      types.Ecosystem = "conan"
	Erlang     types.Ecosystem = "erlang"
	Pub        types.Ecosystem = "pub"
	Swift      types.Ecosystem = "swift"
	Cocoapods  types.Ecosystem = "cocoapods"
	Bitnami    types.Ecosystem = "bitnami"
	Kubernetes types.Ecosystem = "k8s"
)

Variables

This section is empty.

Functions

func NormalizePkgName

func NormalizePkgName(ecosystem types.Ecosystem, pkgName string) string

Types

type Vulnerability

type Vulnerability struct {
	// contains filtered or unexported fields
}

func New

func New(dbc db.Operation) Vulnerability

func (Vulnerability) GetDetails

func (v Vulnerability) GetDetails(vulnID string) map[types.SourceID]types.VulnerabilityDetail

func (Vulnerability) IsRejected

func (Vulnerability) IsRejected(details map[types.SourceID]types.VulnerabilityDetail) bool

func (Vulnerability) Normalize

Jump to

Keyboard shortcuts

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