aboutsummaryrefslogtreecommitdiff
path: root/cvss/category.go
diff options
context:
space:
mode:
Diffstat (limited to 'cvss/category.go')
-rw-r--r--cvss/category.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/cvss/category.go b/cvss/category.go
new file mode 100644
index 0000000..54781dc
--- /dev/null
+++ b/cvss/category.go
@@ -0,0 +1,13 @@
+package cvss
+
+//go:generate stringer -linecomment -type=Category
+
+// CVSS metric category.
+type Category byte
+
+const (
+ Base Category = iota // Base
+ Temporal // Temporal
+ Environmental // Environmental
+ InvalidCategory // invalid
+)