s3

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RandomKey       = ""
	DefaultPartSize = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	URL             string
	Region          string
	Bucket          string
	Prefix          string
	UsePath         bool
	PartSize        int
	AccessKeyID     string
	SecretAccessKey string
}

type Provider

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

func Configure

func Configure(e Endpoint) (Provider, error)

func (Provider) Download

func (p Provider) Download(path string) (provider.Downloader, error)

func (Provider) Expunge

func (p Provider) Expunge(path string) error

func (Provider) Upload

func (p Provider) Upload(hint string) (provider.Uploader, error)

type Uploader

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

func (*Uploader) Cancel

func (out *Uploader) Cancel() error

func (*Uploader) Close

func (out *Uploader) Close() error

func (*Uploader) Path

func (out *Uploader) Path() string

func (*Uploader) Write

func (out *Uploader) Write(b []byte) (int, error)

func (*Uploader) WroteCompressed

func (out *Uploader) WroteCompressed() int64

func (*Uploader) WroteUncompressed

func (out *Uploader) WroteUncompressed() int64

Jump to

Keyboard shortcuts

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