Documentation ¶
Index ¶
- type BackblazeStorage
- func (backend *BackblazeStorage) AvailableSpace() (uint64, error)
- func (backend *BackblazeStorage) Close() error
- func (backend *BackblazeStorage) DeleteChunk(shasum string, part, totalParts uint) error
- func (backend *BackblazeStorage) Description() string
- func (backend *BackblazeStorage) InitRepository() error
- func (backend *BackblazeStorage) LoadChunk(shasum string, part, totalParts uint) ([]byte, error)
- func (backend *BackblazeStorage) LoadChunkIndex() ([]byte, error)
- func (backend *BackblazeStorage) LoadRepository() ([]byte, error)
- func (backend *BackblazeStorage) LoadSnapshot(id string) ([]byte, error)
- func (backend *BackblazeStorage) Location() string
- func (*BackblazeStorage) NewBackend(URL url.URL) (knoxite.Backend, error)
- func (backend *BackblazeStorage) Protocols() []string
- func (backend *BackblazeStorage) SaveChunkIndex(data []byte) error
- func (backend *BackblazeStorage) SaveRepository(data []byte) error
- func (backend *BackblazeStorage) SaveSnapshot(id string, data []byte) error
- func (backend *BackblazeStorage) StoreChunk(shasum string, part, totalParts uint, data []byte) (size uint64, err error)
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) 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 ¶
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.