Documentation ¶
Index ¶
- func New(opts ...Option) (blob.Bucket, 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 WithReaderBackoff(enabled bool) Option
- func WithReaderBackoffOpts(opts ...backoff.Option) Option
- func WithSession(sess *session.Session) 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 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.
Click to show internal directories.
Click to hide internal directories.