aboutsummaryrefslogtreecommitdiff
path: root/cvss
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-17 20:29:41 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-17 20:29:41 -0500
commit9b3d4de3c655d54c6fb0d8837bec3aa0f5e7ded2 (patch)
tree6311ebd9afa19d6667b22884f9fd1c6e72552385 /cvss
parent8098d4986e268899a3f4a4a9e05cc09aebf41690 (diff)
downloadcvez-9b3d4de3c655d54c6fb0d8837bec3aa0f5e7ded2.tar.bz2
cvez-9b3d4de3c655d54c6fb0d8837bec3aa0f5e7ded2.zip
cvss/vector.go: add Score() to Vector iface
Diffstat (limited to 'cvss')
-rw-r--r--cvss/vector.go3
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.