writer

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 9 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)

func WithBucket

func WithBucket(bucket string) Option

func WithContentType added in v0.0.43

func WithContentType(ct string) Option

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithKey

func WithKey(key string) Option

func WithMaxPartSize

func WithMaxPartSize(max int64) Option

func WithService

func WithService(s *s3.S3) Option

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