Documentation
¶
Index ¶
- Variables
- type CVSS20
- func (cvss20 CVSS20) BaseScore() float64
- func (cvss20 CVSS20) EnvironmentalScore() float64
- func (cvss20 CVSS20) Exploitability() float64
- func (cvss20 CVSS20) Get(abv string) (r string, err error)
- func (cvss20 CVSS20) Impact() float64
- func (cvss20 *CVSS20) Set(abv string, value string) error
- func (cvss20 CVSS20) TemporalScore() float64
- func (cvss20 CVSS20) Vector() string
- type ErrInvalidMetric
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CVSS20 ¶
type CVSS20 struct {
// contains filtered or unexported fields
}
CVSS20 embeds all the metric values defined by the CVSS v2.0 rev2 specification.
func ParseVector ¶
ParseVector parses a CVSS v2.0 vector.
func (CVSS20) EnvironmentalScore ¶
EnvironmentalScore returns the CVSS v2.0's environmental score.
func (CVSS20) Exploitability ¶ added in v0.4.0
func (CVSS20) TemporalScore ¶
TemporalScore returns the CVSS v2.0's temporal score.
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
Click to show internal directories.
Click to hide internal directories.