backupadapter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 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() ui.ExistingRecordRepositoryPort

func NewBackupHandler

func NewBackupHandler(owner string) ui.BackupSuggestionPort

func NewSuggestionRepository

func NewSuggestionRepository(folders []*backupmodel.ScannedFolder, rejectCount int) ui.SuggestionRecordRepositoryPort

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

Jump to

Keyboard shortcuts

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