Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIErrorResponse ¶
getErrorResponse gets in standard error and resource value and provides a encodable populated response values
Types ¶
type APIError ¶
APIError structure
func GetAPIError ¶
GetAPIError provides API Error for input API error code.
type APIErrorResponse ¶
type APIErrorResponse struct { XMLName xml.Name `xml:"Error" json:"-"` Code string Message string Key string `xml:"Key,omitempty" json:"Key,omitempty"` BucketName string `xml:"BucketName,omitempty" json:"BucketName,omitempty"` Resource string Region string `xml:"Region,omitempty" json:"Region,omitempty"` RequestID string `xml:"RequestId" json:"RequestId"` HostID string `xml:"HostId" json:"HostId"` }
APIErrorResponse - error response format
type ErrorCode ¶
type ErrorCode int
ErrorCode type of error status.
const ( ErrNone ErrorCode = iota ErrAccessDenied ErrMethodNotAllowed ErrBucketNotEmpty ErrBucketAlreadyExists ErrBucketAlreadyOwnedByYou ErrNoSuchBucket ErrNoSuchKey ErrNoSuchUpload ErrInvalidBucketName ErrInvalidDigest ErrInvalidMaxKeys ErrInvalidMaxUploads ErrInvalidMaxParts ErrInvalidPartNumberMarker ErrInvalidPart ErrInvalidPartNumber ErrInternalError ErrInvalidCopyDest ErrInvalidCopySource ErrInvalidTag ErrAuthHeaderEmpty ErrSignatureVersionNotSupported ErrMalformedPOSTRequest ErrPOSTFileRequired ErrPostPolicyConditionInvalidFormat ErrEntityTooSmall ErrEntityTooLarge ErrMissingFields ErrMissingCredTag ErrCredMalformed ErrMalformedXML ErrMalformedDate ErrMalformedPresignedDate ErrMalformedCredentialDate ErrMissingSignHeadersTag ErrMissingSignTag ErrUnsignedHeaders ErrInvalidQueryParams ErrInvalidQuerySignatureAlgo ErrExpiredPresignRequest ErrMalformedExpires ErrNegativeExpires ErrMaximumExpires ErrSignatureDoesNotMatch ErrSignatureDateDoesNotMatch ErrSignatureTerminationStr ErrSignatureIncorrService ErrContentSHA256Mismatch ErrInvalidAccessKeyID ErrRequestNotReadyYet ErrMissingDateHeader ErrInvalidRequest ErrAuthNotSetup ErrNotImplemented ErrPreconditionFailed ErrInvalidObjectState ErrInvalidRange ErrInvalidURI ErrObjectLockConfigurationNotFound ErrNoSuchObjectLockConfiguration ErrInvalidBucketObjectLockConfiguration ErrObjectLockConfigurationNotAllowed ErrObjectLocked ErrPastObjectLockRetainDate ErrObjectLockInvalidRetentionPeriod ErrNoSuchBucketPolicy ErrBucketTaggingNotFound ErrObjectLockInvalidHeaders ErrRequestTimeTooSkewed ErrInvalidBucketAclWithObjectOwnership ErrBothCannedAndHeaderGrants ErrOwnershipControlsNotFound ErrAclNotSupported ErrMalformedACL ErrUnexpectedContent ErrMissingSecurityHeader ErrInvalidMetadataDirective ErrKeyTooLong // Non-AWS errors ErrExistingObjectIsDirectory ErrObjectParentIsFile ErrDirectoryObjectContainsData ErrQuotaExceeded )
Error codes, see full list at http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
Click to show internal directories.
Click to hide internal directories.