Documentation ¶
Index ¶
- Constants
- Variables
- func BatchUpdate(fn func(b *bolt.Bucket) error) error
- func ColorizeSeverity(severity string) string
- func CompareSeverityString(sev1, sev2 string) bool
- func Get(cveID string) (map[string]Vulnerability, error)
- func Put(tx *bolt.Tx, cveID, source string, vuln Vulnerability) error
- func Update(cveID, source string, vuln Vulnerability) error
- type Advisory
- type DetectedVulnerability
- type LastUpdated
- type Severity
- type Vulnerability
Constants ¶
View Source
const ( // Data source Nvd = "nvd" RedHat = "redhat" Debian = "debian" DebianOVAL = "debian-oval" Ubuntu = "ubuntu" CentOS = "centos" Fedora = "fedora" Amazon = "amazon" Alpine = "alpine" RubySec = "ruby-advisory-db" RustSec = "rust-advisory-db" PhpSecurityAdvisories = "php-security-advisories" NodejsSecurityWg = "nodejs-security-wg" PythonSafetyDB = "python-safety-db" )
Variables ¶
View Source
var ( SeverityNames = []string{ "UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL", } SeverityColor = []func(a ...interface{}) string{ color.New(color.FgCyan).SprintFunc(), color.New(color.FgBlue).SprintFunc(), color.New(color.FgYellow).SprintFunc(), color.New(color.FgHiRed).SprintFunc(), color.New(color.FgRed).SprintFunc(), } )
Functions ¶
func ColorizeSeverity ¶
func CompareSeverityString ¶
func Update ¶
func Update(cveID, source string, vuln Vulnerability) error
Types ¶
type DetectedVulnerability ¶
type DetectedVulnerability struct { VulnerabilityID string PkgName string InstalledVersion string FixedVersion string Title string Description string Severity string References []string }
func FillAndFilter ¶
func FillAndFilter(vulns []DetectedVulnerability, severities []Severity, ignoreUnfixed bool) []DetectedVulnerability
type LastUpdated ¶
Click to show internal directories.
Click to hide internal directories.