requests

package
v0.0.0-...-c0cc0bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0, MIT Imports: 24 Imported by: 0

Documentation

Index

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 ParseLocation(r *http.Request, input interface{}, supports fields) (err error)

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 ParseXMLBody(r *http.Request, input interface{}) (err error)

func ValidateBucketACL

func ValidateBucketACL(acl *string) (val string, err error)

func ValidateBucketName

func ValidateBucketName(bucketName *string) (val string, err error)

func ValidateChecksumSHA256

func ValidateChecksumSHA256(checksumSHA256 *string) (val string, err error)

func ValidateCompletedMultipartUpload

func ValidateCompletedMultipartUpload(upload *s3.CompletedMultipartUpload) (val object.CompletedParts, err error)

func ValidateContentEncoding

func ValidateContentEncoding(contentEncoding *string) (val string, err error)

func ValidateContentLength

func ValidateContentLength(contentLength *int64, max int64) (val int64, err error)

func ValidateContentMD5

func ValidateContentMD5(contentMD5 *string) (val string, err error)

func ValidateContentType

func ValidateContentType(contentType *string) (val string, err error)

func ValidateContinuationToken

func ValidateContinuationToken(continuationToken *string) (val string, err error)

func ValidateCopySource

func ValidateCopySource(copySource *string) (val1, val2 string, err error)

func ValidateCreateBucketConfiguration

func ValidateCreateBucketConfiguration(configuration *s3.CreateBucketConfiguration) (val string, err error)

func ValidateDelimiter

func ValidateDelimiter(delimiter *string) (val string, err error)

func ValidateEncodingType

func ValidateEncodingType(encodingType *string) (val string, err error)

func ValidateExpires

func ValidateExpires(expires *time.Time) (val time.Time, err error)

func ValidateFetchOwner

func ValidateFetchOwner(fetchOwner *bool) (val bool, err error)

func ValidateMarker

func ValidateMarker(marker *string) (val string, err error)

func ValidateMarkerAndPrefixCombination

func ValidateMarkerAndPrefixCombination(marker, prefix string) (err error)

func ValidateMaxKeys

func ValidateMaxKeys(maxKeys *int64) (val int64, err error)

func ValidateMetadataDirective

func ValidateMetadataDirective(metadataDirective *string) (val bool, err error)

func ValidateObjectName

func ValidateObjectName(objectName *string) (val string, err error)

func ValidateObjectsDelete

func ValidateObjectsDelete(delete *s3.Delete) (vals []*object.ToDeleteObject, quite bool, err error)

func ValidatePartNumber

func ValidatePartNumber(partNumber *int64) (val int64, err error)

func ValidatePrefix

func ValidatePrefix(prefix *string) (val string, err error)

func ValidateStartAfter

func ValidateStartAfter(startAfter *string) (val string, err error)

func ValidateUploadId

func ValidateUploadId(uploadId *string) (val string, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL