aws

package
v0.0.0-...-9d6c436 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCacheControl = aws.String("public, max-age=15552000")
	AclPublicRead       = aws.String("public-read")
	AclPrivate          = aws.String("private")
)

Functions

func NewS3

func NewS3(secretKey, accessToken, region, endpoint string) (instance.AwsS3, error)

Types

type AwsS3Instance

type AwsS3Instance struct {
	// contains filtered or unexported fields
}

func (*AwsS3Instance) DownloadFile

func (a *AwsS3Instance) DownloadFile(ctx context.Context, bucket, key string, file io.WriterAt) error

func (*AwsS3Instance) UploadFile

func (a *AwsS3Instance) UploadFile(ctx context.Context, bucket, key string, data io.Reader, contentType, acl, cacheControl *string) error

Jump to

Keyboard shortcuts

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