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

@@ -116,3 +116,23 @@ type PartItem struct {
ETag string `xml:"ETag"`
Size int64 `xml:"Size"`
}
type DeleteObjectsRequest struct {
XMLName xml.Name `xml:"Delete"`
Objects []DeleteObjectIdentity `xml:"Object"`
Quiet bool `xml:"Quiet"`
}
type DeleteObjectIdentity struct {
Key string `xml:"Key"`
}
type DeleteObjectsResult struct {
XMLName xml.Name `xml:"DeleteResult"`
Xmlns string `xml:"xmlns,attr"`
Deleted []DeletedEntry `xml:"Deleted,omitempty"`
}
type DeletedEntry struct {
Key string `xml:"Key"`
}