Documentation ¶
Index ¶
- type Analyser
- type BackupReport
- type CatalogProxyAdapter
- func (_m *CatalogProxyAdapter) Create(createRequest catalog.CreateAlbum) error
- func (_m *CatalogProxyAdapter) FindAllAlbums() ([]*catalog.Album, error)
- func (_m *CatalogProxyAdapter) FindSignatures(signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)
- func (_m *CatalogProxyAdapter) InsertMedias(medias []catalog.CreateMediaRequest) error
- type ClosableMedia
- type Config
- func (_m *Config) Get(key string) interface{}
- func (_m *Config) GetAWSSession() *session.Session
- func (_m *Config) GetBool(key string) bool
- func (_m *Config) GetInt(key string) int
- func (_m *Config) GetIntOrDefault(key string, defaultValue int) int
- func (_m *Config) GetString(key string) string
- func (_m *Config) GetStringOrDefault(key string, defaultValue string) string
- type CreateAlbumPort
- type DeleteAlbumPort
- type DetailsReaderAdapter
- type Downloader
- type DownloaderAdapter
- type ExistingRecordRepositoryPort
- type Filter
- type FoundMedia
- type FoundMediaWithHash
- type InteractiveActionsPort
- func (_m *InteractiveActionsPort) Create(createRequest ui.RecordCreation) error
- func (_m *InteractiveActionsPort) DeleteAlbum(folderName string) error
- func (_m *InteractiveActionsPort) RenameAlbum(folderName string, newName string, renameFolder bool) error
- func (_m *InteractiveActionsPort) UpdateAlbum(folderName string, start time.Time, end time.Time) error
- type InteractiveRendererPort
- type Listener
- type MediaScannerAdapter
- type MoveMediaOperator
- type OnlineStorageAdapter
- type PostAnalyseFilter
- type PreCompletion
- type PrintReadTerminalPort
- type ReadableMedia
- type RecordRepositoryPort
- type RenameAlbumPort
- type RepositoryPort
- func (_m *RepositoryPort) CountMedias(folderName string) (int, error)
- func (_m *RepositoryPort) DeleteEmptyAlbum(folderName string) error
- func (_m *RepositoryPort) DeleteEmptyMoveTransaction(transactionId string) error
- func (_m *RepositoryPort) FindAlbum(folderName string) (*catalog.Album, error)
- func (_m *RepositoryPort) FindAllAlbums() ([]*catalog.Album, error)
- func (_m *RepositoryPort) FindExistingSignatures(signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)
- func (_m *RepositoryPort) FindFilesToMove(transactionId string, pageToken string) ([]*catalog.MovedMedia, string, error)
- func (_m *RepositoryPort) FindMedias(folderName string, filter catalog.FindMediaFilter) (*catalog.MediaPage, error)
- func (_m *RepositoryPort) FindReadyMoveTransactions() ([]*catalog.MoveTransaction, error)
- func (_m *RepositoryPort) InsertAlbum(album catalog.Album) error
- func (_m *RepositoryPort) InsertMedias(media []catalog.CreateMediaRequest) error
- func (_m *RepositoryPort) UpdateAlbum(album catalog.Album) error
- func (_m *RepositoryPort) UpdateMedias(filter *catalog.UpdateMediaFilter, newFolderName string) (string, int, error)
- func (_m *RepositoryPort) UpdateMediasLocation(transactionId string, moves []*catalog.MovedMedia) error
- type Segment
- type Source
- type Stream
- type SuggestionRecordRepositoryPort
- type TrackAnalysed
- type TrackDownloaded
- type TrackScanComplete
- type TrackUploaded
- type UpdateAlbumPort
- type Uploader
- type UserInputPort
- type VolumeManagerPort
- type VolumeRepositoryAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyser ¶
Analyser is an autogenerated mock type for the Analyser type
func (*Analyser) Execute ¶
func (_m *Analyser) Execute(found backupmodel.FoundMedia) (*backupmodel.AnalysedMedia, error)
Execute provides a mock function with given fields: found
type BackupReport ¶
BackupReport is an autogenerated mock type for the BackupReport type
func (*BackupReport) CountPerAlbum ¶
func (_m *BackupReport) CountPerAlbum() map[string]*backupmodel.TypeCounter
CountPerAlbum provides a mock function with given fields:
func (*BackupReport) NewAlbums ¶
func (_m *BackupReport) NewAlbums() []string
NewAlbums provides a mock function with given fields:
func (*BackupReport) Skipped ¶
func (_m *BackupReport) Skipped() backupmodel.MediaCounter
Skipped provides a mock function with given fields:
func (*BackupReport) WaitToComplete ¶
func (_m *BackupReport) WaitToComplete()
WaitToComplete provides a mock function with given fields:
type CatalogProxyAdapter ¶
CatalogProxyAdapter is an autogenerated mock type for the CatalogProxyAdapter type
func (*CatalogProxyAdapter) Create ¶
func (_m *CatalogProxyAdapter) Create(createRequest catalog.CreateAlbum) error
Create provides a mock function with given fields: createRequest
func (*CatalogProxyAdapter) FindAllAlbums ¶
func (_m *CatalogProxyAdapter) FindAllAlbums() ([]*catalog.Album, error)
FindAllAlbums provides a mock function with given fields:
func (*CatalogProxyAdapter) FindSignatures ¶
func (_m *CatalogProxyAdapter) FindSignatures(signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)
FindSignatures provides a mock function with given fields: signatures
func (*CatalogProxyAdapter) InsertMedias ¶
func (_m *CatalogProxyAdapter) InsertMedias(medias []catalog.CreateMediaRequest) error
InsertMedias provides a mock function with given fields: medias
type ClosableMedia ¶
ClosableMedia is an autogenerated mock type for the ClosableMedia type
func (*ClosableMedia) Close ¶
func (_m *ClosableMedia) Close() error
Close provides a mock function with given fields:
type Config ¶
Config is an autogenerated mock type for the Config type
func (*Config) GetAWSSession ¶
GetAWSSession provides a mock function with given fields:
func (*Config) GetIntOrDefault ¶
GetIntOrDefault provides a mock function with given fields: key, defaultValue
type CreateAlbumPort ¶
CreateAlbumPort is an autogenerated mock type for the CreateAlbumPort type
func (*CreateAlbumPort) Create ¶
func (_m *CreateAlbumPort) Create(createRequest ui.RecordCreation) error
Create provides a mock function with given fields: createRequest
type DeleteAlbumPort ¶
DeleteAlbumPort is an autogenerated mock type for the DeleteAlbumPort type
func (*DeleteAlbumPort) DeleteAlbum ¶
func (_m *DeleteAlbumPort) DeleteAlbum(folderName string) error
DeleteAlbum provides a mock function with given fields: folderName
type DetailsReaderAdapter ¶
DetailsReaderAdapter is an autogenerated mock type for the DetailsReaderAdapter type
func (*DetailsReaderAdapter) ReadDetails ¶
func (_m *DetailsReaderAdapter) ReadDetails(reader io.Reader, options backupmodel.DetailsReaderOptions) (*backupmodel.MediaDetails, error)
ReadDetails provides a mock function with given fields: reader, options
func (*DetailsReaderAdapter) Supports ¶
func (_m *DetailsReaderAdapter) Supports(media backupmodel.FoundMedia, mediaType backupmodel.MediaType) bool
Supports provides a mock function with given fields: media, mediaType
type Downloader ¶
Downloader is an autogenerated mock type for the Downloader type
func (*Downloader) Execute ¶
func (_m *Downloader) Execute(found backupmodel.FoundMedia) (backupmodel.FoundMedia, error)
Execute provides a mock function with given fields: found
type DownloaderAdapter ¶
DownloaderAdapter is an autogenerated mock type for the DownloaderAdapter type
func (*DownloaderAdapter) DownloadMedia ¶
func (_m *DownloaderAdapter) DownloadMedia(media backupmodel.FoundMedia) (backupmodel.FoundMedia, error)
DownloadMedia provides a mock function with given fields: media
type ExistingRecordRepositoryPort ¶
ExistingRecordRepositoryPort is an autogenerated mock type for the ExistingRecordRepositoryPort type
func (*ExistingRecordRepositoryPort) FindExistingRecords ¶
func (_m *ExistingRecordRepositoryPort) FindExistingRecords() ([]*ui.ExistingRecord, error)
FindExistingRecords provides a mock function with given fields:
type Filter ¶
Filter is an autogenerated mock type for the Filter type
func (*Filter) Execute ¶
func (_m *Filter) Execute(found backupmodel.FoundMedia) bool
Execute provides a mock function with given fields: found
type FoundMedia ¶
FoundMedia is an autogenerated mock type for the FoundMedia type
func (*FoundMedia) Filename ¶
func (_m *FoundMedia) Filename() string
Filename provides a mock function with given fields:
func (*FoundMedia) LastModificationDate ¶
func (_m *FoundMedia) LastModificationDate() time.Time
LastModificationDate provides a mock function with given fields:
func (*FoundMedia) ReadMedia ¶
func (_m *FoundMedia) ReadMedia() (io.Reader, error)
ReadMedia provides a mock function with given fields:
func (*FoundMedia) SimpleSignature ¶
func (_m *FoundMedia) SimpleSignature() *backupmodel.SimpleMediaSignature
SimpleSignature provides a mock function with given fields:
type FoundMediaWithHash ¶
FoundMediaWithHash is an autogenerated mock type for the FoundMediaWithHash type
func (*FoundMediaWithHash) Sha256Hash ¶
func (_m *FoundMediaWithHash) Sha256Hash() string
Sha256Hash provides a mock function with given fields:
type InteractiveActionsPort ¶
InteractiveActionsPort is an autogenerated mock type for the InteractiveActionsPort type
func (*InteractiveActionsPort) Create ¶
func (_m *InteractiveActionsPort) Create(createRequest ui.RecordCreation) error
Create provides a mock function with given fields: createRequest
func (*InteractiveActionsPort) DeleteAlbum ¶
func (_m *InteractiveActionsPort) DeleteAlbum(folderName string) error
DeleteAlbum provides a mock function with given fields: folderName
func (*InteractiveActionsPort) RenameAlbum ¶
func (_m *InteractiveActionsPort) RenameAlbum(folderName string, newName string, renameFolder bool) error
RenameAlbum provides a mock function with given fields: folderName, newName, renameFolder
func (*InteractiveActionsPort) UpdateAlbum ¶
func (_m *InteractiveActionsPort) UpdateAlbum(folderName string, start time.Time, end time.Time) error
UpdateAlbum provides a mock function with given fields: folderName, start, end
type InteractiveRendererPort ¶
InteractiveRendererPort is an autogenerated mock type for the InteractiveRendererPort type
func (*InteractiveRendererPort) Height ¶
func (_m *InteractiveRendererPort) Height() int
Height provides a mock function with given fields:
func (*InteractiveRendererPort) Print ¶
func (_m *InteractiveRendererPort) Print(question string)
Print provides a mock function with given fields: question
func (*InteractiveRendererPort) ReadAnswer ¶
func (_m *InteractiveRendererPort) ReadAnswer() (string, error)
ReadAnswer provides a mock function with given fields:
func (*InteractiveRendererPort) Render ¶
func (_m *InteractiveRendererPort) Render(state *ui.InteractiveViewState) error
Render provides a mock function with given fields: state
type MediaScannerAdapter ¶
MediaScannerAdapter is an autogenerated mock type for the MediaScannerAdapter type
func (*MediaScannerAdapter) FindMediaRecursively ¶
func (_m *MediaScannerAdapter) FindMediaRecursively(volume backupmodel.VolumeToBackup, callback func(backupmodel.FoundMedia)) (uint, uint, error)
FindMediaRecursively provides a mock function with given fields: volume, callback
type MoveMediaOperator ¶
MoveMediaOperator is an autogenerated mock type for the MoveMediaOperator type
func (*MoveMediaOperator) Continue ¶
func (_m *MoveMediaOperator) Continue() bool
Continue provides a mock function with given fields:
func (*MoveMediaOperator) Move ¶
func (_m *MoveMediaOperator) Move(source catalog.MediaLocation, dest catalog.MediaLocation) (string, error)
Move provides a mock function with given fields: source, dest
func (*MoveMediaOperator) UpdateStatus ¶
func (_m *MoveMediaOperator) UpdateStatus(done int, total int) error
UpdateStatus provides a mock function with given fields: done, total
type OnlineStorageAdapter ¶
OnlineStorageAdapter is an autogenerated mock type for the OnlineStorageAdapter type
func (*OnlineStorageAdapter) MoveFile ¶
func (_m *OnlineStorageAdapter) MoveFile(owner string, folderName string, filename string, destFolderName string) (string, error)
MoveFile provides a mock function with given fields: owner, folderName, filename, destFolderName
func (*OnlineStorageAdapter) UploadFile ¶
func (_m *OnlineStorageAdapter) UploadFile(owner string, media backupmodel.ReadableMedia, folderName string, filename string) (string, error)
UploadFile provides a mock function with given fields: owner, media, folderName, filename
type PostAnalyseFilter ¶
PostAnalyseFilter is an autogenerated mock type for the PostAnalyseFilter type
func (*PostAnalyseFilter) AcceptAnalysedMedia ¶
func (_m *PostAnalyseFilter) AcceptAnalysedMedia(media *backupmodel.AnalysedMedia, folderName string) bool
AcceptAnalysedMedia provides a mock function with given fields: media, folderName
type PreCompletion ¶
PreCompletion is an autogenerated mock type for the PreCompletion type
func (*PreCompletion) Execute ¶
func (_m *PreCompletion) Execute() error
Execute provides a mock function with given fields:
type PrintReadTerminalPort ¶
PrintReadTerminalPort is an autogenerated mock type for the PrintReadTerminalPort type
func (*PrintReadTerminalPort) Print ¶
func (_m *PrintReadTerminalPort) Print(question string)
Print provides a mock function with given fields: question
func (*PrintReadTerminalPort) ReadAnswer ¶
func (_m *PrintReadTerminalPort) ReadAnswer() (string, error)
ReadAnswer provides a mock function with given fields:
type ReadableMedia ¶
ReadableMedia is an autogenerated mock type for the ReadableMedia type
func (*ReadableMedia) ReadMedia ¶
func (_m *ReadableMedia) ReadMedia() (io.Reader, error)
ReadMedia provides a mock function with given fields:
func (*ReadableMedia) SimpleSignature ¶
func (_m *ReadableMedia) SimpleSignature() *backupmodel.SimpleMediaSignature
SimpleSignature provides a mock function with given fields:
type RecordRepositoryPort ¶
RecordRepositoryPort is an autogenerated mock type for the RecordRepositoryPort type
func (*RecordRepositoryPort) FindSuggestionRecords ¶
func (_m *RecordRepositoryPort) FindSuggestionRecords() ([]*ui.SuggestionRecord, error)
FindRecords provides a mock function with given fields:
type RenameAlbumPort ¶
RenameAlbumPort is an autogenerated mock type for the RenameAlbumPort type
func (*RenameAlbumPort) RenameAlbum ¶
func (_m *RenameAlbumPort) RenameAlbum(folderName string, newName string, renameFolder bool) error
RenameAlbum provides a mock function with given fields: folderName, newName, renameFolder
type RepositoryPort ¶
RepositoryPort is an autogenerated mock type for the RepositoryPort type
func (*RepositoryPort) CountMedias ¶
func (_m *RepositoryPort) CountMedias(folderName string) (int, error)
CountMedias provides a mock function with given fields: folderName
func (*RepositoryPort) DeleteEmptyAlbum ¶
func (_m *RepositoryPort) DeleteEmptyAlbum(folderName string) error
DeleteEmptyAlbum provides a mock function with given fields: folderName
func (*RepositoryPort) DeleteEmptyMoveTransaction ¶
func (_m *RepositoryPort) DeleteEmptyMoveTransaction(transactionId string) error
DeleteEmptyMoveTransaction provides a mock function with given fields: transactionId
func (*RepositoryPort) FindAlbum ¶
func (_m *RepositoryPort) FindAlbum(folderName string) (*catalog.Album, error)
FindAlbum provides a mock function with given fields: folderName
func (*RepositoryPort) FindAllAlbums ¶
func (_m *RepositoryPort) FindAllAlbums() ([]*catalog.Album, error)
FindAllAlbums provides a mock function with given fields:
func (*RepositoryPort) FindExistingSignatures ¶
func (_m *RepositoryPort) FindExistingSignatures(signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)
FindExistingSignatures provides a mock function with given fields: signatures
func (*RepositoryPort) FindFilesToMove ¶
func (_m *RepositoryPort) FindFilesToMove(transactionId string, pageToken string) ([]*catalog.MovedMedia, string, error)
FindFilesToMove provides a mock function with given fields: transactionId, pageToken
func (*RepositoryPort) FindMedias ¶
func (_m *RepositoryPort) FindMedias(folderName string, filter catalog.FindMediaFilter) (*catalog.MediaPage, error)
FindMedias provides a mock function with given fields: folderName, filter
func (*RepositoryPort) FindReadyMoveTransactions ¶
func (_m *RepositoryPort) FindReadyMoveTransactions() ([]*catalog.MoveTransaction, error)
FindReadyMoveTransactions provides a mock function with given fields:
func (*RepositoryPort) InsertAlbum ¶
func (_m *RepositoryPort) InsertAlbum(album catalog.Album) error
InsertAlbum provides a mock function with given fields: album
func (*RepositoryPort) InsertMedias ¶
func (_m *RepositoryPort) InsertMedias(media []catalog.CreateMediaRequest) error
InsertMedias provides a mock function with given fields: media
func (*RepositoryPort) UpdateAlbum ¶
func (_m *RepositoryPort) UpdateAlbum(album catalog.Album) error
UpdateAlbum provides a mock function with given fields: album
func (*RepositoryPort) UpdateMedias ¶
func (_m *RepositoryPort) UpdateMedias(filter *catalog.UpdateMediaFilter, newFolderName string) (string, int, error)
UpdateMedias provides a mock function with given fields: filter, newFolderName
func (*RepositoryPort) UpdateMediasLocation ¶
func (_m *RepositoryPort) UpdateMediasLocation(transactionId string, moves []*catalog.MovedMedia) error
UpdateMediasLocation provides a mock function with given fields: transactionId, moves
type Source ¶
Source is an autogenerated mock type for the Source type
func (*Source) Execute ¶
func (_m *Source) Execute(medias chan backupmodel.FoundMedia) (uint, uint, error)
Execute provides a mock function with given fields: medias
type Stream ¶
Stream is an autogenerated mock type for the Stream type
type SuggestionRecordRepositoryPort ¶
SuggestionRecordRepositoryPort is an autogenerated mock type for the SuggestionRecordRepositoryPort type
func (*SuggestionRecordRepositoryPort) FindSuggestionRecords ¶
func (_m *SuggestionRecordRepositoryPort) FindSuggestionRecords() ([]*ui.SuggestionRecord, error)
FindSuggestionRecords provides a mock function with given fields:
type TrackAnalysed ¶
TrackAnalysed is an autogenerated mock type for the TrackAnalysed type
func (*TrackAnalysed) OnAnalysed ¶
func (_m *TrackAnalysed) OnAnalysed(done backupmodel.MediaCounter, total backupmodel.MediaCounter)
OnAnalysed provides a mock function with given fields: done, total
type TrackDownloaded ¶
TrackDownloaded is an autogenerated mock type for the TrackDownloaded type
func (*TrackDownloaded) OnDownloaded ¶
func (_m *TrackDownloaded) OnDownloaded(done backupmodel.MediaCounter, total backupmodel.MediaCounter)
OnDownloaded provides a mock function with given fields: done, total
type TrackScanComplete ¶
TrackScanComplete is an autogenerated mock type for the TrackScanComplete type
func (*TrackScanComplete) OnScanComplete ¶
func (_m *TrackScanComplete) OnScanComplete(total backupmodel.MediaCounter)
OnScanComplete provides a mock function with given fields: total
type TrackUploaded ¶
TrackUploaded is an autogenerated mock type for the TrackUploaded type
func (*TrackUploaded) OnUploaded ¶
func (_m *TrackUploaded) OnUploaded(done backupmodel.MediaCounter, total backupmodel.MediaCounter)
OnUploaded provides a mock function with given fields: done, total
type UpdateAlbumPort ¶
UpdateAlbumPort is an autogenerated mock type for the UpdateAlbumPort type
func (*UpdateAlbumPort) UpdateAlbum ¶
UpdateAlbum provides a mock function with given fields: folderName, start, end
type Uploader ¶
Uploader is an autogenerated mock type for the Uploader type
func (*Uploader) Execute ¶
func (_m *Uploader) Execute(buffer []*backupmodel.AnalysedMedia, progressChannel chan *backupmodel.ProgressEvent) error
Execute provides a mock function with given fields: buffer, progressChannel
type UserInputPort ¶
UserInputPort is an autogenerated mock type for the UserInputPort type
func (*UserInputPort) StartListening ¶
func (_m *UserInputPort) StartListening()
StartListening provides a mock function with given fields:
type VolumeManagerPort ¶
VolumeManagerPort is an autogenerated mock type for the VolumeManagerPort type
func (*VolumeManagerPort) OnMountedVolume ¶
func (_m *VolumeManagerPort) OnMountedVolume(volume backupmodel.VolumeToBackup)
OnMountedVolume provides a mock function with given fields: volume
func (*VolumeManagerPort) OnUnMountedVolume ¶
func (_m *VolumeManagerPort) OnUnMountedVolume(uuid string)
OnUnMountedVolume provides a mock function with given fields: uuid
type VolumeRepositoryAdapter ¶
VolumeRepositoryAdapter is an autogenerated mock type for the VolumeRepositoryAdapter type
func (*VolumeRepositoryAdapter) RestoreLastSnapshot ¶
func (_m *VolumeRepositoryAdapter) RestoreLastSnapshot(volumeId string) ([]backupmodel.SimpleMediaSignature, error)
RestoreLastSnapshot provides a mock function with given fields: volumeId
func (*VolumeRepositoryAdapter) StoreSnapshot ¶
func (_m *VolumeRepositoryAdapter) StoreSnapshot(volumeId string, backupId string, signatures []backupmodel.SimpleMediaSignature) error
StoreSnapshot provides a mock function with given fields: volumeId, backupId, signatures
Source Files ¶
- Analyser.go
- BackupReport.go
- CatalogProxyAdapter.go
- ClosableMedia.go
- Config.go
- CreateAlbumPort.go
- DeleteAlbumPort.go
- DetailsReaderAdapter.go
- Downloader.go
- DownloaderAdapter.go
- ExistingRecordRepositoryPort.go
- Filter.go
- FoundMedia.go
- FoundMediaWithHash.go
- InteractiveActionsPort.go
- InteractiveRendererPort.go
- Listener.go
- MediaScannerAdapter.go
- MoveMediaOperator.go
- OnlineStorageAdapter.go
- PostAnalyseFilter.go
- PreCompletion.go
- PrintReadTerminalPort.go
- ReadableMedia.go
- RecordRepositoryPort.go
- RenameAlbumPort.go
- RepositoryPort.go
- Segment.go
- Source.go
- Stream.go
- SuggestionRecordRepositoryPort.go
- TrackAnalysed.go
- TrackDownloaded.go
- TrackScanComplete.go
- TrackUploaded.go
- UpdateAlbumPort.go
- Uploader.go
- UserInputPort.go
- VolumeManagerPort.go
- VolumeRepositoryAdapter.go
- analyseProgressListener.go
- scanCompleteListener.go