aboutsummaryrefslogtreecommitdiff
path: root/cvss/severity.go
diff options
context:
space:
mode:
Diffstat (limited to 'cvss/severity.go')
-rw-r--r--cvss/severity.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/cvss/severity.go b/cvss/severity.go
new file mode 100644
index 0000000..88df96a
--- /dev/null
+++ b/cvss/severity.go
@@ -0,0 +1,16 @@
+package cvss
+
+type Rating byte
+
+//go:generate stringer -linecomment -type=Severity
+
+// CVSS score severity rating.
+type Severity byte
+
+const (
+ None Severity = iota // None
+ Low // Low
+ Medium // Medium
+ High // High
+ Critical // Critical
+)