minio/cmd/apierrorcode_string.go

299 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[ErrStorageFull-146]
_ = x[ErrRequestBodyParse-147]
_ = x[ErrObjectExistsAsDirectory-148]
_ = x[ErrInvalidObjectName-149]
_ = x[ErrInvalidObjectNamePrefixSlash-150]
_ = x[ErrInvalidResourceName-151]
_ = x[ErrServerNotInitialized-152]
_ = x[ErrOperationTimedOut-153]
_ = x[ErrClientDisconnected-154]
_ = x[ErrOperationMaxedOut-155]
_ = x[ErrInvalidRequest-156]
_ = x[ErrTransitionStorageClassNotFoundError-157]
_ = x[ErrInvalidStorageClass-158]
_ = x[ErrBackendDown-159]
_ = x[ErrMalformedJSON-160]
_ = x[ErrAdminNoSuchUser-161]
_ = x[ErrAdminNoSuchGroup-162]
_ = x[ErrAdminGroupNotEmpty-163]
_ = x[ErrAdminNoSuchPolicy-164]
_ = x[ErrAdminInvalidArgument-165]
_ = x[ErrAdminInvalidAccessKey-166]
_ = x[ErrAdminInvalidSecretKey-167]
_ = x[ErrAdminConfigNoQuorum-168]
_ = x[ErrAdminConfigTooLarge-169]
_ = x[ErrAdminConfigBadJSON-170]
_ = x[ErrAdminConfigDuplicateKeys-171]
_ = x[ErrAdminCredentialsMismatch-172]
_ = x[ErrInsecureClientRequest-173]
_ = x[ErrObjectTampered-174]
_ = x[ErrAdminBucketQuotaExceeded-175]
_ = x[ErrAdminNoSuchQuotaConfiguration-176]
_ = x[ErrHealNotImplemented-177]
_ = x[ErrHealNoSuchProcess-178]
_ = x[ErrHealInvalidClientToken-179]
_ = x[ErrHealMissingBucket-180]
_ = x[ErrHealAlreadyRunning-181]
_ = x[ErrHealOverlappingPaths-182]
_ = x[ErrIncorrectContinuationToken-183]
_ = x[ErrEmptyRequestBody-184]
_ = x[ErrUnsupportedFunction-185]
_ = x[ErrInvalidExpressionType-186]
_ = x[ErrBusy-187]
_ = x[ErrUnauthorizedAccess-188]
_ = x[ErrExpressionTooLong-189]
_ = x[ErrIllegalSQLFunctionArgument-190]
_ = x[ErrInvalidKeyPath-191]
_ = x[ErrInvalidCompressionFormat-192]
_ = x[ErrInvalidFileHeaderInfo-193]
_ = x[ErrInvalidJSONType-194]
_ = x[ErrInvalidQuoteFields-195]
_ = x[ErrInvalidRequestParameter-196]
_ = x[ErrInvalidDataType-197]
_ = x[ErrInvalidTextEncoding-198]
_ = x[ErrInvalidDataSource-199]
_ = x[ErrInvalidTableAlias-200]
_ = x[ErrMissingRequiredParameter-201]
_ = x[ErrObjectSerializationConflict-202]
_ = x[ErrUnsupportedSQLOperation-203]
_ = x[ErrUnsupportedSQLStructure-204]
_ = x[ErrUnsupportedSyntax-205]
_ = x[ErrUnsupportedRangeHeader-206]
_ = x[ErrLexerInvalidChar-207]
_ = x[ErrLexerInvalidOperator-208]
_ = x[ErrLexerInvalidLiteral-209]
_ = x[ErrLexerInvalidIONLiteral-210]
_ = x[ErrParseExpectedDatePart-211]
_ = x[ErrParseExpectedKeyword-212]
_ = x[ErrParseExpectedTokenType-213]
_ = x[ErrParseExpected2TokenTypes-214]
_ = x[ErrParseExpectedNumber-215]
_ = x[ErrParseExpectedRightParenBuiltinFunctionCall-216]
_ = x[ErrParseExpectedTypeName-217]
_ = x[ErrParseExpectedWhenClause-218]
_ = x[ErrParseUnsupportedToken-219]
_ = x[ErrParseUnsupportedLiteralsGroupBy-220]
_ = x[ErrParseExpectedMember-221]
_ = x[ErrParseUnsupportedSelect-222]
_ = x[ErrParseUnsupportedCase-223]
_ = x[ErrParseUnsupportedCaseClause-224]
_ = x[ErrParseUnsupportedAlias-225]
_ = x[ErrParseUnsupportedSyntax-226]
_ = x[ErrParseUnknownOperator-227]
_ = x[ErrParseMissingIdentAfterAt-228]
_ = x[ErrParseUnexpectedOperator-229]
_ = x[ErrParseUnexpectedTerm-230]
_ = x[ErrParseUnexpectedToken-231]
_ = x[ErrParseUnexpectedKeyword-232]
_ = x[ErrParseExpectedExpression-233]
_ = x[ErrParseExpectedLeftParenAfterCast-234]
_ = x[ErrParseExpectedLeftParenValueConstructor-235]
_ = x[ErrParseExpectedLeftParenBuiltinFunctionCall-236]
_ = x[ErrParseExpectedArgumentDelimiter-237]
_ = x[ErrParseCastArity-238]
_ = x[ErrParseInvalidTypeParam-239]
_ = x[ErrParseEmptySelect-240]
_ = x[ErrParseSelectMissingFrom-241]
_ = x[ErrParseExpectedIdentForGroupName-242]
_ = x[ErrParseExpectedIdentForAlias-243]
_ = x[ErrParseUnsupportedCallWithStar-244]
_ = x[ErrParseNonUnaryAgregateFunctionCall-245]
_ = x[ErrParseMalformedJoin-246]
_ = x[ErrParseExpectedIdentForAt-247]
_ = x[ErrParseAsteriskIsNotAloneInSelectList-248]
_ = x[ErrParseCannotMixSqbAndWildcardInSelectList-249]
_ = x[ErrParseInvalidContextForWildcardInSelectList-250]
_ = x[ErrIncorrectSQLFunctionArgumentType-251]
_ = x[ErrValueParseFailure-252]
_ = x[ErrEvaluatorInvalidArguments-253]
_ = x[ErrIntegerOverflow-254]
_ = x[ErrLikeInvalidInputs-255]
_ = x[ErrCastFailed-256]
_ = x[ErrInvalidCast-257]
_ = x[ErrEvaluatorInvalidTimestampFormatPattern-258]
_ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbolForParsing-259]
_ = x[ErrEvaluatorTimestampFormatPatternDuplicateFields-260]
_ = x[ErrEvaluatorTimestampFormatPatternHourClockAmPmMismatch-261]
_ = x[ErrEvaluatorUnterminatedTimestampFormatPatternToken-262]
_ = x[ErrEvaluatorInvalidTimestampFormatPatternToken-263]
_ = x[ErrEvaluatorInvalidTimestampFormatPatternSymbol-264]
_ = x[ErrEvaluatorBindingDoesNotExist-265]
_ = x[ErrMissingHeaders-266]
_ = x[ErrInvalidColumnIndex-267]
_ = x[ErrAdminConfigNotificationTargetsFailed-268]
_ = x[ErrAdminProfilerNotEnabled-269]
_ = x[ErrInvalidDecompressedSize-270]
_ = x[ErrAddUserInvalidArgument-271]
_ = x[ErrAdminAccountNotEligible-272]
_ = x[ErrAccountNotEligible-273]
_ = x[ErrAdminServiceAccountNotFound-274]
_ = x[ErrPostPolicyConditionInvalidFormat-275]
2021-03-31 12:30:52 -04:00
}
const _APIErrorCode_name = "NoneAccessDeniedBadDigestEntityTooSmallEntityTooLargePolicyTooLargeIncompleteBodyInternalErrorInvalidAccessKeyIDInvalidBucketNameInvalidDigestInvalidRangeInvalidRangePartNumberInvalidCopyPartRangeInvalidCopyPartRangeSourceInvalidMaxKeysInvalidEncodingMethodInvalidMaxUploadsInvalidMaxPartsInvalidPartNumberMarkerInvalidPartNumberInvalidRequestBodyInvalidCopySourceInvalidMetadataDirectiveInvalidCopyDestInvalidPolicyDocumentInvalidObjectStateMalformedXMLMissingContentLengthMissingContentMD5MissingRequestBodyErrorMissingSecurityHeaderNoSuchBucketNoSuchBucketPolicyNoSuchBucketLifecycleNoSuchLifecycleConfigurationNoSuchBucketSSEConfigNoSuchCORSConfigurationNoSuchWebsiteConfigurationReplicationConfigurationNotFoundErrorRemoteDestinationNotFoundErrorReplicationDestinationMissingLockRemoteTargetNotFoundErrorReplicationRemoteConnectionErrorReplicationBandwidthLimitErrorBucketRemoteIdenticalToSourceBucketRemoteAlreadyExistsBucketRemoteLabelInUseBucketRemoteArnTypeInvalidBucketRemoteArnInvalidBucketRemoteRemoveDisallowedRemoteTargetNotVersionedErrorReplicationSourceNotVersionedErrorReplicationNeedsVersioningErrorReplicationBucketNeedsVersioningErrorReplicationNoMatchingRuleErrorObjectRestoreAlreadyInProgressNoSuchKeyNoSuchUploadInvalidVersionIDNoSuchVersionNotImplementedPreconditionFailedRequestTimeTooSkewedSignatureDoesNotMatchMethodNotAllowedInvalidPartInvalidPartOrderAuthorizationHeaderMalformedMalformedPOSTRequestPOSTFileRequiredSignatureVersionNotSupportedBucketNotEmptyAllAccessDisabledMalformedPolicyMissingFieldsMissingCredTagCredMalformedInvalidRegionInvalidServiceS3InvalidServiceSTSInvalidRequestVersionMissingSignTagMissingSignHeadersTagMalformedDateMalformedPresignedDateMalformedCredentialDateMalformedCredentialRegionMalformedExpiresNegativeExpiresAuthHeaderEmptyExpiredPresignRequestRequestNotReadyYetUnsignedHeadersMissingDateHeaderInvalidQuerySignatureAlgoInvalidQueryParamsBucketAlreadyOwnedByYouInvalidDurationBucketAlreadyExistsMetadataTooLargeUnsupportedMetadataMaximumExpiresSlowDownInvalidPrefixMarkerBadRequestKeyTooLongErrorInvalidBucketObjectLockConfigurationObjectLockConfigurationNotFoundObjectLockConfigurationNotAllowedNoSuchObjectLockConfigurationObjectLockedInvalidRetentionDatePastObjectLockRetainDateUnknownWORMModeDirectiveBucketTaggingNotFoundObjectLockInvalidHeadersInvalidTagDirectiveInvalidEncryptionMethodInsecureSSECustomerRequestSSEMultipartEncryptedSSEEncryptedObjectInvalidEncryptionParametersInvalidSSECustomerAlgorithmInvalidSSECustomerKeyMissingSSECustomerKeyMissingSSECustomerKeyMD5SSECustomerKeyMD5MismatchInvalidSSECustomerParametersIncompatibleEncryptionMethodKMSNotConfiguredNoAccessKeyInvalidTokenEventNotificationARNNotificationRegionNotificationOverlappingFilterNotificationFilterNameInvalidFilterNamePrefixFilterNameSuffixFilterValueInvalidOverlappingConfigsUnsupportedNotificationContentSHA256MismatchReadQuorumWriteQuorumStorageFullRequestBodyParseObjectExistsAsDirectoryInvalidObjectNameInvalidObjectNamePrefixSlashInvalidResourceNameServerNotInitializedOperationTimedOutClientDisconnectedOperationMaxedOutInvalidRequestTransitionStorageClassNotFoundErrorInvalidStorageClassBackendDownMalformedJSONAdminNoSuchUserAdminNoSuchGroupAdminGroupNotEmptyAdminNoSuchPolicyAdminInvalidArgumentAdminInvalidAccessKeyAdminInvalidSecretKeyAdminConfigNoQuorumAdminConfigTooLargeAdminConfigBadJSONAdminConfigDuplicateKeysAdminCredentialsMismatchInsecureClientRequestObjectTamperedAdminBucketQuotaExceededAdminNoSuchQuotaConfigurationHealNotImplementedHealNoSuchProcessHealInvalidClientTokenHealMissingBucketHealAlreadyRunningHealOverlappingPathsIncorrectContinuationTokenEmptyRequestBodyUnsupportedFunctionInvalidExpressionTypeBusyUnauthorizedAccessExpressionTooLongIllegalSQLFunctionArgumentInvalidKeyPathInvalidCompressionFormatInvalidFileHeaderInfoInvalidJSONTypeInvalidQuoteFieldsInvalidRequestParameterInvalidDataTypeInvalidTextEncodingInvalidDataSourceInvalidTableAliasMissingRequiredParameterObjectSerializationConflictUnsupportedSQLOperationUnsupportedSQLStructureUnsupportedSyntaxUnsupportedRangeHeader
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, 2902, 2918, 2941, 2958, 2986, 3005, 3025, 3042, 3060, 3077, 3091, 3126, 3145, 3156, 3169, 3184, 3200, 3218, 3235, 3255, 3276, 3297, 3316, 3335, 3353, 3377, 3401, 3422, 3436, 3460, 3489, 3507, 3524, 3546, 3563, 3581, 3601, 3627, 3643, 3662, 3683, 3687, 3705, 3722, 3748, 3762, 3786, 3807, 3822, 3840, 3863, 3878, 3897, 3914, 3931, 3955, 3982, 4005, 4028, 4045, 4067, 4083, 4103, 4122, 4144, 4165, 4185, 4207, 4231, 4250, 4292, 4313, 4336, 4357, 4388, 4407, 4429, 4449, 4475, 4496, 4518, 4538, 4562, 4585, 4604, 4624, 4646, 4669, 4700, 4738, 4779, 4809, 4823, 4844, 4860, 4882, 4912, 4938, 4966, 4999, 5017, 5040, 5075, 5115, 5157, 5189, 5206, 5231, 5246, 5263, 5273, 5284, 5322, 5376, 5422, 5474, 5522, 5565, 5609, 5637, 5651, 5669, 5705, 5728, 5751, 5773, 5796, 5814, 5841, 5873}
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]]
}