s3

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (blob.Bucket, error)

Types

type Option

type Option func(c *client) error

Option represents the functional option for client.

func WithBucket

func WithBucket(bucket string) Option

WithBucket returns the option to set bucket.

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

WithErrGroup returns the option to set the eg.

func WithMaxChunkSize added in v0.0.43

func WithMaxChunkSize(size string) Option

WithMaxChunkSize returns the option to set maxChunkSize. The value is set when the value exceeds the s3manager.MinUploadPartSize(1024 * 1024 * 5).

func WithMaxPartSize

func WithMaxPartSize(size string) Option

WithMaxPartSize returns the option to set maxPartSize. The value is set when the value exceeds the s3manager.MinUploadPartSize(1024 * 1024 * 5).

func WithReaderBackoff added in v0.0.43

func WithReaderBackoff(enabled bool) Option

WithReaderBackoff returns the option to set readerBackoffEnabled.

func WithReaderBackoffOpts added in v0.0.43

func WithReaderBackoffOpts(opts ...backoff.Option) Option

WithReaderBackoffOpts returns the option to set readerBackoffOpts.

func WithSession

func WithSession(sess *session.Session) Option

WithSession returns the option to set the session.

Directories

Path Synopsis
sdk
s3

Jump to

Keyboard shortcuts

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