Documentation
¶
Index ¶
- func TestSparseExtents(t *testing.T)
- type BackupIndex
- type ChunkDef
- type FSStorage
- func (s *FSStorage) ChunkExists(hash string) (bool, error)
- func (s *FSStorage) ListBackups(limit int, offset int, prefix string) (out []string, err error)
- func (s *FSStorage) OpenBackupIndex(name string) (out io.ReadCloser, err error)
- func (s *FSStorage) OpenChunk(hash string) (out io.ReadCloser, err error)
- func (s *FSStorage) WriteBackupIndex(name string, content []byte) (err error)
- func (s *FSStorage) WriteChunk(hash string, content []byte) (err error)
- type FileIndex
- type FileOps
- type GSStorage
- func (s *GSStorage) ChunkExists(hash string) (bool, error)
- func (s *GSStorage) ListBackups(limit int, offset int, prefix string) (out []string, err error)
- func (s *GSStorage) OpenBackupIndex(name string) (out io.ReadCloser, err error)
- func (s *GSStorage) OpenChunk(hash string) (out io.ReadCloser, err error)
- func (s *GSStorage) WriteBackupIndex(name string, content []byte) (err error)
- func (s *GSStorage) WriteChunk(hash string, content []byte) (err error)
- type GZipReadCloser
- type HTTPStorage
- func (s *HTTPStorage) ChunkExists(hash string) (bool, error)
- func (s *HTTPStorage) ListBackups(limit int, offset int, prefix string) (out []string, err error)
- func (s *HTTPStorage) OpenBackupIndex(name string) (out io.ReadCloser, err error)
- func (s *HTTPStorage) OpenChunk(hash string) (out io.ReadCloser, err error)
- func (s *HTTPStorage) WriteBackupIndex(name string, content []byte) (err error)
- func (s *HTTPStorage) WriteChunk(hash string, content []byte) (err error)
- type ListableBackup
- type PITR
- func (p *PITR) GenerateBackup(source string, tag string, metadata map[string]interface{}) error
- func (p *PITR) GetLatestBackup(tag string) (string, error)
- func (p *PITR) ListBackups(limit, offset int, prefix string, withMeta bool) (out []*ListableBackup, err error)
- func (p *PITR) RestoreFromBackup(dest string, backupName string) error
- func (p *PITR) SetCacheStorage(storage Storage)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestSparseExtents ¶ added in v1.0.0
Types ¶
type BackupIndex ¶
type FSStorage ¶
type FSStorage struct {
// contains filtered or unexported fields
}
func (*FSStorage) ListBackups ¶
func (*FSStorage) OpenBackupIndex ¶
func (s *FSStorage) OpenBackupIndex(name string) (out io.ReadCloser, err error)
func (*FSStorage) OpenChunk ¶
func (s *FSStorage) OpenChunk(hash string) (out io.ReadCloser, err error)
func (*FSStorage) WriteBackupIndex ¶
type GSStorage ¶
type GSStorage struct {
// contains filtered or unexported fields
}
func (*GSStorage) ListBackups ¶
func (*GSStorage) OpenBackupIndex ¶
func (s *GSStorage) OpenBackupIndex(name string) (out io.ReadCloser, err error)
func (*GSStorage) OpenChunk ¶
func (s *GSStorage) OpenChunk(hash string) (out io.ReadCloser, err error)
func (*GSStorage) WriteBackupIndex ¶
type GZipReadCloser ¶
func NewGZipReadCloser ¶
func NewGZipReadCloser(src io.ReadCloser) (*GZipReadCloser, error)
func (*GZipReadCloser) Close ¶
func (g *GZipReadCloser) Close() error
type HTTPStorage ¶ added in v1.0.0
func NewHTTPStorage ¶ added in v1.0.0
func NewHTTPStorage(baseURL *url.URL) (out *HTTPStorage, err error)
func (*HTTPStorage) ChunkExists ¶ added in v1.0.0
func (s *HTTPStorage) ChunkExists(hash string) (bool, error)
func (*HTTPStorage) ListBackups ¶ added in v1.0.0
func (*HTTPStorage) OpenBackupIndex ¶ added in v1.0.0
func (s *HTTPStorage) OpenBackupIndex(name string) (out io.ReadCloser, err error)
func (*HTTPStorage) OpenChunk ¶ added in v1.0.0
func (s *HTTPStorage) OpenChunk(hash string) (out io.ReadCloser, err error)
func (*HTTPStorage) WriteBackupIndex ¶ added in v1.0.0
func (s *HTTPStorage) WriteBackupIndex(name string, content []byte) (err error)
func (*HTTPStorage) WriteChunk ¶ added in v1.0.0
func (s *HTTPStorage) WriteChunk(hash string, content []byte) (err error)
type ListableBackup ¶
type PITR ¶
type PITR struct {
AppendonlyFiles []string
// contains filtered or unexported fields
}
func NewDefaultPITR ¶
func (*PITR) GenerateBackup ¶
func (*PITR) ListBackups ¶
func (*PITR) RestoreFromBackup ¶
func (*PITR) SetCacheStorage ¶
SetCachingStorage enables caching through the provided Storage object.
type Storage ¶
type Storage interface {
ListBackups(limit int, offset int, prefix string) ([]string, error)
OpenBackupIndex(name string) (io.ReadCloser, error)
WriteBackupIndex(name string, content []byte) error
OpenChunk(hash string) (io.ReadCloser, error)
WriteChunk(hash string, content []byte) error
ChunkExists(hash string) (bool, error)
}
func SetupStorage ¶
Click to show internal directories.
Click to hide internal directories.