diff options
| author | Paul Duncan <pabs@pablotron.org> | 2022-02-17 20:29:41 -0500 |
|---|---|---|
| committer | Paul Duncan <pabs@pablotron.org> | 2022-02-17 20:29:41 -0500 |
| commit | 9b3d4de3c655d54c6fb0d8837bec3aa0f5e7ded2 (patch) | |
| tree | 6311ebd9afa19d6667b22884f9fd1c6e72552385 | |
| parent | 8098d4986e268899a3f4a4a9e05cc09aebf41690 (diff) | |
| download | cvez-9b3d4de3c655d54c6fb0d8837bec3aa0f5e7ded2.tar.xz cvez-9b3d4de3c655d54c6fb0d8837bec3aa0f5e7ded2.zip | |
cvss/vector.go: add Score() to Vector iface
| -rw-r--r-- | cvss/vector.go | 3 |
1 files changed, 3 insertions, 0 deletions
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. |
