Documentation ¶
Index ¶
- Constants
- func ExploitScoreAndImpactScoreFromV2Vector(cvssV2Vector string) (float64, float64)
- func ExploitScoreAndImpactScoreFromV3Vector(cvssV3Vector string) (float64, float64)
- func GetCVSSV3VersionFromVector(cvssV3Vector string) string
- func GetSeverityIntFromString(severity string) int
- func RoundToOneDecimalPlace(score float64) float64
- type SeverityModel
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 ¶
nolint:gomnd
func ExploitScoreAndImpactScoreFromV3Vector ¶
https://www.first.org/cvss/v3.1/specification-document#7-1-Base-Metrics-Equations https://www.first.org/cvss/v3.0/specification-document#CVSS-v3-0-Equations 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
Click to show internal directories.
Click to hide internal directories.