s3

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 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) (b blob.Bucket, err error)

New returns blob.Bucket implementation if no error occurs.

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 WithReader added in v0.0.63

func WithReader(r reader.Reader) Option

WithReader returns the option to set the reader.

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.

func WithWriter added in v0.0.63

func WithWriter(w writer.Writer) Option

WithWriter returns the option to set the reader.

Directories

Path Synopsis
Package reader provides the reader functions for handling with s3.
Package reader provides the reader functions for handling with s3.
io
sdk
s3

Jump to

Keyboard shortcuts

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