writer

package
v0.0.56 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(w *writer) error

Option represents the functional option for writer.

func WithBucket

func WithBucket(bucket string) Option

WithBucket returns the option to set bucket for writer.

func WithContentType added in v0.0.43

func WithContentType(ct string) Option

WithContentType returns the option to set ct for writer.

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

WithErrGroup returns the option to set eg for writer.

func WithKey

func WithKey(key string) Option

WithKey returns the option to set key for writer.

func WithMaxPartSize

func WithMaxPartSize(max int64) Option

WithMaxPartSize returns the option to set max for writer.

func WithService

func WithService(s *s3.S3) Option

WithService returns the option to set s for writer.

type Writer

type Writer interface {
	Open(ctx context.Context) error
	io.WriteCloser
}

func New

func New(opts ...Option) Writer

Jump to

Keyboard shortcuts

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