severity

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package severity provides functionality for calculating vulnerability severity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateOverallScore

func CalculateOverallScore(severities []osvschema.Severity) (float64, string, error)

func CalculateScore

func CalculateScore(severity osvschema.Severity) (float64, string, error)

Types

type Rating

type Rating string

Rating represents the severity level of a vulnerability.

const (
	CriticalRating Rating = "CRITICAL"
	HighRating     Rating = "HIGH"
	MediumRating   Rating = "MEDIUM"
	LowRating      Rating = "LOW"
	UnknownRating  Rating = "UNKNOWN"
)

func CalculateRating

func CalculateRating(score string) (Rating, error)

Jump to

Keyboard shortcuts

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