bucket

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ItemsInBucket

func ItemsInBucket(cfg aws.Config, bucket string) ([]string, error)

Types

type Bucket

type Bucket struct {
	Name *string
}

func NewBucket

func NewBucket(name ...string) *Bucket

func (*Bucket) Create

func (b *Bucket) Create(cfg aws.Config) (*s3.CreateBucketOutput, error)

func (*Bucket) Delete

func (b *Bucket) Delete(cfg aws.Config) *s3.DeleteBucketOutput

func (*Bucket) Download

func (b *Bucket) Download(cfg aws.Config, bucket, key, file string) (int64, error)

func (*Bucket) ItemsInBucket

func (b *Bucket) ItemsInBucket(cfg aws.Config, bucket string) (*s3.ListObjectsV2Output, error)

func (*Bucket) List

func (b *Bucket) List(cfg aws.Config) (*s3.ListBucketsOutput, error)

func (*Bucket) SetName

func (b *Bucket) SetName(name string)

func (*Bucket) Upload

func (b *Bucket) Upload(cfg aws.Config, bucket, key, fileToUpload string) (*manager.UploadOutput, error)

Jump to

Keyboard shortcuts

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