Versions in this module Expand all Collapse all v0 v0.16.3 Nov 29, 2024 Changes in this version + var BackupStorageImplementation = flag.String("backup_storage_implementation", "", ...) + var BackupStorageMap = make(map[string]BackupStorage) + var FileSizeUnknown = int64(-1) + type BackupHandle interface + AbortBackup func(ctx context.Context) error + AddFile func(ctx context.Context, filename string, filesize int64) (io.WriteCloser, error) + Directory func() string + EndBackup func(ctx context.Context) error + Name func() string + ReadFile func(ctx context.Context, filename string) (io.ReadCloser, error) + type BackupStorage interface + Close func() error + ListBackups func(ctx context.Context, dir string) ([]BackupHandle, error) + RemoveBackup func(ctx context.Context, dir, name string) error + StartBackup func(ctx context.Context, dir, name string) (BackupHandle, error) + func GetBackupStorage() (BackupStorage, error)