writers

package
v0.0.0-...-7638244 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Uploader

type S3Uploader interface {
	//Upload
	Upload(input *s3manager.UploadInput, options ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
}

S3Uploader uploads to underlying backend

type S3Writer

type S3Writer struct {
	// contains filtered or unexported fields
}

S3Writer uploads objects to S3

func NewS3Writer

func NewS3Writer(region, bucket string, concurrency int) (*S3Writer, error)

NewS3Writer initializes an S3Writer

func (*S3Writer) Write

func (w *S3Writer) Write(key key.Key, val []byte) error

Write writes creates object of S3 bucket prefix key in S3Writer bucket with value val

type Writer

type Writer interface {
	Write(key key.Key, value []byte) error
}

func NewNoop

func NewNoop() Writer

NewNoop ...

Jump to

Keyboard shortcuts

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