mirror of
https://github.com/ferdzo/fs.git
synced 2026-04-05 01:56:25 +00:00
Implemented bulk delete from bucket, AWS SigV4 framing problems solved.
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user