backupproxy

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlbumRepository

func NewAlbumRepository(owner string) ui.ExistingRecordRepositoryPort

func NewBackupHandler

func NewBackupHandler(owner string, resolver func(absolutePath string) (backup.SourceVolume, error)) ui.BackupSuggestionPort

func NewSuggestionRepository

func NewSuggestionRepository(owner string, folders []*backup.ScannedFolder, rejectCount int) ui.SuggestionRecordRepositoryPort

func ScanWithCache

func ScanWithCache(owner string, volume backup.SourceVolume, options ...backup.Options) (ui.SuggestionRecordRepositoryPort, []backup.FoundMedia, error)

func Store

func Store(volumeId string, folders []*backup.ScannedFolder, rejectCount int) error

Types

type BackupAlbumFilter

type BackupAlbumFilter struct {
	FolderName string
}

func (*BackupAlbumFilter) AcceptAnalysedMedia

func (b *BackupAlbumFilter) AcceptAnalysedMedia(media *backup.AnalysedMedia, folderName string) bool

type ScanProgress

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

func (*ScanProgress) OnAnalysed

func (s *ScanProgress) OnAnalysed(done, total backup.MediaCounter)

func (*ScanProgress) OnScanComplete

func (s *ScanProgress) OnScanComplete(total backup.MediaCounter)

type TargetedBackupHandler

type TargetedBackupHandler struct {
	Owner             string
	SubVolumeResolver func(absolutePath string) (backup.SourceVolume, error)
}

func (*TargetedBackupHandler) BackupSuggestion

func (t *TargetedBackupHandler) BackupSuggestion(record *ui.SuggestionRecord, existing *ui.ExistingRecord, renderer ui.InteractiveRendererPort) error

Jump to

Keyboard shortcuts

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