s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: Apache-2.0 Imports: 6 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 {
	Storage string
	Client  *s3.S3
	Bucket  string
}

S3 is an AWS S3 implementation of the storage interface

func (*S3) GetChunk

func (s *S3) GetChunk(reader io.Reader) (*storage.Chunk, error)

GetChunk stores the contents of a reader and returns the built chunk

func (*S3) GetReadCloser

func (s *S3) GetReadCloser(chunk storage.Chunk) (io.ReadCloser, error)

GetReadCloser retrieves the contents of a chunk

func (*S3) Remove

func (s *S3) Remove(chunk storage.Chunk) error

Remove removes a chunk from the storage

func (*S3) Setup

func (s *S3) Setup() error

Setup sets up the storage

Jump to

Keyboard shortcuts

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