Documentation ¶
Index ¶
- func NewAlbumRepository() ui.ExistingRecordRepositoryPort
- func NewBackupHandler(owner string) ui.BackupSuggestionPort
- func NewSuggestionRepository(folders []*backupmodel.ScannedFolder, rejectCount int) ui.SuggestionRecordRepositoryPort
- func ScanWithCache(volume backupmodel.VolumeToBackup, options backup.ScanOptions) (ui.SuggestionRecordRepositoryPort, []backupmodel.FoundMedia, error)
- func Store(volumeId string, result []*backupmodel.ScannedFolder, rejectCount int) error
- type BackupAlbumFilter
- type ScanProgress
- type TargetedBackupHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlbumRepository ¶
func NewAlbumRepository() ui.ExistingRecordRepositoryPort
func NewBackupHandler ¶
func NewBackupHandler(owner string) ui.BackupSuggestionPort
func NewSuggestionRepository ¶
func NewSuggestionRepository(folders []*backupmodel.ScannedFolder, rejectCount int) ui.SuggestionRecordRepositoryPort
func ScanWithCache ¶
func ScanWithCache(volume backupmodel.VolumeToBackup, options backup.ScanOptions) (ui.SuggestionRecordRepositoryPort, []backupmodel.FoundMedia, error)
func Store ¶
func Store(volumeId string, result []*backupmodel.ScannedFolder, rejectCount int) error
Types ¶
type BackupAlbumFilter ¶
type BackupAlbumFilter struct {
FolderName string
}
func (*BackupAlbumFilter) AcceptAnalysedMedia ¶
func (b *BackupAlbumFilter) AcceptAnalysedMedia(media *backupmodel.AnalysedMedia, folderName string) bool
type ScanProgress ¶
type ScanProgress struct {
// contains filtered or unexported fields
}
func (*ScanProgress) OnAnalyseProgress ¶
func (s *ScanProgress) OnAnalyseProgress(count, total uint)
func (*ScanProgress) OnScanComplete ¶
func (s *ScanProgress) OnScanComplete(total uint)
type TargetedBackupHandler ¶
type TargetedBackupHandler struct {
Owner string
}
func (*TargetedBackupHandler) BackupSuggestion ¶
func (t *TargetedBackupHandler) BackupSuggestion(record *ui.SuggestionRecord, existing *ui.ExistingRecord, renderer ui.InteractiveRendererPort) error
Click to show internal directories.
Click to hide internal directories.