s3

package
v0.0.0-...-e9fe98c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2019 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider describes a new S3 storage provider.

func NewS3Provider

func NewS3Provider(region, key, secret, bucket string) *Provider

NewS3Provider is a convenience method to return a new *Provider instance.

func (Provider) CollectionRef

func (s3p Provider) CollectionRef() string

CollectionRef gets the bucket reference.

func (Provider) DownloadFile

func (s3p Provider) DownloadFile(reference, filename string) error

DownloadFile gets the file from an S3 bucket.

func (Provider) Kind

func (s3p Provider) Kind() string

Kind returns the provider kind.

func (Provider) UploadFile

func (s3p Provider) UploadFile(filename, reference string) error

UploadFile puts a file in the relevant bucket.

Jump to

Keyboard shortcuts

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