From 9b3d4de3c655d54c6fb0d8837bec3aa0f5e7ded2 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 17 Feb 2022 20:29:41 -0500 Subject: cvss/vector.go: add Score() to Vector iface --- cvss/vector.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cvss') diff --git a/cvss/vector.go b/cvss/vector.go index 3e465c5..0c5fdbb 100644 --- a/cvss/vector.go +++ b/cvss/vector.go @@ -17,6 +17,9 @@ type Vector interface { // Unmarshal vector from JSON. // UnmarshalJSON(b []byte) error + + // Get base, temporal, and environment scores for vector. + Scores() (Scores, error) } // Create new CVSS vector from vector string. -- cgit v1.2.3