Documentation ¶
Index ¶
- func New(opts ...Option) (b blob.Bucket, err error)
- type Option
- func WithBucket(bucket string) Option
- func WithErrGroup(eg errgroup.Group) Option
- func WithMaxChunkSize(size string) Option
- func WithMaxPartSize(size string) Option
- func WithReader(r reader.Reader) Option
- func WithReaderBackoff(enabled bool) Option
- func WithReaderBackoffOpts(opts ...backoff.Option) Option
- func WithSession(sess *session.Session) Option
- func WithWriter(w writer.Writer) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(c *client) error
Option represents the functional option for client.
func WithBucket ¶
WithBucket returns the option to set bucket.
func WithErrGroup ¶
WithErrGroup returns the option to set the eg.
func WithMaxChunkSize ¶ added in v0.0.43
WithMaxChunkSize returns the option to set maxChunkSize. The value is set when the value exceeds the s3manager.MinUploadPartSize(1024 * 1024 * 5).
func WithMaxPartSize ¶
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
WithReader returns the option to set the reader.
func WithReaderBackoff ¶ added in v0.0.43
WithReaderBackoff returns the option to set readerBackoffEnabled.
func WithReaderBackoffOpts ¶ added in v0.0.43
WithReaderBackoffOpts returns the option to set readerBackoffOpts.
func WithSession ¶
WithSession returns the option to set the session.
func WithWriter ¶ added in v0.0.63
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. |
sdk
|
|