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