diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 14:00:11 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 14:00:11 -0500 |
commit | e5ec1e716de43cf36bf99677b10ac0d50ca789b2 (patch) | |
tree | 8bcd7a4ce675c5c6cb9238d944c69317c50e79de /internal/cvss/v2metric_string.go | |
parent | 02469f18e832eb0a641cc1a5095726b66f56a479 (diff) | |
download | cvez-e5ec1e716de43cf36bf99677b10ac0d50ca789b2.tar.bz2 cvez-e5ec1e716de43cf36bf99677b10ac0d50ca789b2.zip |
internal/cvss: regen strings
Diffstat (limited to 'internal/cvss/v2metric_string.go')
-rw-r--r-- | internal/cvss/v2metric_string.go | 125 |
1 files changed, 63 insertions, 62 deletions
diff --git a/internal/cvss/v2metric_string.go b/internal/cvss/v2metric_string.go index 8191622..4981dbb 100644 --- a/internal/cvss/v2metric_string.go +++ b/internal/cvss/v2metric_string.go @@ -1,4 +1,4 @@ -// Code generated by "stringer -linecomment -type=V2Metric"; DO NOT EDIT. +// Code generated by "stringer -linecomment -type=v2Metric"; DO NOT EDIT. package cvss @@ -8,70 +8,71 @@ 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[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: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" +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: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} +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) + ")" +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]] + return _v2Metric_name[_v2Metric_index[i]:_v2Metric_index[i+1]] } |