minio/cmd/apierrorcode_string.go

300 lines
18 KiB
Go
Raw Normal View History

2021-03-31 12:30:52 -04:00
// Code generated by "stringer -type=APIErrorCode -trimprefix=Err api-errors.go"; DO NOT EDIT.
package cmd
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[ErrNone-0]
_ = x[ErrAccessDenied-1]
_ = x[ErrBadDigest-2]
_ = x[ErrEntityTooSmall-3]
_ = x[ErrEntityTooLarge-4]
_ = x[ErrPolicyTooLarge-5]
_ = x[ErrIncompleteBody-6]
_ = x[ErrInternalError-7]
_ = x[ErrInvalidAccessKeyID-8]
_ = x[ErrInvalidBucketName-9]
_ = x[ErrInvalidDigest-10]
_ = x[ErrInvalidRange-11]
_ = x[ErrInvalidRangePartNumber-12]
_ = x[ErrInvalidCopyPartRange-13]
_ = x[ErrInvalidCopyPartRangeSource-14]
_ = x[ErrInvalidMaxKeys-15]
_ = x[ErrInvalidEncodingMethod-16]
_ = x[ErrInvalidMaxUploads-17]
_ = x[ErrInvalidMaxParts-18]
_ = x[ErrInvalidPartNumberMarker-19]
_ = x[ErrInvalidPartNumber-20]
_ = x[ErrInvalidRequestBody-21]
_ = x[ErrInvalidCopySource-22]
_ = x[ErrInvalidMetadataDirective-23]
_ = x[ErrInvalidCopyDest-24]
_ = x[ErrInvalidPolicyDocument-25]
_ = x[ErrInvalidObjectState-26]
_ = x[ErrMalformedXML-27]
_ = x[ErrMissingContentLength-28]
_ = x[ErrMissingContentMD5-29]
_ = x[ErrMissingRequestBodyError-30]
_ = x[ErrMissingSecurityHeader-31]
_ = x[ErrNoSuchBucket-32]
_ = x[ErrNoSuchBucketPolicy-33]
_ = x[ErrNoSuchBucketLifecycle-34]
_ = x[ErrNoSuchLifecycleConfiguration-35]
_ = x[ErrNoSuchBucketSSEConfig-36]
_ = x[ErrNoSuchCORSConfiguration-37]
_ = x[ErrNoSuchWebsiteConfiguration-38]
_ = x[ErrReplicationConfigurationNotFoundError-39]
_ = x[ErrRemoteDestinationNotFoundError-40]
_ = x[ErrReplicationDestinationMissingLock-41]
_ = x[ErrRemoteTargetNotFoundError-42]
_ = x[ErrReplicationRemoteConnectionError-43]
_ = x[ErrReplicationBandwidthLimitError-44]
_ = x[ErrBucketRemoteIdenticalToSource-45]
_ = x[ErrBucketRemoteAlreadyExists-46]
_ = x[ErrBucketRemoteLabelInUse-47]
_ = x[ErrBucketRemoteArnTypeInvalid-48]
_ = x[ErrBucketRemoteArnInvalid-49]
_ = x[ErrBucketRemoteRemoveDisallowed-50]
_ = x[ErrRemoteTargetNotVersionedError-51]
_ = x[ErrReplicationSourceNotVersionedError-52]
_ = x[ErrReplicationNeedsVersioningError-53]
_ = x[ErrReplicationBucketNeedsVersioningError-54]
_ = x[ErrReplicationNoMatchingRuleError-55]
_ = x[ErrObjectRestoreAlreadyInProgress-56]
_ = x[ErrNoSuchKey-57]
_ = x[ErrNoSuchUpload-58]
_ = x[ErrInvalidVersionID-59]
_ = x[ErrNoSuchVersion-60]
_ = x[ErrNotImplemented-61]
_ = x[ErrPreconditionFailed-62]
_ = x[ErrRequestTimeTooSkewed-63]
_ = x[ErrSignatureDoesNotMatch-64]
_ = x[ErrMethodNotAllowed-65]
_ = x[ErrInvalidPart-66]
_ = x[ErrInvalidPartOrder-67]
_ = x[ErrAuthorizationHeaderMalformed-68]
_ = x[ErrMalformedPOSTRequest-69]
_ = x[ErrPOSTFileRequired-70]
_ = x[ErrSignatureVersionNotSupported-71]
_ = x[ErrBucketNotEmpty-72]
_ = x[ErrAllAccessDisabled-73]
_ = x[ErrMalformedPolicy-74]
_ = x[ErrMissingFields-75]
_ = x[ErrMissingCredTag-76]
_ = x[ErrCredMalformed-77]
_ = x[ErrInvalidRegion-78]
_ = x[ErrInvalidServiceS3-79]
_ = x[ErrInvalidServiceSTS-80]
_ = x[ErrInvalidRequestVersion-81]
_ = x[ErrMissingSignTag-82]
_ = x[ErrMissingSignHeadersTag-83]
_ = x[ErrMalformedDate-84]
_ = x[ErrMalformedPresignedDate-85]
_ = x[ErrMalformedCredentialDate-86]
_ = x[ErrMalformedCredentialRegion-87]
_ = x[ErrMalformedExpires-88]
_ = x[ErrNegativeExpires-89]
_ = x[ErrAuthHeaderEmpty-90]
_ = x[ErrExpiredPresignRequest-91]
_ = x[ErrRequestNotReadyYet-92]
_ = x[ErrUnsignedHeaders-93]
_ = x[ErrMissingDateHeader-94]
_ = x[ErrInvalidQuerySignatureAlgo-95]
_ = x[ErrInvalidQueryParams-96]
_ = x[ErrBucketAlreadyOwnedByYou-97]
_ = x[ErrInvalidDuration-98]
_ = x[ErrBucketAlreadyExists-99]
_ = x[ErrMetadataTooLarge-100]
_ = x[ErrUnsupportedMetadata-101]
_ = x[ErrMaximumExpires-102]
_ = x[ErrSlowDown-103]
_ = x[ErrInvalidPrefixMarker-104]
_ = x[ErrBadRequest-105]
_ = x[ErrKeyTooLongError-106]
_ = x[ErrInvalidBucketObjectLockConfiguration-107]
_ = x[ErrObjectLockConfigurationNotFound-108]
_ = x[ErrObjectLockConfigurationNotAllowed-109]
_ = x[ErrNoSuchObjectLockConfiguration-110]
_ = x[ErrObjectLocked-111]
_ = x[ErrInvalidRetentionDate-112]
_ = x[ErrPastObjectLockRetainDate-113]
_ = x[ErrUnknownWORMModeDirective-114]
_ = x[ErrBucketTaggingNotFound-115]
_ = x[ErrObjectLockInvalidHeaders-116]
_ = x[ErrInvalidTagDirective-117]
_ = x[ErrInvalidEncryptionMethod-118]
_ = x[ErrInsecureSSECustomerRequest-119]
_ = x[ErrSSEMultipartEncrypted-120]
_ = x[ErrSSEEncryptedObject-121]
_ = x[ErrInvalidEncryptionParameters-122]
_ = x[ErrInvalidSSECustomerAlgorithm-123]
_ = x[ErrInvalidSSECustomerKey-124]
_ = x[ErrMissingSSECustomerKey-125]
_ = x[ErrMissingSSECustomerKeyMD5-126]
_ = x[ErrSSECustomerKeyMD5Mismatch-127]
_ = x[ErrInvalidSSECustomerParameters-128]
_ = x[ErrIncompatibleEncryptionMethod-129]
_ = x[ErrKMSNotConfigured-130]
_ = x[ErrNoAccessKey-131]
_ = x[ErrInvalidToken-132]
_ = x[ErrEventNotification-133]
_ = x[ErrARNNotification-134]
_ = x[ErrRegionNotification-135]
_ = x[ErrOverlappingFilterNotification-136]
_ = x[ErrFilterNameInvalid-137]
_ = x[ErrFilterNamePrefix-138]
_ = x[ErrFilterNameSuffix-139]
_ = x[ErrFilterValueInvalid-140]
_ = x[ErrOverlappingConfigs-141]
_ = x[ErrUnsupportedNotification-142]
_ = x[ErrContentSHA256Mismatch-143]
_ = x[ErrReadQuorum-144]
_ = x[ErrWriteQuorum-145]
_ = x[ErrParentIsObject-146]
_ = x[ErrStorageFull-147]
_ = x[ErrRequestBodyParse-148]
_ = x[ErrObjectExistsAsDirectory-149]
_ = x[ErrInvalidObjectName-150]
_ = x[ErrInvalidObjectNamePrefixSlash-151]
_ = x[ErrInvalidResourceName-152]
_ = x[ErrServerNotInitialized-153]
_ = x[ErrOperationTimedOut-154]
_ = x[ErrClientDisconnected-155]
_ = x[ErrOperationMaxedOut-156]
_ = x[ErrInvalidRequest-157]
_ = x[ErrTransitionStorageClassNotFoundError-158]
_ = x[ErrInvalidStorageClass-159]
_ = x[ErrBackendDown-160]
_ = x[ErrMalformedJSON-161]
_ = x[ErrAdminNoSuchUser-162]
_ = x[ErrAdminNoSuchGroup-163]
_ = x[ErrAdminGroupNotEmpty-164]
_ = x[ErrAdminNoSuchPolicy-165]
_ = x[ErrAdminInvalidArgument-166]
_ = x[ErrAdminInvalidAccessKey-167]
_ = x[ErrAdminInvalidSecretKey-168]
_ = x[ErrAdminConfigNoQuorum-169]
_ = x[ErrAdminConfigTooLarge-170]
_ = x[ErrAdminConfigBadJSON-171]
_ = x[ErrAdminConfigDuplicateKeys-172]
_ = x[ErrAdminCredentialsMismatch-173]
_ = x[ErrInsecureClientRequest-174]
_ = x[ErrObjectTampered-175]
_ = x[ErrAdminBucketQuotaExceeded-176]
_ = x[ErrAdminNoSuchQuotaConfiguration-177]
_ = x[ErrHealNotImplemented-178]
_ = x[ErrHealNoSuchProcess-179]
_ = x[ErrHealInvalidClientToken-180]
_ = x[ErrHealMissingBucket-181]
_ = x[ErrHealAlreadyRunning-182]
_ = x[ErrHealOverlappingPaths-183]
_ = x[ErrIncorrectContinuationToken-184]
_ = x[ErrEmptyRequestBody-185]
_ = x[ErrUnsupportedFunction-186]
_ = x[ErrInvalidExpressionType-187]
_ = x[ErrBusy-188]
_ = x[ErrUnauthorizedAccess-189]
_ = x[ErrExpressionTooLong-190]
_ = x[ErrIllegalSQLFunctionArgument-191]
_ = x[ErrInvalidKeyPath-192]
_ = x[ErrInvalidCompressionFormat-193]
_ = x[ErrInvalidFileHeaderInfo-194]
_ = x[ErrInvalidJSONType-195]
_ = x[ErrInvalidQuoteFields-196]
_ = x[ErrInvalidRequestParameter-197]
_ = x[ErrInvalidDataType-198]
_ = x[ErrInvalidTextEncoding-199]
_ = x[ErrInvalidDataSource-200]
_ = x[ErrInvalidTableAlias-201]
_ = x[ErrMissingRequiredParameter-202]
_ = x[ErrObjectSerializationConflict-203]
_ = x[ErrUnsupportedSQLOperation-204]
_ = x[ErrUnsupportedSQLStructure-205]
_ = x[ErrUnsupportedSyntax-206]
_ = x[ErrUnsupportedRangeHeader-207]
_ = x[ErrLexerInvalidChar-208]
_ = x[ErrLexerInvalidOperator-209]
_ = x[ErrLexerInvalidLiteral-210]
_ = x[ErrLexerInvalidIONLiteral-211]
_ = x[ErrParseExpectedDatePart-212]
_ = x[ErrParseExpectedKeyword-213]
_ = x[ErrParseExpectedTokenType-214]
_ = x[ErrParseExpected2TokenTypes-215]
_ = x[ErrParseExpectedNumber-216]
_ = x[ErrParseExpectedRightParenBuiltinFunctionCall-217]
_ = x[ErrParseExpectedTypeName-218]
_ = x[ErrParseExpectedWhenClause-219]
_ = x[ErrParseUnsupportedToken-220]
_ = x[ErrParseUnsupportedLiteralsGroupBy-221]
_ = x[ErrParseExpectedMember-222]
_ = x[ErrParseUnsupportedSelect-223]
_ = x[ErrParseUnsupportedCase-224]
_ = x[ErrParseUnsupportedCaseClause-225]
_ = x[ErrParseUnsupportedAlias-226]
_ = x[ErrParseUnsupportedSyntax-227]
_ = x[ErrParseUnknownOperator-228]
_ = x[ErrParseMissingIdentAfterAt-229]
_ = x[ErrParseUnexpectedOperator-230]
_ = x[ErrParseUnexpectedTerm-231]
_ = x[ErrParseUnexpectedToken-232]
_ = x[ErrParseUnexpectedKeyword-233]
_ = x[ErrParseExpectedExpression-234]
_ = x[ErrParseExpectedLeftParenAfterCast-235]
_ = x[ErrParseExpectedLeftParenValueConstructor-236]
_ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-237]
_ = x[ErrParseExpectedArgumentDelimiter-238]
_ = x[ErrParseCastArity-239]
_ = x[ErrParseInvalidTypeParam-240]
_ = x[ErrParseEmptySelect-241]
_ = x[ErrParseSelectMissingFrom-242]
_ = x[ErrParseExpectedIdentForGroupName-243]
_ = x[ErrParseExpectedIdentForAlias-244]
_ = x[ErrParseUnsupportedCallWithStar-245]
_ = x[ErrParseNonUnaryAgregateFunctionCall-246]
_ = x[ErrParseMalformedJoin-247]
_ = x[ErrParseExpectedIdentForAt-248]
_ = x[ErrParseAsteriskIsNotAloneInSelectList-249]
_ = x[ErrParseCannotMixSqbAndWildcardInSelectList-250]
_ = x[ErrParseInvalidContextForWildcardInSelectList-251]
_ = x[ErrIncorrectSQLFunctionArgumentType-252]
_ = x[ErrValueParseFailure-253]
_ = x[ErrEvaluatorInvalidArguments-254]
_ = x[ErrIntegerOverflow-255]
_ = x[ErrLikeInvalidInputs-256]
_ = x[ErrCastFailed-257]
_ = x[ErrInvalidCast-258]
_ = x[ErrEvaluatorInvalidTimestampFormatPattern-259]
_ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-260]
_ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-261]
_ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-262]
_ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-263]
_ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-264]
_ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-265]
_ = x[ErrEvaluatorBindingDoesNotExist-266]
_ = x[ErrMissingHeaders-267]
_ = x[ErrInvalidColumnIndex-268]
_ = x[ErrAdminConfigNotificationTargetsFailed-269]
_ = x[ErrAdminProfilerNotEnabled-270]
_ = x[ErrInvalidDecompressedSize-271]
_ = x[ErrAddUserInvalidArgument-272]
_ = x[ErrAdminAccountNotEligible-273]
_ = x[ErrAccountNotEligible-274]
_ = x[ErrAdminServiceAccountNotFound-275]
_ = x[ErrPostPolicyConditionInvalidFormat-276]
2021-03-31 12:30:52 -04:00
}
const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationNoMatchingRuleErrorObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledMalformedPolicyMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedCredentialRegionMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataMaximumExpiresSlowDownInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectiveInvalidEncryptionMethodInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchReadQuorumWriteQuorumParentIsObjectStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameServerNotInitializedOperationTimedOutClientDisconnectedOperationMaxedOutInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchGroupAdminGroupNotEmptyAdminNoSuchPolicyAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminConfigDuplicateKeysAdminCredentialsMismatchInsecureClientRequestObjectTamperedAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsuppor
2021-03-31 12:30:52 -04:00
var _APIErrorCode_index = [...]uint16{0, 4, 16, 25, 39, 53, 67, 81, 94, 112, 129, 142, 154, 176, 196, 222, 236, 257, 274, 289, 312, 329, 347, 364, 388, 403, 424, 442, 454, 474, 491, 514, 535, 547, 565, 586, 614, 635, 658, 684, 721, 751, 784, 809, 841, 871, 900, 925, 947, 973, 995, 1023, 1052, 1086, 1117, 1154, 1184, 1214, 1223, 1235, 1251, 1264, 1278, 1296, 1316, 1337, 1353, 1364, 1380, 1408, 1428, 1444, 1472, 1486, 1503, 1518, 1531, 1545, 1558, 1571, 1587, 1604, 1625, 1639, 1660, 1673, 1695, 1718, 1743, 1759, 1774, 1789, 1810, 1828, 1843, 1860, 1885, 1903, 1926, 1941, 1960, 1976, 1995, 2009, 2017, 2036, 2046, 2061, 2097, 2128, 2161, 2190, 2202, 2222, 2246, 2270, 2291, 2315, 2334, 2357, 2383, 2404, 2422, 2449, 2476, 2497, 2518, 2542, 2567, 2595, 2623, 2639, 2650, 2662, 2679, 2694, 2712, 2741, 2758, 2774, 2790, 2808, 2826, 2849, 2870, 2880, 2891, 2905, 2916, 2932, 2955, 2972, 3000, 3019, 3039, 3056, 3074, 3091, 3105, 3140, 3159, 3170, 3183, 3198, 3214, 3232, 3249, 3269, 3290, 3311, 3330, 3349, 3367, 3391, 3415, 3436, 3450, 3474, 3503, 3521, 3538, 3560, 3577, 3595, 3615, 3641, 3657, 3676, 3697, 3701, 3719, 3736, 3762, 3776, 3800, 3821, 3836, 3854, 3877, 3892, 3911, 3928, 3945, 3969, 3996, 4019, 4042, 4059, 4081, 4097, 4117, 4136, 4158, 4179, 4199, 4221, 4245, 4264, 4306, 4327, 4350, 4371, 4402, 4421, 4443, 4463, 4489, 4510, 4532, 4552, 4576, 4599, 4618, 4638, 4660, 4683, 4714, 4752, 4793, 4823, 4837, 4858, 4874, 4896, 4926, 4952, 4980, 5013, 5031, 5054, 5089, 5129, 5171, 5203, 5220, 5245, 5260, 5277, 5287, 5298, 5336, 5390, 5436, 5488, 5536, 5579, 5623, 5651, 5665, 5683, 5719, 5742, 5765, 5787, 5810, 5828, 5855, 5887}
2021-03-31 12:30:52 -04:00
func (i APIErrorCode) String() string {
if i < 0 || i >= APIErrorCode(len(_APIErrorCode_index)-1) {
return "APIErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _APIErrorCode_name[_APIErrorCode_index[i]:_APIErrorCode_index[i+1]]
}