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: 7 Imported by: 0

Documentation

Overview

Package s3 handles interactions with aws-sdk-go/service/s3

Index

Constants

View Source
const (

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

Variables

This section is empty.

Functions

func UnmarshalIOReadCloser

func UnmarshalIOReadCloser(input io.ReadCloser) ([]byte, error)

UnmarshalIOReadCloser extracts []byte from input.Body

Types

type GetObjectInput

type GetObjectInput struct {
	*s3.GetObjectInput
}

GetObjectInput embeds *s3.GetObjectInput

func NewGetObjectInput

func NewGetObjectInput(bucket, source string) (*GetObjectInput, error)

NewGetObjectInput returns a new *GetObjectInput given a bucket and a source image

type GetObjectOutput

type GetObjectOutput struct {
	*s3.GetObjectOutput
}

GetObjectOutput embeds *s3.GetObjectOutput

type S3

type S3 struct {
	*s3.S3
}

S3 embeds *s3.S3 to be used to call New

func New

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

New returns a new *S3 embedding *s3.S3

func (*S3) S3GetObject

func (svc *S3) S3GetObject(input *GetObjectInput) (*GetObjectOutput, error)

S3GetObject retrieves an object from S3 given a GetObjectInput

Jump to

Keyboard shortcuts

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