storage

package
v0.0.48 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: 10 Imported by: 0

Documentation

Overview

Package storage provides blob storage service

Package storage provides blob storage service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(b *bs) error

func WithBucketName

func WithBucketName(bn string) Option

func WithCompressAlgorithm

func WithCompressAlgorithm(al string) Option

func WithCompressionLevel

func WithCompressionLevel(level int) Option

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithFilename

func WithFilename(fn string) Option

func WithFilenameSuffix

func WithFilenameSuffix(sf string) Option

func WithS3Opts added in v0.0.41

func WithS3Opts(opts ...s3.Option) Option

func WithS3SessionOpts added in v0.0.41

func WithS3SessionOpts(opts ...session.Option) Option

func WithType

func WithType(bst string) Option

type Storage

type Storage interface {
	Start(ctx context.Context) (<-chan error, error)
	Reader(ctx context.Context) (io.ReadCloser, error)
	Writer(ctx context.Context) (io.WriteCloser, error)
}

func New

func New(opts ...Option) (Storage, error)

Jump to

Keyboard shortcuts

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