Documentation ¶ Index ¶ type S3Client func NewS3Client(config *aws.Config) *S3Client func (s *S3Client) ChangeRegion(region string) func (s *S3Client) Download(bucket, key string) (string, error) func (s *S3Client) Upload(bucket, key string, content io.Reader) error type S3ClientI Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type S3Client ¶ type S3Client struct { Uploader *s3manager.Uploader Downloader *s3manager.Downloader Config *aws.Config } func NewS3Client ¶ func NewS3Client(config *aws.Config) *S3Client func (*S3Client) ChangeRegion ¶ func (s *S3Client) ChangeRegion(region string) func (*S3Client) Download ¶ func (s *S3Client) Download(bucket, key string) (string, error) func (*S3Client) Upload ¶ func (s *S3Client) Upload(bucket, key string, content io.Reader) error type S3ClientI ¶ type S3ClientI interface { Upload(bucket, key string, content io.Reader) error Download(bucket, key string) (string, error) ChangeRegion(region string) } Source Files ¶ View all Source files s3.go Click to show internal directories. Click to hide internal directories.