vulnerability

package
v0.0.0-...-c30fbfa Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DEFCON1    = "DEFCON1"
	CRITICAL   = "CRITICAL"
	HIGH       = "HIGH"
	MEDIUM     = "MEDIUM"
	LOW        = "LOW"
	NEGLIGIBLE = "NEGLIGIBLE"
	UNKNOWN    = "UNKNOWN"
	NONE       = "NONE"
	INFO       = "INFO"
)

Variables

This section is empty.

Functions

func ExploitScoreAndImpactScoreFromV2Vector

func ExploitScoreAndImpactScoreFromV2Vector(cvssV2Vector string) (float64, float64)

nolint:gomnd

func GetCVSSV3VersionFromVector

func GetCVSSV3VersionFromVector(cvssV3Vector string) string

func GetSeverityIntFromString

func GetSeverityIntFromString(severity string) int

nolint:gomnd

func RoundToOneDecimalPlace

func RoundToOneDecimalPlace(score float64) float64

nolint:gomnd

Types

type SeverityModel

type SeverityModel[T any] struct {
	Critical   T
	High       T
	Medium     T
	Low        T
	Negligible T
}

func (SeverityModel[T]) GetVulnerabilitySeverityFromString

func (m SeverityModel[T]) GetVulnerabilitySeverityFromString(severity string) T

Jump to

Keyboard shortcuts

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