store

package
v0.0.0-...-9af0977 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageStore

type ImageStore interface {
	GetReader(string, string) (io.ReadCloser, error)
	PutReader(string, string, io.Reader, int64, string) error
	Put(string, string, []byte, string) error
	Head(string, string) (*http.Response, error)
}

type S3ImageStore

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

func NewS3Store

func NewS3Store(conn *s3.S3) *S3ImageStore

func (*S3ImageStore) GetReader

func (s *S3ImageStore) GetReader(bucket, path string) (io.ReadCloser, error)

func (*S3ImageStore) Head

func (s *S3ImageStore) Head(bucket, path string) (*http.Response, error)

func (*S3ImageStore) Put

func (s *S3ImageStore) Put(bucket, path string, data []byte, content string) error

func (*S3ImageStore) PutReader

func (s *S3ImageStore) PutReader(bucket, path string, data io.Reader, length int64, content string) error

Jump to

Keyboard shortcuts

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