aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/v2metric_string.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-01-31 11:09:58 -0500
committerPaul Duncan <pabs@pablotron.org>2022-01-31 11:09:58 -0500
commitb3dc36421f133ea6983574891720e974cf7974dd (patch)
treec6375903fa820bd0ac64ce40827c2c8302d38737 /internal/cvss/v2metric_string.go
downloadcvez-b3dc36421f133ea6983574891720e974cf7974dd.tar.bz2
cvez-b3dc36421f133ea6983574891720e974cf7974dd.zip
initial commit
Diffstat (limited to 'internal/cvss/v2metric_string.go')
-rw-r--r--internal/cvss/v2metric_string.go77
1 files changed, 77 insertions, 0 deletions
diff --git a/internal/cvss/v2metric_string.go b/internal/cvss/v2metric_string.go
new file mode 100644
index 0000000..8191622
--- /dev/null
+++ b/internal/cvss/v2metric_string.go
@@ -0,0 +1,77 @@
+// Code generated by "stringer -linecomment -type=V2Metric"; 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[V2AVNetwork-0]
+ _ = x[V2AVAdjacentNetwork-1]
+ _ = x[V2AVLocal-2]
+ _ = x[V2ACLow-3]
+ _ = x[V2ACMedium-4]
+ _ = x[V2ACHigh-5]
+ _ = x[V2AuMultiple-6]
+ _ = x[V2AuSingle-7]
+ _ = x[V2AuNone-8]
+ _ = x[V2CNone-9]
+ _ = x[V2CPartial-10]
+ _ = x[V2CComplete-11]
+ _ = x[V2INone-12]
+ _ = x[V2IPartial-13]
+ _ = x[V2IComplete-14]
+ _ = x[V2ANone-15]
+ _ = x[V2APartial-16]
+ _ = x[V2AComplete-17]
+ _ = x[V2ENotDefined-18]
+ _ = x[V2EUnproven-19]
+ _ = x[V2EProofOfConcept-20]
+ _ = x[V2EFunctional-21]
+ _ = x[V2EHigh-22]
+ _ = x[V2RLOfficialFix-23]
+ _ = x[V2RLTemporaryFix-24]
+ _ = x[V2RLWorkaround-25]
+ _ = x[V2RLUnavailable-26]
+ _ = x[V2RLNotDefined-27]
+ _ = x[V2RCUnconfirmed-28]
+ _ = x[V2RCUncorroborated-29]
+ _ = x[V2RCConfirmed-30]
+ _ = x[V2RCNotDefined-31]
+ _ = x[V2CDPNone-32]
+ _ = x[V2CDPLow-33]
+ _ = x[V2CDPLowMedium-34]
+ _ = x[V2CDPMediumHigh-35]
+ _ = x[V2CDPHigh-36]
+ _ = x[V2CDPNotDefined-37]
+ _ = x[V2TDNone-38]
+ _ = x[V2TDLow-39]
+ _ = x[V2TDMedium-40]
+ _ = x[V2TDHigh-41]
+ _ = x[V2TDNotDefined-42]
+ _ = x[V2CRLow-43]
+ _ = x[V2CRMedium-44]
+ _ = x[V2CRHigh-45]
+ _ = x[V2CRNotDefined-46]
+ _ = x[V2IRLow-47]
+ _ = x[V2IRMedium-48]
+ _ = x[V2IRHigh-49]
+ _ = x[V2IRNotDefined-50]
+ _ = x[V2ARLow-51]
+ _ = x[V2ARMedium-52]
+ _ = x[V2ARHigh-53]
+ _ = x[V2ARNotDefined-54]
+}
+
+const _V2Metric_name = "AV:NAV:AAV:LAC:LAC:LAC:HAu:MAu:SAu:NC:NC:PC:CI:NI:PI:CA:NA:PA:CE:NDE:UE:POCE:FE:HRL:OFRL:TFRL:WRL:URL:NDRC:UCRC:URRC:CRC:NDCDP:NCDP:LCDP:LMCDP:MHCDP:HCDP:NDTD:NTD:LTD:MTD:HTD:NDCR:LCR:MCR:HCR:NDIR:LIR:MIR:HIR:NDAR:LAR:MAR:HAR:ND"
+
+var _V2Metric_index = [...]uint8{0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 67, 70, 75, 78, 81, 86, 91, 95, 99, 104, 109, 114, 118, 123, 128, 133, 139, 145, 150, 156, 160, 164, 168, 172, 177, 181, 185, 189, 194, 198, 202, 206, 211, 215, 219, 223, 228}
+
+func (i V2Metric) String() string {
+ if i >= V2Metric(len(_V2Metric_index)-1) {
+ return "V2Metric(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _V2Metric_name[_V2Metric_index[i]:_V2Metric_index[i+1]]
+}