s3iface

package module
v0.0.0-...-35eb5bb Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2012 License: MIT Imports: 9 Imported by: 0

README

Explanation for usage of this library can be extracted from the source using
godoc: <http://go.pkgdoc.org/github.com/hraban/s3iface>.

The licensing terms are described in the file LICENSE.

Documentation

Overview

Interfaces for objects that can model Amazon S3. Simplifies testing code that depends on S3 without needing a connection to AWS. Written to supplement the standard S3 package, "launchpad.net/goamz/s3".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	Del(path string) error
	DelBucket() error
	Get(path string) (data []byte, err error)
	GetReader(path string) (rc io.ReadCloser, err error)
	List(prefix, delim, marker string, max int) (result *goamzs3.ListResp, err error)
	Put(path string, data []byte, contType string, perm goamzs3.ACL) error
	PutBucket(perm goamzs3.ACL) error
	PutReader(path string, r io.Reader, length int64, contType string, perm goamzs3.ACL) error
	SignedURL(path string, expires time.Time) string
	URL(path string) string
}

type S3

type S3 interface {
	Bucket(name string) Bucket
}

func WrapFS

func WrapFS(dir string) S3

Use a directory as an S3 store. As (un)safe for concurrent use as the underlying filesystem.

func WrapS3

func WrapS3(s3 *goamzs3.S3) S3

Jump to

Keyboard shortcuts

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