diff options
Diffstat (limited to 'cvss/v2metric_string.go')
-rw-r--r-- | cvss/v2metric_string.go | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/cvss/v2metric_string.go b/cvss/v2metric_string.go new file mode 100644 index 0000000..6ad2f93 --- /dev/null +++ b/cvss/v2metric_string.go @@ -0,0 +1,78 @@ +// 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] + _ = x[v2InvalidMetric-55] +} + +const _v2Metric_name = "AV:NAV:AAV:LAC:LAC:MAC: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:NDinvalid" + +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, 235} + +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]] +} |