aws_client

package
v0.0.0-...-48dc23e Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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)
}

Jump to

Keyboard shortcuts

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