s3

package
v0.0.0-...-77bdb4f Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("Unsupported method for Amazone S3")

ErrUnsupported declares error for unsupported methods

Functions

This section is empty.

Types

type S3

type S3 struct {
	*s3svc.Bucket
	*s3svc.S3
	// contains filtered or unexported fields
}

S3 driver

func New

func New(
	accountRegion, accountID, accountKey, accountToken, extension, bucket string,
) (db *S3, err error)

New creates S3 driver

func (*S3) Close

func (db *S3) Close() (err error)

Close flushes data and closes files

func (*S3) PutFile

func (db *S3) PutFile(path string, stream binding.Stream) error

PutFile uploads file to the datastore

Jump to

Keyboard shortcuts

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