Documentation
¶
Index ¶
- func CreateBucket(client *s3.S3, bucketName string) error
- func DestroyBucket(client *s3.S3, bucketName string) error
- func DownloadBucketFile(sess *session.Session, bucketName string, objectKey string, downloadFP string) (string, error)
- func EmptyBucket(client *s3.S3, bucketName string) error
- func GetBuckets(client *s3.S3) ([]*s3.Bucket, error)
- func UploadBucketFile(sess *session.Session, bucketName string, uploadFP string) error
- type Connection
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
CreateBucket creates a bucket with the input `bucketName`.
func DestroyBucket ¶
DestroyBucket destroys a bucket with the input `bucketName`.
func DownloadBucketFile ¶
func DownloadBucketFile(sess *session.Session, bucketName string, objectKey string, downloadFP string) (string, error)
DownloadBucketFile downloads a file found at the file path specified with the input objectKey to the input bucketName.
func EmptyBucket ¶
EmptyBucket deletes everything found in the input `bucketName`.
func GetBuckets ¶
GetBuckets returns all s3 buckets that the input client has access to.
Types ¶
type Connection ¶
Connection contains all of the relevant information to maintain an S3 connection.
func CreateConnection ¶
func CreateConnection() Connection
CreateConnection creates a connection with DynamoDB and returns it.
Click to show internal directories.
Click to hide internal directories.