s3

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package s3 handles interactions with pkg/aws/s3

Index

Constants

View Source
const (

	// ErrEmptyParameter is used when a required parameter is empty
	ErrEmptyParameter = "EmptyParameter"

	// ErrEmptyBody is used when an empty body has been found
	ErrEmptyBody = "EmptyBody"

	// ErrEmptyContentLength is used when no content length has been passed
	ErrEmptyContentLength = "EmptyContentLength"
)

Variables

This section is empty.

Functions

func UnmarshalGetObjectOutput

func UnmarshalGetObjectOutput(input *s3.GetObjectOutput) ([]byte, error)

UnmarshalGetObjectOutput extracts bytes from *s3.GetObjectOutput

Types

type S3

type S3 struct {
	*s3.S3
}

S3 embeds *s3.S3 and is used to call sns methods on high level

func New

func New(svc *aws.Session) (*S3, error)

New returns a *S3 given a *aws.Session

func (*S3) GetObject

func (svc *S3) GetObject(bucket, sourceImage string) ([]byte, error)

GetObject returns a []byte encoding the image

Jump to

Keyboard shortcuts

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