s3

package
v2.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Backend

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

func NewS3Backend

func NewS3Backend(bucket string, region string, endpoint string, forcePathStyle bool) S3Backend

func (S3Backend) Delete

func (b S3Backend) Delete(key string) error

func (S3Backend) Exists

func (b S3Backend) Exists(key string) (bool, error)

func (S3Backend) Get

func (b S3Backend) Get(key string) (metadata backends.Metadata, r io.ReadCloser, err error)

func (S3Backend) Head

func (b S3Backend) Head(key string) (metadata backends.Metadata, err error)

func (S3Backend) List

func (b S3Backend) List() ([]string, error)

func (S3Backend) Put

func (b S3Backend) Put(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string) (m backends.Metadata, err error)

func (S3Backend) PutMetadata

func (b S3Backend) PutMetadata(key string, m backends.Metadata) (err error)

func (S3Backend) Size

func (b S3Backend) Size(key string) (int64, error)

Jump to

Keyboard shortcuts

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