Documentation ¶
Index ¶
- Variables
- func Rating(score float64) (string, error)
- type CVSS31
- func (cvss31 CVSS31) BaseScore() float64
- func (cvss31 CVSS31) EnvironmentalScore() float64
- func (cvss31 CVSS31) Exploitability() float64
- func (cvss31 CVSS31) Get(abv string) (r string, err error)
- func (cvss31 CVSS31) Impact() float64
- func (cvss31 *CVSS31) Set(abv string, value string) error
- func (cvss31 CVSS31) TemporalScore() float64
- func (cvss31 CVSS31) Vector() string
- type ErrDefinedN
- type ErrInvalidMetric
- type ErrMissing
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type CVSS31 ¶
type CVSS31 struct {
// contains filtered or unexported fields
}
CVSS31 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 CVSS31.
func (CVSS31) EnvironmentalScore ¶
EnvironmentalScore returns the CVSS v3.1's environmental score.
func (CVSS31) Exploitability ¶ added in v0.4.0
func (CVSS31) 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 ¶ added in v0.2.0
type ErrInvalidMetric struct {
Abv string
}
ErrInvalidMetric is an error returned when a given metric does not exist.
func (ErrInvalidMetric) Error ¶ added in v0.2.0
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.