Documentation
¶
Index ¶
- func New(s fs.Service) http.Handler
- type BucketInfo
- type BucketsWrapper
- type CompleteMultipartUploadResult
- type CompleteMultipartUploadXML
- type CompletedPartXML
- type DeleteError
- type DeleteObjectsRequest
- type DeleteObjectsResult
- type DeletedObject
- type Error
- type InitiateMultipartUploadResult
- type ListAllMyBucketsResult
- type ListBucketResult
- type ObjectInfo
- type ObjectToDelete
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BucketInfo ¶
BucketInfo is the XML representation of a bucket.
type BucketsWrapper ¶
type BucketsWrapper struct {
Buckets []BucketInfo `xml:"Bucket"`
}
BucketsWrapper wraps the list of buckets.
type CompleteMultipartUploadResult ¶ added in v0.0.4
type CompleteMultipartUploadResult struct {
XMLName xml.Name `xml:"CompleteMultipartUploadResult"`
Xmlns string `xml:"xmlns,attr"`
Location string `xml:"Location"`
Bucket string `xml:"Bucket"`
Key string `xml:"Key"`
ETag string `xml:"ETag"`
}
CompleteMultipartUploadResult represents the response for completing multipart upload.
type CompleteMultipartUploadXML ¶ added in v0.0.4
type CompleteMultipartUploadXML struct {
XMLName xml.Name `xml:"CompleteMultipartUpload"`
Parts []CompletedPartXML `xml:"Part"`
}
CompleteMultipartUploadXML represents the XML request body for completing multipart upload.
type CompletedPartXML ¶ added in v0.0.4
CompletedPartXML represents a part in the completion request.
type DeleteError ¶ added in v0.0.5
type DeleteError struct {
Key string `xml:"Key"`
Code string `xml:"Code"`
Message string `xml:"Message"`
VersionId string `xml:"VersionId,omitempty"`
}
DeleteError represents an error deleting an object.
type DeleteObjectsRequest ¶ added in v0.0.5
type DeleteObjectsRequest struct {
XMLName xml.Name `xml:"Delete"`
Objects []ObjectToDelete `xml:"Object"`
Quiet bool `xml:"Quiet"`
}
DeleteObjectsRequest represents the XML request body for deleting multiple objects.
type DeleteObjectsResult ¶ added in v0.0.5
type DeleteObjectsResult struct {
XMLName xml.Name `xml:"DeleteResult"`
Xmlns string `xml:"xmlns,attr"`
Deleted []DeletedObject `xml:"Deleted,omitempty"`
Errors []DeleteError `xml:"Error,omitempty"`
}
DeleteObjectsResult represents the response for deleting multiple objects.
type DeletedObject ¶ added in v0.0.5
type DeletedObject struct {
Key string `xml:"Key"`
VersionId string `xml:"VersionId,omitempty"`
DeleteMarker bool `xml:"DeleteMarker,omitempty"`
DeleteMarkerVersionId string `xml:"DeleteMarkerVersionId,omitempty"`
}
DeletedObject represents a successfully deleted object.
type InitiateMultipartUploadResult ¶ added in v0.0.4
type InitiateMultipartUploadResult struct {
XMLName xml.Name `xml:"InitiateMultipartUploadResult"`
Xmlns string `xml:"xmlns,attr"`
Bucket string `xml:"Bucket"`
Key string `xml:"Key"`
UploadID string `xml:"UploadId"`
}
InitiateMultipartUploadResult represents the response for initiating multipart upload.
type ListAllMyBucketsResult ¶
type ListAllMyBucketsResult struct {
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListAllMyBucketsResult"`
Buckets BucketsWrapper `xml:"Buckets"`
}
ListAllMyBucketsResult is the XML response for listing buckets.
type ListBucketResult ¶
type ListBucketResult struct {
XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListBucketResult"`
Name string `xml:"Name"`
Contents []ObjectInfo `xml:"Contents"`
}
ListBucketResult is the XML response for listing objects in a bucket.
type ObjectInfo ¶
type ObjectInfo struct {
Key string `xml:"Key"`
Size int64 `xml:"Size"`
LastModified time.Time `xml:"LastModified"`
ETag string `xml:"ETag,omitempty"`
}
ObjectInfo is the XML representation of an object.
type ObjectToDelete ¶ added in v0.0.5
ObjectToDelete represents an object to be deleted.