aws

package
v0.0.0-...-094c5f7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType = "binary/octet-stream"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsContentStore

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

AwsContentStore provides a simple file system based storage.

func NewAwsContentStore

func NewAwsContentStore(cfg *config.AwsConfig) (*AwsContentStore, error)

NewContentStore creates a ContentStore at the base directory.

func (*AwsContentStore) Exists

func (s *AwsContentStore) Exists(m *meta.Object) bool

func (*AwsContentStore) Get

func (s *AwsContentStore) Get(m *meta.Object) (io.ReadCloser, error)

func (*AwsContentStore) Put

func (s *AwsContentStore) Put(m *meta.Object, r io.Reader) error

TODO: maybe take write errors into account and buffer/resend to amazon?

func (*AwsContentStore) Verify

func (s *AwsContentStore) Verify(m *meta.Object) error

Jump to

Keyboard shortcuts

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