Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoxClient ¶
type BoxClient struct {
// contains filtered or unexported fields
}
func (*BoxClient) PostObject ¶
func (bc *BoxClient) PostObject(bucketName, objKey, date, encodedPolicy, region, filePath string, fields map[string]string) (*http.Response, error)
PostObject use form to upload object, fields should include all the necessary and optional fields except for x-amz-signature
type BucketCleaner ¶
type BucketCleaner struct {
// contains filtered or unexported fields
}
TODO modify print of result and error
func NewBucketCleaner ¶
func NewBucketCleaner(svc *s3.S3) *BucketCleaner
func (*BucketCleaner) DeleteAllBuckets ¶
func (c *BucketCleaner) DeleteAllBuckets(containedStr string) error
DeleteAllBuckets delete all buckets or all buckets contain a specified string of a user
func (*BucketCleaner) EmptyBucket ¶
func (c *BucketCleaner) EmptyBucket(bucketName string, deleteWorkerNum, objChanCap int, multiDel, deleteBucket bool) error
EmptyBucket is to empty objects in the bucket concurrently. objChanCap is the capacity of channel to store the objects from listObjs multiDel decides whether to delete multiple objects in a request
type Signer ¶
type Signer struct { Time time.Time Credentials *credentials.Credentials Debug aws.LogLevelType Logger aws.Logger Query url.Values // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.