Documentation
¶
Index ¶
- type KeyValuePair
- type S3
- func (s *S3) BucketEmpty(ctx context.Context, bucket string) (bool, error)
- func (s *S3) BucketExists(ctx context.Context, bucketName string) (bool, error)
- func (s *S3) CreateBucket(ctx context.Context, input *s3.CreateBucketInput) (*s3.CreateBucketOutput, error)
- func (s *S3) DeleteEmptyBucket(ctx context.Context, input *s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error)
- func (s *S3) GetBucketTags(ctx context.Context, bucket string) ([]*s3.Tag, error)
- func (s *S3) ListBuckets(ctx context.Context, input *s3.ListBucketsInput) ([]*s3.Bucket, error)
- func (s *S3) TagBucket(ctx context.Context, bucket string, tags []*s3.Tag) error
- func (s *S3) UpdateBucketPolicy(ctx context.Context, input *s3.PutBucketPolicyInput) error
- func (s *S3) UpdateWebsiteConfig(ctx context.Context, input *s3.PutBucketWebsiteInput) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValuePair ¶
KeyValuePair maps a key to a value
type S3 ¶
S3 is a wrapper around the aws S3 service with some default config info
func (*S3) BucketEmpty ¶ added in v0.3.0
BucketEmpty lists the objects in a bucket with a max of 1, if there are any objects returned, we return false
func (*S3) BucketExists ¶ added in v0.2.0
BucketExists checks if a bucket exists
func (*S3) CreateBucket ¶ added in v0.2.0
func (s *S3) CreateBucket(ctx context.Context, input *s3.CreateBucketInput) (*s3.CreateBucketOutput, error)
CreateBucket handles checking if a bucket exists and creating it
func (*S3) DeleteEmptyBucket ¶ added in v0.2.0
func (s *S3) DeleteEmptyBucket(ctx context.Context, input *s3.DeleteBucketInput) (*s3.DeleteBucketOutput, error)
DeleteEmptyBucket handles deleting an empty bucket
func (*S3) GetBucketTags ¶ added in v0.2.0
GetBucketTags handles getting the tags for a bucket
func (*S3) ListBuckets ¶ added in v0.2.0
ListBuckets handles getting a list of buckets in an account
func (*S3) UpdateBucketPolicy ¶ added in v0.3.0
UpdateBucketPolicy sets a bucket access policy
func (*S3) UpdateWebsiteConfig ¶ added in v0.3.0
UpdateWebsiteConfig sets the configuration for an s3 website, defaults index suffix to index.html