aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cvss/v2vector.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cvss/v2vector.go b/cvss/v2vector.go
index b1fca1f..14a4afb 100644
--- a/cvss/v2vector.go
+++ b/cvss/v2vector.go
@@ -41,6 +41,11 @@ func (v v2Vector) Metrics() []Metric {
return r
}
+// Return numerical scores for this vector.
+func (v v2Vector) Scores() (v2Scores, error) {
+ return newV2Scores(v)
+}
+
// Create CVSS 2.0 vector from string.
func newV2Vector(s string) (v2Vector, error) {
strs := strings.Split(s, "/")