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" RedOS types.SourceID = "redos" OracleOVAL types.SourceID = "oracle-oval" SuseCVRF types.SourceID = "suse-cvrf" Alpine types.SourceID = "alpine" ArchLinux types.SourceID = "arch-linux" Alma types.SourceID = "alma" 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 ¶
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 ¶
func (Vulnerability) Normalize(details map[types.SourceID]types.VulnerabilityDetail) types.Vulnerability
Click to show internal directories.
Click to hide internal directories.