b2

package
v0.0.0-...-77bdb4f Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("Unsupported method for BackBlaze B2")

ErrUnsupported declares error for unsupported methods

Functions

This section is empty.

Types

type B2

type B2 struct {
	*blazer.Client
	*blazer.Bucket
	// contains filtered or unexported fields
}

B2 driver

func New

func New(
	accountID, accountKey string,
	compression bool, extension, bucket string,
) (db *B2, err error)

New creates B2 driver

func (*B2) Close

func (db *B2) Close() (err error)

Close flushes data and closes files

func (*B2) PutFile

func (db *B2) PutFile(path string, stream binding.Stream) error

PutFile uploads file to the datastore

Jump to

Keyboard shortcuts

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