s3

package
v0.0.0-...-b66b735 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	Client     *SDK.S3
	BucketName string
	Region     string
}

func New

func New(accessKeyId string, secretAccessKey string, region string, bucketName string) *S3

func (*S3) DeleteObjects

func (s3 *S3) DeleteObjects(keys []string) *SDK.DeleteObjectsOutput

Get the contents of an object.

func (*S3) GetObjectBytes

func (s3 *S3) GetObjectBytes(objectKey string) ([]byte, error)

Get the contents of an object.

func (*S3) KeyToUrl

func (s3 *S3) KeyToUrl(key string) string

func (*S3) ListAllObjects

func (s3 *S3) ListAllObjects(prefix string) []string

Get all objects.

func (*S3) ListObjects

func (s3 *S3) ListObjects(prefix string, pageSize int64, marker string) *SDK.ListObjectsOutput

Get a paginated list of objects.

func (*S3) PutObject

func (s3 *S3) PutObject(objectKey string, buffer []byte) *SDK.PutObjectOutput

Get a signed PUT request to upload files to S3.

func (*S3) SignedPutObjectRequestURL

func (s3 *S3) SignedPutObjectRequestURL(objectKey string, expiryTime time.Duration) string

Get a signed PUT request to upload files to S3.

Jump to

Keyboard shortcuts

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