s3

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Storage

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

S3Storage stores data on a remote AmazonS3.

func (*S3Storage) AvailableSpace

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

AvailableSpace returns the free space on this backend.

func (*S3Storage) Close

func (backend *S3Storage) Close() error

Close the backend.

func (*S3Storage) DeleteChunk

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

DeleteChunk deletes a single Chunk.

func (*S3Storage) Description

func (backend *S3Storage) Description() string

Description returns a user-friendly description for this backend.

func (*S3Storage) InitRepository

func (backend *S3Storage) InitRepository() error

InitRepository creates a new repository.

func (*S3Storage) LoadChunk

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

LoadChunk loads a Chunk from network.

func (*S3Storage) LoadChunkIndex

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

LoadChunkIndex reads the chunk-index.

func (*S3Storage) LoadRepository

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

LoadRepository reads the metadata for a repository.

func (*S3Storage) LoadSnapshot

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

LoadSnapshot loads a snapshot.

func (*S3Storage) Location

func (backend *S3Storage) Location() string

Location returns the type and location of the repository.

func (*S3Storage) NewBackend

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

NewBackend returns a S3Storage backend.

func (*S3Storage) Protocols

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

Protocols returns the Protocol Schemes supported by this backend.

func (*S3Storage) SaveChunkIndex

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

SaveChunkIndex stores the chunk-index.

func (*S3Storage) SaveRepository

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

SaveRepository stores the metadata for a repository.

func (*S3Storage) SaveSnapshot

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

SaveSnapshot stores a snapshot.

func (*S3Storage) StoreChunk

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

StoreChunk stores a single Chunk on network.

Jump to

Keyboard shortcuts

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