Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBucket ¶
func DeleteBucket(ctx context.Context, svc DeleteBucketAPI, bucketName string) error
DeleteBucket deletes a S3 bucket.
Types ¶
type APIClient ¶ added in v0.0.13
type APIClient interface { interfaces.BucketCreator interfaces.BucketHeader interfaces.ObjectListerV2 interfaces.ObjectDeleter interfaces.BucketDeleter }
type Bucket ¶ added in v0.0.13
type Bucket struct {
// contains filtered or unexported fields
}
Bucket is an S3 bucket. It is used for integration tests.
type BucketPool ¶ added in v0.0.13
type BucketPool struct {
// contains filtered or unexported fields
}
BucketPool is a pool of buckets.
func NewBucketPool ¶ added in v0.0.13
func NewBucketPool(input *s3.CreateBucketInput, svc APIClient, size int) *BucketPool
func (*BucketPool) Cleanup ¶ added in v0.0.13
func (pool *BucketPool) Cleanup(ctx context.Context)
func (*BucketPool) Get ¶ added in v0.0.13
func (pool *BucketPool) Get(ctx context.Context) (*Bucket, error)
func (*BucketPool) Put ¶ added in v0.0.13
func (pool *BucketPool) Put(bucket *Bucket)
type DeleteBucketAPI ¶ added in v0.0.13
type DeleteBucketAPI interface { interfaces.BucketDeleter interfaces.ObjectListerV2 interfaces.ObjectDeleter }
Click to show internal directories.
Click to hide internal directories.