s3x

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ErrCodeBucketNotEmpty = "BucketNotEmpty"

ErrCodeBucketNotEmpty indicates a failure to delete a non-empty bucket.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{ s3.S3 }

Client is an extended S3 client with additional methods for managing buckets.

func New

func New(cfg *aws.Config) *Client

New returns a new extended S3 client.

func (*Client) DeleteBucket

func (c *Client) DeleteBucket(name string) error

DeleteBucket empties and deletes the specified bucket.

func (*Client) EmptyBucket

func (c *Client) EmptyBucket(name string) error

EmptyBucket deletes all objects from the specified bucket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL