s3

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewS3Backend

func NewS3Backend(params map[string]interface{}, ctx context.Context) (common.Backend, error)

Types

type S3Backend

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

func (*S3Backend) Delete

func (s *S3Backend) Delete(flake string, ctx context.Context) error

func (*S3Backend) DeleteKey

func (s *S3Backend) DeleteKey(name string, ctx context.Context) error

func (*S3Backend) Exists

func (s *S3Backend) Exists(flake string, ctx context.Context) error

func (*S3Backend) Get

func (s *S3Backend) Get(flake string, ctx context.Context) (*common.File, error)

func (*S3Backend) GetAllWith

func (s *S3Backend) GetAllWith(options common.BackendOption) []common.Backend

func (*S3Backend) GetFirstWith

func (s *S3Backend) GetFirstWith(options common.BackendOption) common.Backend

func (*S3Backend) GetOptions

func (s *S3Backend) GetOptions() common.BackendOption

func (*S3Backend) ListGlob

func (s *S3Backend) ListGlob(ctx context.Context, prefix string) ([]*common.File, error)

func (*S3Backend) Name

func (s *S3Backend) Name() string

func (*S3Backend) PingFile

func (s *S3Backend) PingFile(name string, ctx context.Context) (bool, interface{}, error)

func (*S3Backend) ReadBytes

func (s *S3Backend) ReadBytes(name string, ctx context.Context) ([]byte, error)

func (*S3Backend) ReadReader

func (s *S3Backend) ReadReader(name string, ctx context.Context) (io.ReadCloser, error)

func (*S3Backend) RunGC

func (s *S3Backend) RunGC(ctx context.Context) ([]common.File, error)

func (*S3Backend) Upload

func (s *S3Backend) Upload(flake string, file *common.File, ctx context.Context) error

func (*S3Backend) WriteBytes

func (s *S3Backend) WriteBytes(name string, data []byte, ctx context.Context) error

func (*S3Backend) WriteReader

func (s *S3Backend) WriteReader(name string, data io.ReadSeeker, ctx context.Context) error

Jump to

Keyboard shortcuts

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