severity

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateOverallScore added in v1.7.0

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

func CalculateScore

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

Types

type Rating added in v1.9.2

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 added in v1.9.1

func CalculateRating(score string) (Rating, error)

Jump to

Keyboard shortcuts

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