Documentation ¶
Index ¶
- Variables
- func ParseAbortMultipartUploadRequest(r *http.Request) (args *object.AbortMultipartUploadArgs, err error)
- func ParseCompleteMultipartUploadRequest(r *http.Request) (args *object.CompleteMultipartUploadArgs, err error)
- func ParseCopyObjectRequest(r *http.Request) (args *object.CopyObjectArgs, err error)
- func ParseCreateBucketRequest(r *http.Request) (args *object.CreateBucketArgs, err error)
- func ParseCreateMultipartUploadRequest(r *http.Request) (args *object.CreateMultipartUploadArgs, err error)
- func ParseDeleteBucketRequest(r *http.Request) (args *object.DeleteBucketArgs, err error)
- func ParseDeleteObjectRequest(r *http.Request) (args *object.DeleteObjectArgs, err error)
- func ParseDeleteObjectsRequest(r *http.Request) (args *object.DeleteObjectsArgs, err error)
- func ParseGetBucketACLRequest(r *http.Request) (args *object.GetBucketACLArgs, err error)
- func ParseGetObjectACLRequest(r *http.Request) (args *object.GetObjectACLArgs, err error)
- func ParseGetObjectRequest(r *http.Request) (args *object.GetObjectArgs, err error)
- func ParseHeadBucketRequest(r *http.Request) (args *object.GetBucketArgs, err error)
- func ParseHeadObjectRequest(r *http.Request) (args *object.GetObjectArgs, err error)
- func ParseListBucketsRequest(r *http.Request) (args *object.ListBucketsArgs, err error)
- func ParseListObjectsRequest(r *http.Request) (args *object.ListObjectsArgs, err error)
- func ParseListObjectsV2Request(r *http.Request) (args *object.ListObjectsV2Args, err error)
- func ParseLocation(r *http.Request, input interface{}, supports fields) (err error)
- func ParsePutBucketAclRequest(r *http.Request) (args *object.PutBucketACLArgs, err error)
- func ParsePutObjectRequest(r *http.Request) (args *object.PutObjectArgs, err error)
- func ParseUploadPartRequest(r *http.Request) (args *object.UploadPartArgs, err error)
- func ParseXMLBody(r *http.Request, input interface{}) (err error)
- func ValidateBucketACL(acl *string) (val string, err error)
- func ValidateBucketName(bucketName *string) (val string, err error)
- func ValidateChecksumSHA256(checksumSHA256 *string) (val string, err error)
- func ValidateCompletedMultipartUpload(upload *s3.CompletedMultipartUpload) (val object.CompletedParts, err error)
- func ValidateContentEncoding(contentEncoding *string) (val string, err error)
- func ValidateContentLength(contentLength *int64, max int64) (val int64, err error)
- func ValidateContentMD5(contentMD5 *string) (val string, err error)
- func ValidateContentType(contentType *string) (val string, err error)
- func ValidateContinuationToken(continuationToken *string) (val string, err error)
- func ValidateCopySource(copySource *string) (val1, val2 string, err error)
- func ValidateCreateBucketConfiguration(configuration *s3.CreateBucketConfiguration) (val string, err error)
- func ValidateDelimiter(delimiter *string) (val string, err error)
- func ValidateEncodingType(encodingType *string) (val string, err error)
- func ValidateExpires(expires *time.Time) (val time.Time, err error)
- func ValidateFetchOwner(fetchOwner *bool) (val bool, err error)
- func ValidateMarker(marker *string) (val string, err error)
- func ValidateMarkerAndPrefixCombination(marker, prefix string) (err error)
- func ValidateMaxKeys(maxKeys *int64) (val int64, err error)
- func ValidateMetadataDirective(metadataDirective *string) (val bool, err error)
- func ValidateObjectName(objectName *string) (val string, err error)
- func ValidateObjectsDelete(delete *s3.Delete) (vals []*object.ToDeleteObject, quite bool, err error)
- func ValidatePartNumber(partNumber *int64) (val int64, err error)
- func ValidatePrefix(prefix *string) (val string, err error)
- func ValidateStartAfter(startAfter *string) (val string, err error)
- func ValidateUploadId(uploadId *string) (val string, err error)
- type ErrFailedDecodeXML
- type ErrFailedParseValue
- type ErrInvalidInputValue
- type ErrMissingRequiredParam
- type ErrPayloadNotSet
- type ErrTypeNotSet
- type ErrWithUnsupportedParam
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBucketNameInvalid = errors.New("the bucket name is invalid") ErrObjectNameInvalid = errors.New("the object name is invalid") ErrObjectNameTooLong = errors.New("the object name cannot be longer than 1024 characters") ErrObjectNamePrefixSlash = errors.New("the object name cannot start with slash") ErrRegionUnsupported = errors.New("the location is not supported by this server") ErrACLUnsupported = errors.New("the ACL is not supported by this server") ErrContentMd5Invalid = errors.New("the content md5 is invalid") ErrChecksumSha256Invalid = errors.New("the checksum-sha256 is invalid") ErrContentLengthMissing = errors.New("the content-length is missing") ErrContentLengthTooSmall = errors.New("the content-length is too small") ErrContentLengthTooLarge = errors.New("the content-length is too large") ErrCopySrcInvalid = errors.New("the copy-source is invalid") ErrCopyDestInvalid = errors.New("the copy-destination is invalid") ErrDeletesCountInvalid = errors.New("the deletes-count is invalid") ErrMaxKeysInvalid = errors.New("the max-keys is invalid") ErrEncodingTypeInvalid = errors.New("the encoding-type is invalid") ErrPrefixInvalid = errors.New("the prefix is invalid") ErrMarkerInvalid = errors.New("the marker is invalid") ErrMarkerPrefixCombinationInvalid = errors.New("the marker-prefix combination is invalid") ErrContinuationTokenInvalid = errors.New("the continuation-token is invalid") ErrStartAfterInvalid = errors.New("the start-after is invalid") ErrPartNumberInvalid = errors.New("the part-number is invalid") ErrPartsCountInvalid = errors.New("the parts-count is invalid") ErrPartInvalid = errors.New("the part is invalid") ErrPartOrderInvalid = errors.New("the part-order is invalid") )
Functions ¶
func ParseAbortMultipartUploadRequest ¶
func ParseAbortMultipartUploadRequest(r *http.Request) (args *object.AbortMultipartUploadArgs, err error)
func ParseCompleteMultipartUploadRequest ¶
func ParseCompleteMultipartUploadRequest(r *http.Request) (args *object.CompleteMultipartUploadArgs, err error)
func ParseCopyObjectRequest ¶
func ParseCopyObjectRequest(r *http.Request) (args *object.CopyObjectArgs, err error)
func ParseCreateBucketRequest ¶
func ParseCreateBucketRequest(r *http.Request) (args *object.CreateBucketArgs, err error)
func ParseCreateMultipartUploadRequest ¶
func ParseCreateMultipartUploadRequest(r *http.Request) (args *object.CreateMultipartUploadArgs, err error)
func ParseDeleteBucketRequest ¶
func ParseDeleteBucketRequest(r *http.Request) (args *object.DeleteBucketArgs, err error)
func ParseDeleteObjectRequest ¶
func ParseDeleteObjectRequest(r *http.Request) (args *object.DeleteObjectArgs, err error)
func ParseDeleteObjectsRequest ¶
func ParseDeleteObjectsRequest(r *http.Request) (args *object.DeleteObjectsArgs, err error)
func ParseGetBucketACLRequest ¶
func ParseGetBucketACLRequest(r *http.Request) (args *object.GetBucketACLArgs, err error)
func ParseGetObjectACLRequest ¶
func ParseGetObjectACLRequest(r *http.Request) (args *object.GetObjectACLArgs, err error)
func ParseGetObjectRequest ¶
func ParseGetObjectRequest(r *http.Request) (args *object.GetObjectArgs, err error)
func ParseHeadBucketRequest ¶
func ParseHeadBucketRequest(r *http.Request) (args *object.GetBucketArgs, err error)
func ParseHeadObjectRequest ¶
func ParseHeadObjectRequest(r *http.Request) (args *object.GetObjectArgs, err error)
func ParseListBucketsRequest ¶
func ParseListBucketsRequest(r *http.Request) (args *object.ListBucketsArgs, err error)
func ParseListObjectsRequest ¶
func ParseListObjectsRequest(r *http.Request) (args *object.ListObjectsArgs, err error)
func ParseListObjectsV2Request ¶
func ParseListObjectsV2Request(r *http.Request) (args *object.ListObjectsV2Args, err error)
func ParseLocation ¶
func ParsePutBucketAclRequest ¶
func ParsePutBucketAclRequest(r *http.Request) (args *object.PutBucketACLArgs, err error)
func ParsePutObjectRequest ¶
func ParsePutObjectRequest(r *http.Request) (args *object.PutObjectArgs, err error)
func ParseUploadPartRequest ¶
func ParseUploadPartRequest(r *http.Request) (args *object.UploadPartArgs, err error)
func ParseXMLBody ¶
func ValidateBucketACL ¶
func ValidateBucketName ¶
func ValidateChecksumSHA256 ¶
func ValidateCompletedMultipartUpload ¶
func ValidateCompletedMultipartUpload(upload *s3.CompletedMultipartUpload) (val object.CompletedParts, err error)
func ValidateContentEncoding ¶
func ValidateContentLength ¶
func ValidateContentMD5 ¶
func ValidateContentType ¶
func ValidateCopySource ¶
func ValidateCreateBucketConfiguration ¶
func ValidateCreateBucketConfiguration(configuration *s3.CreateBucketConfiguration) (val string, err error)
func ValidateDelimiter ¶
func ValidateEncodingType ¶
func ValidateFetchOwner ¶
func ValidateMarker ¶
func ValidateMaxKeys ¶
func ValidateObjectName ¶
func ValidateObjectsDelete ¶
func ValidatePartNumber ¶
func ValidatePrefix ¶
func ValidateStartAfter ¶
func ValidateUploadId ¶
Types ¶
type ErrFailedDecodeXML ¶
type ErrFailedDecodeXML struct {
// contains filtered or unexported fields
}
ErrFailedDecodeXML .
func (ErrFailedDecodeXML) Error ¶
func (err ErrFailedDecodeXML) Error() string
type ErrFailedParseValue ¶
type ErrFailedParseValue struct {
// contains filtered or unexported fields
}
ErrFailedParseValue .
func (ErrFailedParseValue) Error ¶
func (err ErrFailedParseValue) Error() string
func (ErrFailedParseValue) Name ¶
func (err ErrFailedParseValue) Name() string
type ErrInvalidInputValue ¶
type ErrInvalidInputValue struct {
// contains filtered or unexported fields
}
ErrInvalidInputValue .
func (ErrInvalidInputValue) Error ¶
func (err ErrInvalidInputValue) Error() string
type ErrMissingRequiredParam ¶
type ErrMissingRequiredParam struct {
// contains filtered or unexported fields
}
ErrMissingRequiredParam .
func (ErrMissingRequiredParam) Error ¶
func (err ErrMissingRequiredParam) Error() string
type ErrPayloadNotSet ¶
type ErrPayloadNotSet struct {
// contains filtered or unexported fields
}
ErrPayloadNotSet .
func (ErrPayloadNotSet) Error ¶
func (err ErrPayloadNotSet) Error() string
type ErrTypeNotSet ¶
type ErrTypeNotSet struct {
// contains filtered or unexported fields
}
ErrTypeNotSet .
func (ErrTypeNotSet) Error ¶
func (err ErrTypeNotSet) Error() string
type ErrWithUnsupportedParam ¶
type ErrWithUnsupportedParam struct {
// contains filtered or unexported fields
}
ErrWithUnsupportedParam .
func (ErrWithUnsupportedParam) Error ¶
func (err ErrWithUnsupportedParam) Error() string
Click to show internal directories.
Click to hide internal directories.