aboutsummaryrefslogtreecommitdiff
path: root/cvss/v3key_string.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-04 00:35:31 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-04 00:35:31 -0500
commit9c17b97cd0f83be3fff9fa4e87fd1d29052ea616 (patch)
tree0d97030a0d0c3ad983be281ce89f80571338887f /cvss/v3key_string.go
parent92400d731546557d110c9c3cc3906d700f83dda8 (diff)
downloadcvez-9c17b97cd0f83be3fff9fa4e87fd1d29052ea616.tar.bz2
cvez-9c17b97cd0f83be3fff9fa4e87fd1d29052ea616.zip
rename to github.com/pablotron/cvez, remove internal libs
Diffstat (limited to 'cvss/v3key_string.go')
-rw-r--r--cvss/v3key_string.go45
1 files changed, 45 insertions, 0 deletions
diff --git a/cvss/v3key_string.go b/cvss/v3key_string.go
new file mode 100644
index 0000000..0644117
--- /dev/null
+++ b/cvss/v3key_string.go
@@ -0,0 +1,45 @@
+// Code generated by "stringer -linecomment -type=v3Key"; DO NOT EDIT.
+
+package cvss
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[v3AttackVector-0]
+ _ = x[v3AttackComplexity-1]
+ _ = x[v3PrivilegesRequired-2]
+ _ = x[v3UserInteraction-3]
+ _ = x[v3Scope-4]
+ _ = x[v3Confidentiality-5]
+ _ = x[v3Integrity-6]
+ _ = x[v3Availability-7]
+ _ = x[v3ExploitCodeMaturity-8]
+ _ = x[v3RemediationLevel-9]
+ _ = x[v3ReportConfidence-10]
+ _ = x[v3ConfidentialityRequirement-11]
+ _ = x[v3IntegrityRequirement-12]
+ _ = x[v3AvailabilityRequirement-13]
+ _ = x[v3ModifiedAttackVector-14]
+ _ = x[v3ModifiedAttackComplexity-15]
+ _ = x[v3ModifiedPrivilegesRequired-16]
+ _ = x[v3ModifiedUserInteraction-17]
+ _ = x[v3ModifiedScope-18]
+ _ = x[v3ModifiedConfidentiality-19]
+ _ = x[v3ModifiedIntegrity-20]
+ _ = x[v3ModifiedAvailability-21]
+ _ = x[v3InvalidKey-22]
+}
+
+const _v3Key_name = "AVACPRUISCIAERLRCCRIRARMAVMACMPRMUIMSMCMIMAinvalid"
+
+var _v3Key_index = [...]uint8{0, 2, 4, 6, 8, 9, 10, 11, 12, 13, 15, 17, 19, 21, 23, 26, 29, 32, 35, 37, 39, 41, 43, 50}
+
+func (i v3Key) String() string {
+ if i >= v3Key(len(_v3Key_index)-1) {
+ return "v3Key(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _v3Key_name[_v3Key_index[i]:_v3Key_index[i+1]]
+}