backblaze

package
v0.0.0-...-f81bbf2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackblazeStorage

type BackblazeStorage struct {
	Bucket *backblaze.Bucket
	// contains filtered or unexported fields
}

BackblazeStorage stores data on a remote Backblaze.

func (*BackblazeStorage) AvailableSpace

func (backend *BackblazeStorage) AvailableSpace() (uint64, error)

AvailableSpace returns the free space on this backend.

func (*BackblazeStorage) Close

func (backend *BackblazeStorage) Close() error

Close the backend.

func (*BackblazeStorage) DeleteChunk

func (backend *BackblazeStorage) DeleteChunk(shasum string, part, totalParts uint) error

DeleteChunk deletes a single Chunk.

func (*BackblazeStorage) Description

func (backend *BackblazeStorage) Description() string

Description returns a user-friendly description for this backend.

func (*BackblazeStorage) InitRepository

func (backend *BackblazeStorage) InitRepository() error

InitRepository creates a new repository.

func (*BackblazeStorage) LoadChunk

func (backend *BackblazeStorage) LoadChunk(shasum string, part, totalParts uint) ([]byte, error)

LoadChunk loads a Chunk from backblaze.

func (*BackblazeStorage) LoadChunkIndex

func (backend *BackblazeStorage) LoadChunkIndex() ([]byte, error)

LoadChunkIndex reads the chunk-index.

func (*BackblazeStorage) LoadRepository

func (backend *BackblazeStorage) LoadRepository() ([]byte, error)

LoadRepository reads the metadata for a repository.

func (*BackblazeStorage) LoadSnapshot

func (backend *BackblazeStorage) LoadSnapshot(id string) ([]byte, error)

LoadSnapshot loads a snapshot.

func (*BackblazeStorage) Location

func (backend *BackblazeStorage) Location() string

Location returns the type and location of the repository.

func (*BackblazeStorage) NewBackend

func (*BackblazeStorage) NewBackend(URL url.URL) (knoxite.Backend, error)

NewBackend returns a BackblazeStorage backend.

func (*BackblazeStorage) Protocols

func (backend *BackblazeStorage) Protocols() []string

Protocols returns the Protocol Schemes supported by this backend.

func (*BackblazeStorage) SaveChunkIndex

func (backend *BackblazeStorage) SaveChunkIndex(data []byte) error

SaveChunkIndex stores the chunk-index.

func (*BackblazeStorage) SaveRepository

func (backend *BackblazeStorage) SaveRepository(data []byte) error

SaveRepository stores the metadata for a repository.

func (*BackblazeStorage) SaveSnapshot

func (backend *BackblazeStorage) SaveSnapshot(id string, data []byte) error

SaveSnapshot stores a snapshot.

func (*BackblazeStorage) StoreChunk

func (backend *BackblazeStorage) StoreChunk(shasum string, part, totalParts uint, data []byte) (size uint64, err error)

StoreChunk stores a single Chunk on backblaze.

Jump to

Keyboard shortcuts

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