Documentation ¶
Index ¶
- type S3Storage
- func (backend *S3Storage) AvailableSpace() (uint64, error)
- func (backend *S3Storage) Close() error
- func (backend *S3Storage) DeleteChunk(shasum string, part, totalParts uint) error
- func (backend *S3Storage) Description() string
- func (backend *S3Storage) InitRepository() error
- func (backend *S3Storage) LoadChunk(shasum string, part, totalParts uint) ([]byte, error)
- func (backend *S3Storage) LoadChunkIndex() ([]byte, error)
- func (backend *S3Storage) LoadRepository() ([]byte, error)
- func (backend *S3Storage) LoadSnapshot(id string) ([]byte, error)
- func (backend *S3Storage) Location() string
- func (*S3Storage) NewBackend(URL url.URL) (knoxite.Backend, error)
- func (backend *S3Storage) Protocols() []string
- func (backend *S3Storage) SaveChunkIndex(data []byte) error
- func (backend *S3Storage) SaveRepository(data []byte) error
- func (backend *S3Storage) SaveSnapshot(id string, data []byte) error
- func (backend *S3Storage) 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 S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage stores data on a remote AmazonS3.
func (*S3Storage) AvailableSpace ¶
AvailableSpace returns the free space on this backend.
func (*S3Storage) DeleteChunk ¶
DeleteChunk deletes a single Chunk.
func (*S3Storage) Description ¶
Description returns a user-friendly description for this backend.
func (*S3Storage) InitRepository ¶
InitRepository creates a new repository.
func (*S3Storage) LoadChunkIndex ¶
LoadChunkIndex reads the chunk-index.
func (*S3Storage) LoadRepository ¶
LoadRepository reads the metadata for a repository.
func (*S3Storage) LoadSnapshot ¶
LoadSnapshot loads a snapshot.
func (*S3Storage) NewBackend ¶
NewBackend returns a S3Storage backend.
func (*S3Storage) SaveChunkIndex ¶
SaveChunkIndex stores the chunk-index.
func (*S3Storage) SaveRepository ¶
SaveRepository stores the metadata for a repository.
func (*S3Storage) SaveSnapshot ¶
SaveSnapshot stores a snapshot.
Click to show internal directories.
Click to hide internal directories.