s3

package
v0.0.0-...-d6a7cd6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Error = errs.Class("s3 error")
)

Functions

func New

func New(ctx context.Context, u *url.URL) (backends.Backend, error)

Types

type Backend

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

func (*Backend) Close

func (b *Backend) Close() error

func (*Backend) Delete

func (b *Backend) Delete(ctx context.Context, path string) error

func (*Backend) Get

func (b *Backend) Get(ctx context.Context, path string, offset, length int64) (io.ReadCloser, error)

func (*Backend) List

func (b *Backend) List(ctx context.Context, prefix string, cb func(ctx context.Context, path string) error) error

func (*Backend) Put

func (b *Backend) Put(ctx context.Context, path string, data io.Reader) error

Jump to

Keyboard shortcuts

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