Documentation ¶
Index ¶
- Variables
- func Rating(score float64) (string, error)
- type CVSS30
- func (cvss30 CVSS30) BaseScore() float64
- func (cvss30 CVSS30) EnvironmentalScore() float64
- func (cvss30 CVSS30) Exploitability() float64
- func (cvss30 CVSS30) Get(abv string) (r string, err error)
- func (cvss30 CVSS30) Impact() float64
- func (cvss30 *CVSS30) Set(abv string, value string) error
- func (cvss30 CVSS30) TemporalScore() float64
- func (cvss30 CVSS30) Vector() string
- type ErrDefinedN
- type ErrInvalidMetric
- type ErrMissing
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type CVSS30 ¶
type CVSS30 struct {
// contains filtered or unexported fields
}
CVSS30 embeds all the metric values defined by the CVSS v3.1 specification.
func ParseVector ¶
ParseVector parses a given vector string, validates it and returns a CVSS30.
func (CVSS30) EnvironmentalScore ¶
EnvironmentalScore returns the CVSS v3.1's environmental score.
func (CVSS30) Exploitability ¶ added in v0.4.0
func (CVSS30) TemporalScore ¶
TemporalScore returns the CVSS v3.1's temporal score.
type ErrDefinedN ¶
type ErrDefinedN struct {
Abv string
}
ErrDefinedN is an error returned by ParseVector when the given vector has a metric abbreviation defined multiple times.
func (ErrDefinedN) Error ¶
func (err ErrDefinedN) Error() string
type ErrInvalidMetric ¶
type ErrInvalidMetric struct {
Abv string
}
ErrInvalidMetric is an error returned when a given metric does not exist.
func (ErrInvalidMetric) Error ¶
func (err ErrInvalidMetric) Error() string
type ErrMissing ¶ added in v0.4.0
type ErrMissing struct {
Abv string
}
ErrMissing is an error returned by ParseVector when the given vector have missing base score attributes.
func (ErrMissing) Error ¶ added in v0.4.0
func (err ErrMissing) Error() string
Click to show internal directories.
Click to hide internal directories.