b2

package
v0.0.0-...-d8f8204 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type B2

type B2 struct{}

B2 implements MinIO Gateway

func (*B2) Name

func (g *B2) Name() string

Name implements Gateway interface.

func (*B2) NewGatewayLayer

func (g *B2) NewGatewayLayer(creds auth.Credentials) (minio.ObjectLayer, error)

NewGatewayLayer returns b2 gateway layer, implements ObjectLayer interface to talk to B2 remote backend.

func (*B2) Production

func (g *B2) Production() bool

Production - Ready for production use.

type Reader

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

Reader - is a Reader wraps the hash.Reader which will emit out the sha1 hex digits at io.EOF. It also means that your overall content size is now original size + 40 bytes. Additionally this reader also verifies Hash encapsulated inside hash.Reader at io.EOF if the verification failed we return an error and do not send the content to server.

func (*Reader) Read

func (nb *Reader) Read(p []byte) (int, error)

func (*Reader) Size

func (nb *Reader) Size() int64

Size - Returns the total size of Reader.

Jump to

Keyboard shortcuts

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