Documentation ¶
Index ¶
- func NewAlbumRepository(owner string) ui.ExistingRecordRepositoryPort
- func NewBackupHandler(owner string, resolver func(absolutePath string) (backup.SourceVolume, error)) ui.BackupSuggestionPort
- func NewSuggestionRepository(owner string, folders []*backup.ScannedFolder, rejectCount int) ui.SuggestionRecordRepositoryPort
- func ScanWithCache(owner string, volume backup.SourceVolume, options ...backup.Options) (ui.SuggestionRecordRepositoryPort, []backup.FoundMedia, error)
- func Store(volumeId string, folders []*backup.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(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)
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
Click to show internal directories.
Click to hide internal directories.