Versions in this module Expand all Collapse all v1 v1.0.1 May 27, 2025 Changes in this version + type AdapterType string + const LocalBackupAdapter + const S3BackupAdapter + type ArchiveDetails struct + Checksum string + ChecksumType string + Parts []remote.BackupPart + Size int64 + func (ad *ArchiveDetails) ToRequest(successful bool) remote.BackupRequest + type Backup struct + Ignore string + Uuid string + func (b *Backup) Checksum() ([]byte, error) + func (b *Backup) Details(ctx context.Context, parts []remote.BackupPart) (*ArchiveDetails, error) + func (b *Backup) Identifier() string + func (b *Backup) Ignored() string + func (b *Backup) Path() string + func (b *Backup) SetClient(c remote.Client) + func (b *Backup) Size() (int64, error) + type BackupInterface interface + Checksum func() ([]byte, error) + Details func(context.Context, []remote.BackupPart) (*ArchiveDetails, error) + Generate func(context.Context, *filesystem.Filesystem, string) (*ArchiveDetails, error) + Identifier func() string + Ignored func() string + Path func() string + Remove func() error + Restore func(context.Context, io.Reader, RestoreCallback) error + SetClient func(remote.Client) + Size func() (int64, error) + WithLogContext func(map[string]interface{}) + type LocalBackup struct + func LocateLocal(client remote.Client, uuid string) (*LocalBackup, os.FileInfo, error) + func NewLocal(client remote.Client, uuid string, ignore string) *LocalBackup + func (b *LocalBackup) Generate(ctx context.Context, fsys *filesystem.Filesystem, ignore string) (*ArchiveDetails, error) + func (b *LocalBackup) Remove() error + func (b *LocalBackup) Restore(ctx context.Context, _ io.Reader, callback RestoreCallback) error + func (b *LocalBackup) WithLogContext(c map[string]interface{}) + type Reader struct + func (Reader) Close() error + type RestoreCallback func(file string, info fs.FileInfo, r io.ReadCloser) error + type S3Backup struct + func NewS3(client remote.Client, uuid string, ignore string) *S3Backup + func (s *S3Backup) Generate(ctx context.Context, fsys *filesystem.Filesystem, ignore string) (*ArchiveDetails, error) + func (s *S3Backup) Remove() error + func (s *S3Backup) Restore(ctx context.Context, r io.Reader, callback RestoreCallback) error + func (s *S3Backup) WithLogContext(c map[string]interface{})