Documentation ¶
Overview ¶
Package reader provides the reader functions for handling with s3. This package is wrapping package of "https://github.com/aws/aws-sdk-go".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIO ¶ added in v0.0.58
type MockIO struct { NewReaderWithContextFunc func(ctx context.Context, r io.Reader) (io.Reader, error) NewReadCloserWithContextFunc func(ctx context.Context, r io.ReadCloser) (io.ReadCloser, error) }
MockIO represents mock for io.IO.
func (*MockIO) NewReadCloserWithContext ¶ added in v0.0.58
func (m *MockIO) NewReadCloserWithContext( ctx context.Context, r io.ReadCloser, ) (io.ReadCloser, error)
NewReadCloserWithContext calls NewReadCloserWithContextFunc.
type MockReadCloser ¶ added in v0.0.58
MockReadCloser represents mock for io.ReadCloser.
func (*MockReadCloser) Close ¶ added in v0.0.58
func (m *MockReadCloser) Close() error
Close calls CloseFunc.
type MockReader ¶ added in v0.0.63
type MockReader struct { OpenFunc func(ctx context.Context, key string) error ReadFunc func(p []byte) (n int, err error) CloseFunc func() error }
MockReader represents mock for Reader.
func (*MockReader) Close ¶ added in v0.0.63
func (m *MockReader) Close() error
Close calls CloseFunc.
type MockS3API ¶ added in v0.0.58
type MockS3API struct { s3iface.S3API GetObjectWithContextFunc func(aws.Context, *s3.GetObjectInput, ...request.Option) (*s3.GetObjectOutput, error) }
MockS3API represents mock for s3iface.MMockS3API.
func (*MockS3API) GetObjectWithContext ¶ added in v0.0.58
func (m *MockS3API) GetObjectWithContext( ctx aws.Context, in *s3.GetObjectInput, opts ...request.Option, ) (*s3.GetObjectOutput, error)
GetObjectWithContext calls GetObjectWithContextFunc.
type Option ¶
type Option func(r *reader)
Option represents the functional option for reader.
func WithBackoff ¶ added in v0.0.43
WithBackoff returns the option to set the backoffEnabled.
func WithBackoffOpts ¶ added in v0.0.43
WithBackoffOpts returns the option to set the backoffOpts.
func WithBucket ¶
WithBucket returns the option to set the bucket.
func WithErrGroup ¶ added in v0.0.41
WithErrGroup returns the option to set the eg.
func WithMaxChunkSize ¶ added in v0.0.43
WithMaxChunkSize returns the option to set the maxChunkSize.
func WithService ¶
WithService returns the option to set the service.