Implemented bulk delete from bucket, AWS SigV4 framing problems solved.

This commit is contained in:
2026-02-22 15:32:04 +01:00
parent 111ce5b669
commit 5d41ec9e0a
6 changed files with 214 additions and 6 deletions

View File

@@ -41,6 +41,11 @@ var (
Code: "MalformedXML",
Message: "The XML you provided was not well-formed or did not validate against our published schema.",
}
s3ErrEntityTooSmall = s3APIError{
Status: http.StatusBadRequest,
Code: "EntityTooSmall",
Message: "Your proposed upload is smaller than the minimum allowed object size.",
}
s3ErrInternal = s3APIError{
Status: http.StatusInternalServerError,
Code: "InternalError",
@@ -98,6 +103,8 @@ func mapToS3Error(err error) s3APIError {
return s3ErrInvalidPartOrder
case errors.Is(err, service.ErrInvalidCompleteRequest):
return s3ErrMalformedXML
case errors.Is(err, service.ErrEntityTooSmall):
return s3ErrEntityTooSmall
default:
return s3ErrInternal
}