Documentation ¶
Index ¶
- type ACLViewCatalogAdapter
- func (_m *ACLViewCatalogAdapter) FindAlbums(keys []catalog.AlbumId) ([]*catalog.Album, error)
- func (_m *ACLViewCatalogAdapter) FindAllAlbums(owner string) ([]*catalog.Album, error)
- func (_m *ACLViewCatalogAdapter) ListMedias(owner string, folderName string, request catalog.PageRequest) (*catalog.MediaPage, error)
- type ARepositoryAdapter
- func (_m *ARepositoryAdapter) AddLocation(owner string, id string, key string) error
- func (_m *ARepositoryAdapter) FindById(owner string, id string) (string, error)
- func (_m *ARepositoryAdapter) FindByIds(owner string, ids []string) (map[string]string, error)
- func (_m *ARepositoryAdapter) FindIdsFromKeyPrefix(keyPrefix string) (map[string]string, error)
- func (_m *ARepositoryAdapter) UpdateLocations(owner string, locations map[string]string) error
- type AsyncJobAdapter
- type BArchiveAdapter
- type BackupSuggestionPort
- type CArchiveAdapter
- type CacheAdapter
- func (_m *CacheAdapter) Get(key string) (io.ReadCloser, int, string, error)
- func (_m *CacheAdapter) Put(key string, mediaType string, content io.Reader) error
- func (_m *CacheAdapter) SignedURL(key string, duration time.Duration) (string, error)
- func (_m *CacheAdapter) WalkCacheByPrefix(prefix string, observer func(string)) error
- type CatalogAdapter
- func (_m *CatalogAdapter) AssignIdsToNewMedias(owner string, medias []*backup.AnalysedMedia) (map[*backup.AnalysedMedia]string, error)
- func (_m *CatalogAdapter) GetAlbumsTimeline(owner string) (backup.TimelineAdapter, error)
- func (_m *CatalogAdapter) IndexMedias(owner string, requests []*backup.CatalogMediaRequest) error
- type CatalogRules
- func (_m *CatalogRules) CanListMediasFromAlbum(owner string, folderName string) error
- func (_m *CatalogRules) CanReadMedia(owner string, id string) error
- func (_m *CatalogRules) Owner() (string, error)
- func (_m *CatalogRules) SharedByUserGrid(owner string) (map[string][]string, error)
- func (_m *CatalogRules) SharedWithUserAlbum() ([]catalog.AlbumId, error)
- type CertificateAuthority
- type CertificateManager
- type ClosableFoundMedia
- type CompletionReport
- 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 DynamoBatchGetItem
- type DynamoBatchWriteItem
- type DynamoQuery
- type ExistingRecordRepositoryPort
- type FoundMedia
- type GetStreamAdapter
- type GrantRepository
- func (_m *GrantRepository) DeleteScopes(id ...aclcore.ScopeId) error
- func (_m *GrantRepository) FindScopesById(ids ...aclcore.ScopeId) ([]*aclcore.Scope, error)
- func (_m *GrantRepository) ListOwnerScopes(owner string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
- func (_m *GrantRepository) ListUserScopes(email string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
- func (_m *GrantRepository) SaveIfNewScope(scope aclcore.Scope) error
- type InteractiveActionsPort
- func (_m *InteractiveActionsPort) BackupSuggestion(record *ui.SuggestionRecord, existing *ui.ExistingRecord, ...) error
- 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
- func (_m *InteractiveRendererPort) Height() int
- func (_m *InteractiveRendererPort) Print(question string)
- func (_m *InteractiveRendererPort) ReadAnswer() (string, error)
- func (_m *InteractiveRendererPort) Render(state *ui.InteractiveViewState) error
- func (_m *InteractiveRendererPort) TakeOverScreen()
- type Listener
- type MediaAlbumResolver
- type PostAnalyseFilter
- type PreScanTransformation
- type PrintReadTerminalPort
- type RenameAlbumPort
- type RepositoryAdapter
- func (_m *RepositoryAdapter) DeleteEmptyAlbum(owner string, folderName string) error
- func (_m *RepositoryAdapter) FindAlbums(ids ...catalog.AlbumId) ([]*catalog.Album, error)
- func (_m *RepositoryAdapter) FindAlbumsByOwner(owner string) ([]*catalog.Album, error)
- func (_m *RepositoryAdapter) FindExistingSignatures(owner string, signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)
- func (_m *RepositoryAdapter) FindMediaCurrentAlbum(owner string, mediaId string) (string, error)
- func (_m *RepositoryAdapter) FindMediaIds(request *catalog.FindMediaRequest) ([]string, error)
- func (_m *RepositoryAdapter) FindMedias(request *catalog.FindMediaRequest) ([]*catalog.MediaMeta, error)
- func (_m *RepositoryAdapter) InsertAlbum(album catalog.Album) error
- func (_m *RepositoryAdapter) InsertMedias(owner string, media []catalog.CreateMediaRequest) error
- func (_m *RepositoryAdapter) TransferMedias(owner string, mediaIds []string, newFolderName string) error
- func (_m *RepositoryAdapter) UpdateAlbum(album catalog.Album) error
- type ResizerAdapter
- type ReverseScopesReader
- type SSOAuthenticator
- type ScanStreamExecutor
- type ScanTransformation
- type ScopeRepository
- func (_m *ScopeRepository) FindScopesById(ids ...aclcore.ScopeId) ([]*aclcore.Scope, error)
- func (_m *ScopeRepository) ListOwnerScopes(owner string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
- func (_m *ScopeRepository) ListUserScopes(email string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
- type ScopeWriter
- type ScopesReader
- type Segment
- type ShareAlbumCatalogPort
- type SourceVolume
- type StoreAdapter
- func (_m *StoreAdapter) Copy(origin string, destination archive.DestructuredKey) (string, error)
- func (_m *StoreAdapter) Delete(locations []string) error
- func (_m *StoreAdapter) Download(key string) (io.ReadCloser, error)
- func (_m *StoreAdapter) SignedURL(key string, duration time.Duration) (string, error)
- func (_m *StoreAdapter) Upload(values archive.DestructuredKey, content io.Reader) (string, error)
- type StoreAndCache
- func (_m *StoreAndCache) Copy(origin string, destination archive.DestructuredKey) (string, error)
- func (_m *StoreAndCache) Delete(locations []string) error
- func (_m *StoreAndCache) Download(key string) (io.ReadCloser, error)
- func (_m *StoreAndCache) Get(key string) (io.ReadCloser, int, string, error)
- func (_m *StoreAndCache) Put(key string, mediaType string, content io.Reader) error
- func (_m *StoreAndCache) SignedURL(key string, duration time.Duration) (string, error)
- func (_m *StoreAndCache) Upload(values archive.DestructuredKey, content io.Reader) (string, error)
- func (_m *StoreAndCache) WalkCacheByPrefix(prefix string, observer func(string)) error
- type Stream
- type SuggestionRecordRepositoryPort
- type TimelineAdapter
- type TrackAnalysed
- type TrackEvents
- type TrackScanComplete
- type TrackUploaded
- type UpdateAlbumPort
- type UserInputPort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLViewCatalogAdapter ¶
ACLViewCatalogAdapter is an autogenerated mock type for the ACLViewCatalogAdapter type
func NewACLViewCatalogAdapter ¶
func NewACLViewCatalogAdapter(t mockConstructorTestingTNewACLViewCatalogAdapter) *ACLViewCatalogAdapter
NewACLViewCatalogAdapter creates a new instance of ACLViewCatalogAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ACLViewCatalogAdapter) FindAlbums ¶
FindAlbums provides a mock function with given fields: keys
func (*ACLViewCatalogAdapter) FindAllAlbums ¶
func (_m *ACLViewCatalogAdapter) FindAllAlbums(owner string) ([]*catalog.Album, error)
FindAllAlbums provides a mock function with given fields: owner
func (*ACLViewCatalogAdapter) ListMedias ¶
func (_m *ACLViewCatalogAdapter) ListMedias(owner string, folderName string, request catalog.PageRequest) (*catalog.MediaPage, error)
ListMedias provides a mock function with given fields: owner, folderName, request
type ARepositoryAdapter ¶
ARepositoryAdapter is an autogenerated mock type for the ARepositoryAdapter type
func NewARepositoryAdapter ¶
func NewARepositoryAdapter(t mockConstructorTestingTNewARepositoryAdapter) *ARepositoryAdapter
NewARepositoryAdapter creates a new instance of ARepositoryAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ARepositoryAdapter) AddLocation ¶
func (_m *ARepositoryAdapter) AddLocation(owner string, id string, key string) error
AddLocation provides a mock function with given fields: owner, id, key
func (*ARepositoryAdapter) FindById ¶
func (_m *ARepositoryAdapter) FindById(owner string, id string) (string, error)
FindById provides a mock function with given fields: owner, id
func (*ARepositoryAdapter) FindByIds ¶
FindByIds provides a mock function with given fields: owner, ids
func (*ARepositoryAdapter) FindIdsFromKeyPrefix ¶
func (_m *ARepositoryAdapter) FindIdsFromKeyPrefix(keyPrefix string) (map[string]string, error)
FindIdsFromKeyPrefix provides a mock function with given fields: keyPrefix
func (*ARepositoryAdapter) UpdateLocations ¶
func (_m *ARepositoryAdapter) UpdateLocations(owner string, locations map[string]string) error
UpdateLocations provides a mock function with given fields: owner, locations
type AsyncJobAdapter ¶
AsyncJobAdapter is an autogenerated mock type for the AsyncJobAdapter type
func NewAsyncJobAdapter ¶
func NewAsyncJobAdapter(t mockConstructorTestingTNewAsyncJobAdapter) *AsyncJobAdapter
NewAsyncJobAdapter creates a new instance of AsyncJobAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AsyncJobAdapter) LoadImagesInCache ¶
func (_m *AsyncJobAdapter) LoadImagesInCache(images ...*archive.ImageToResize) error
LoadImagesInCache provides a mock function with given fields: images
func (*AsyncJobAdapter) WarmUpCacheByFolder ¶
func (_m *AsyncJobAdapter) WarmUpCacheByFolder(owner string, missedStoreKey string, width int) error
WarmUpCacheByFolder provides a mock function with given fields: owner, missedStoreKey, width
type BArchiveAdapter ¶
BArchiveAdapter is an autogenerated mock type for the BArchiveAdapter type
func NewBArchiveAdapter ¶
func NewBArchiveAdapter(t mockConstructorTestingTNewBArchiveAdapter) *BArchiveAdapter
NewBArchiveAdapter creates a new instance of BArchiveAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BArchiveAdapter) ArchiveMedia ¶
func (_m *BArchiveAdapter) ArchiveMedia(owner string, media *backup.BackingUpMediaRequest) (string, error)
ArchiveMedia provides a mock function with given fields: owner, media
type BackupSuggestionPort ¶
BackupSuggestionPort is an autogenerated mock type for the BackupSuggestionPort type
func NewBackupSuggestionPort ¶
func NewBackupSuggestionPort(t mockConstructorTestingTNewBackupSuggestionPort) *BackupSuggestionPort
NewBackupSuggestionPort creates a new instance of BackupSuggestionPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BackupSuggestionPort) BackupSuggestion ¶
func (_m *BackupSuggestionPort) BackupSuggestion(record *ui.SuggestionRecord, existing *ui.ExistingRecord, listener ui.InteractiveRendererPort) error
BackupSuggestion provides a mock function with given fields: record, existing, listener
type CArchiveAdapter ¶
CArchiveAdapter is an autogenerated mock type for the CArchiveAdapter type
func NewCArchiveAdapter ¶
func NewCArchiveAdapter(t mockConstructorTestingTNewCArchiveAdapter) *CArchiveAdapter
NewCArchiveAdapter creates a new instance of CArchiveAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CArchiveAdapter) MoveMedias ¶
func (_m *CArchiveAdapter) MoveMedias(owner string, ids []string, name string) error
MoveMedias provides a mock function with given fields: owner, ids, name
type CacheAdapter ¶
CacheAdapter is an autogenerated mock type for the CacheAdapter type
func NewCacheAdapter ¶
func NewCacheAdapter(t mockConstructorTestingTNewCacheAdapter) *CacheAdapter
NewCacheAdapter creates a new instance of CacheAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CacheAdapter) Get ¶
func (_m *CacheAdapter) Get(key string) (io.ReadCloser, int, string, error)
Get provides a mock function with given fields: key
func (*CacheAdapter) SignedURL ¶
SignedURL provides a mock function with given fields: key, duration
func (*CacheAdapter) WalkCacheByPrefix ¶
func (_m *CacheAdapter) WalkCacheByPrefix(prefix string, observer func(string)) error
WalkCacheByPrefix provides a mock function with given fields: prefix, observer
type CatalogAdapter ¶
CatalogAdapter is an autogenerated mock type for the CatalogAdapter type
func NewCatalogAdapter ¶
func NewCatalogAdapter(t mockConstructorTestingTNewCatalogAdapter) *CatalogAdapter
NewCatalogAdapter creates a new instance of CatalogAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CatalogAdapter) AssignIdsToNewMedias ¶
func (_m *CatalogAdapter) AssignIdsToNewMedias(owner string, medias []*backup.AnalysedMedia) (map[*backup.AnalysedMedia]string, error)
AssignIdsToNewMedias provides a mock function with given fields: owner, medias
func (*CatalogAdapter) GetAlbumsTimeline ¶
func (_m *CatalogAdapter) GetAlbumsTimeline(owner string) (backup.TimelineAdapter, error)
GetAlbumsTimeline provides a mock function with given fields: owner
func (*CatalogAdapter) IndexMedias ¶
func (_m *CatalogAdapter) IndexMedias(owner string, requests []*backup.CatalogMediaRequest) error
IndexMedias provides a mock function with given fields: owner, requests
type CatalogRules ¶
CatalogRules is an autogenerated mock type for the CatalogRules type
func NewCatalogRules ¶
func NewCatalogRules(t mockConstructorTestingTNewCatalogRules) *CatalogRules
NewCatalogRules creates a new instance of CatalogRules. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CatalogRules) CanListMediasFromAlbum ¶
func (_m *CatalogRules) CanListMediasFromAlbum(owner string, folderName string) error
CanListMediasFromAlbum provides a mock function with given fields: owner, folderName
func (*CatalogRules) CanReadMedia ¶
func (_m *CatalogRules) CanReadMedia(owner string, id string) error
CanReadMedia provides a mock function with given fields: owner, id
func (*CatalogRules) Owner ¶
func (_m *CatalogRules) Owner() (string, error)
Owner provides a mock function with given fields:
func (*CatalogRules) SharedByUserGrid ¶
func (_m *CatalogRules) SharedByUserGrid(owner string) (map[string][]string, error)
SharedByUserGrid provides a mock function with given fields: owner
func (*CatalogRules) SharedWithUserAlbum ¶
func (_m *CatalogRules) SharedWithUserAlbum() ([]catalog.AlbumId, error)
SharedWithUserAlbum provides a mock function with given fields:
type CertificateAuthority ¶
CertificateAuthority is an autogenerated mock type for the CertificateAuthority type
func NewCertificateAuthority ¶
func NewCertificateAuthority(t mockConstructorTestingTNewCertificateAuthority) *CertificateAuthority
NewCertificateAuthority creates a new instance of CertificateAuthority. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CertificateAuthority) RequestCertificate ¶
func (_m *CertificateAuthority) RequestCertificate(email string, domain string) (*dnsdomain.CompleteCertificate, error)
RequestCertificate provides a mock function with given fields: email, pkg
type CertificateManager ¶
CertificateManager is an autogenerated mock type for the CertificateManager type
func NewCertificateManager ¶
func NewCertificateManager(t mockConstructorTestingTNewCertificateManager) *CertificateManager
NewCertificateManager creates a new instance of CertificateManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CertificateManager) FindCertificate ¶
func (_m *CertificateManager) FindCertificate(domain string) (*dnsdomain.ExistingCertificate, error)
FindCertificate provides a mock function with given fields: pkg
func (*CertificateManager) InstallCertificate ¶
func (_m *CertificateManager) InstallCertificate(id string, certificate dnsdomain.CompleteCertificate) error
InstallCertificate provides a mock function with given fields: id, certificate
type ClosableFoundMedia ¶
ClosableFoundMedia is an autogenerated mock type for the ClosableFoundMedia type
func NewClosableFoundMedia ¶
func NewClosableFoundMedia(t mockConstructorTestingTNewClosableFoundMedia) *ClosableFoundMedia
NewClosableFoundMedia creates a new instance of ClosableFoundMedia. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClosableFoundMedia) Close ¶
func (_m *ClosableFoundMedia) Close() error
Close provides a mock function with given fields:
type CompletionReport ¶
CompletionReport is an autogenerated mock type for the CompletionReport type
func NewCompletionReport ¶
func NewCompletionReport(t mockConstructorTestingTNewCompletionReport) *CompletionReport
NewCompletionReport creates a new instance of CompletionReport. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CompletionReport) CountPerAlbum ¶
func (_m *CompletionReport) CountPerAlbum() map[string]*backup.TypeCounter
CountPerAlbum provides a mock function with given fields:
func (*CompletionReport) NewAlbums ¶
func (_m *CompletionReport) NewAlbums() []string
NewAlbums provides a mock function with given fields:
func (*CompletionReport) Skipped ¶
func (_m *CompletionReport) Skipped() backup.MediaCounter
Skipped provides a mock function with given fields:
type Config ¶
Config is an autogenerated mock type for the Config type
func NewConfig ¶
func NewConfig(t mockConstructorTestingTNewConfig) *Config
NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 NewCreateAlbumPort ¶
func NewCreateAlbumPort(t mockConstructorTestingTNewCreateAlbumPort) *CreateAlbumPort
NewCreateAlbumPort creates a new instance of CreateAlbumPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 NewDeleteAlbumPort ¶
func NewDeleteAlbumPort(t mockConstructorTestingTNewDeleteAlbumPort) *DeleteAlbumPort
NewDeleteAlbumPort creates a new instance of DeleteAlbumPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 NewDetailsReaderAdapter ¶
func NewDetailsReaderAdapter(t mockConstructorTestingTNewDetailsReaderAdapter) *DetailsReaderAdapter
NewDetailsReaderAdapter creates a new instance of DetailsReaderAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DetailsReaderAdapter) ReadDetails ¶
func (_m *DetailsReaderAdapter) ReadDetails(reader io.Reader, options backup.DetailsReaderOptions) (*backup.MediaDetails, error)
ReadDetails provides a mock function with given fields: reader, options
func (*DetailsReaderAdapter) Supports ¶
func (_m *DetailsReaderAdapter) Supports(media backup.FoundMedia, mediaType backup.MediaType) bool
Supports provides a mock function with given fields: media, mediaType
type DynamoBatchGetItem ¶
DynamoBatchGetItem is an autogenerated mock type for the DynamoBatchGetItem type
func NewDynamoBatchGetItem ¶
func NewDynamoBatchGetItem(t mockConstructorTestingTNewDynamoBatchGetItem) *DynamoBatchGetItem
NewDynamoBatchGetItem creates a new instance of DynamoBatchGetItem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DynamoBatchGetItem) BatchGetItem ¶
func (_m *DynamoBatchGetItem) BatchGetItem(_a0 *dynamodb.BatchGetItemInput) (*dynamodb.BatchGetItemOutput, error)
BatchGetItem provides a mock function with given fields: _a0
type DynamoBatchWriteItem ¶
DynamoBatchWriteItem is an autogenerated mock type for the DynamoBatchWriteItem type
func NewDynamoBatchWriteItem ¶
func NewDynamoBatchWriteItem(t mockConstructorTestingTNewDynamoBatchWriteItem) *DynamoBatchWriteItem
NewDynamoBatchWriteItem creates a new instance of DynamoBatchWriteItem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DynamoBatchWriteItem) BatchWriteItem ¶
func (_m *DynamoBatchWriteItem) BatchWriteItem(_a0 *dynamodb.BatchWriteItemInput) (*dynamodb.BatchWriteItemOutput, error)
BatchWriteItem provides a mock function with given fields: _a0
type DynamoQuery ¶
DynamoQuery is an autogenerated mock type for the DynamoQuery type
func NewDynamoQuery ¶
func NewDynamoQuery(t mockConstructorTestingTNewDynamoQuery) *DynamoQuery
NewDynamoQuery creates a new instance of DynamoQuery. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DynamoQuery) Query ¶
func (_m *DynamoQuery) Query(d *dynamodb.QueryInput) (*dynamodb.QueryOutput, error)
Query provides a mock function with given fields: d
type ExistingRecordRepositoryPort ¶
ExistingRecordRepositoryPort is an autogenerated mock type for the ExistingRecordRepositoryPort type
func NewExistingRecordRepositoryPort ¶
func NewExistingRecordRepositoryPort(t mockConstructorTestingTNewExistingRecordRepositoryPort) *ExistingRecordRepositoryPort
NewExistingRecordRepositoryPort creates a new instance of ExistingRecordRepositoryPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExistingRecordRepositoryPort) FindExistingRecords ¶
func (_m *ExistingRecordRepositoryPort) FindExistingRecords() ([]*ui.ExistingRecord, error)
FindExistingRecords provides a mock function with given fields:
type FoundMedia ¶
FoundMedia is an autogenerated mock type for the FoundMedia type
func NewFoundMedia ¶
func NewFoundMedia(t mockConstructorTestingTNewFoundMedia) *FoundMedia
NewFoundMedia creates a new instance of FoundMedia. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FoundMedia) MediaPath ¶
func (_m *FoundMedia) MediaPath() backup.MediaPath
MediaPath provides a mock function with given fields:
func (*FoundMedia) ReadMedia ¶
func (_m *FoundMedia) ReadMedia() (io.ReadCloser, error)
ReadMedia provides a mock function with given fields:
func (*FoundMedia) Size ¶
func (_m *FoundMedia) Size() int
Size provides a mock function with given fields:
func (*FoundMedia) String ¶
func (_m *FoundMedia) String() string
String provides a mock function with given fields:
type GetStreamAdapter ¶
GetStreamAdapter is an autogenerated mock type for the GetStreamAdapter type
func NewGetStreamAdapter ¶
func NewGetStreamAdapter(t mockConstructorTestingTNewGetStreamAdapter) *GetStreamAdapter
NewGetStreamAdapter creates a new instance of GetStreamAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GetStreamAdapter) BatchGet ¶
func (_m *GetStreamAdapter) BatchGet(_a0 []map[string]*dynamodb.AttributeValue) (*dynamodb.BatchGetItemOutput, error)
BatchGet provides a mock function with given fields: _a0
type GrantRepository ¶
GrantRepository is an autogenerated mock type for the GrantRepository type
func NewGrantRepository ¶
func NewGrantRepository(t mockConstructorTestingTNewGrantRepository) *GrantRepository
NewGrantRepository creates a new instance of GrantRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GrantRepository) DeleteScopes ¶
func (_m *GrantRepository) DeleteScopes(id ...aclcore.ScopeId) error
DeleteScopes provides a mock function with given fields: id
func (*GrantRepository) FindScopesById ¶
FindScopesById provides a mock function with given fields: ids
func (*GrantRepository) ListOwnerScopes ¶
func (_m *GrantRepository) ListOwnerScopes(owner string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListOwnerScopes provides a mock function with given fields: owner, types
func (*GrantRepository) ListUserScopes ¶
func (_m *GrantRepository) ListUserScopes(email string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListUserScopes provides a mock function with given fields: email, types
func (*GrantRepository) SaveIfNewScope ¶
func (_m *GrantRepository) SaveIfNewScope(scope aclcore.Scope) error
SaveIfNewScope provides a mock function with given fields: scope
type InteractiveActionsPort ¶
InteractiveActionsPort is an autogenerated mock type for the InteractiveActionsPort type
func NewInteractiveActionsPort ¶
func NewInteractiveActionsPort(t mockConstructorTestingTNewInteractiveActionsPort) *InteractiveActionsPort
NewInteractiveActionsPort creates a new instance of InteractiveActionsPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*InteractiveActionsPort) BackupSuggestion ¶
func (_m *InteractiveActionsPort) BackupSuggestion(record *ui.SuggestionRecord, existing *ui.ExistingRecord, listener ui.InteractiveRendererPort) error
BackupSuggestion provides a mock function with given fields: record, existing, listener
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 NewInteractiveRendererPort ¶
func NewInteractiveRendererPort(t mockConstructorTestingTNewInteractiveRendererPort) *InteractiveRendererPort
NewInteractiveRendererPort creates a new instance of InteractiveRendererPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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
func (*InteractiveRendererPort) TakeOverScreen ¶
func (_m *InteractiveRendererPort) TakeOverScreen()
TakeOverScreen provides a mock function with given fields:
type Listener ¶
Listener is an autogenerated mock type for the Listener type
func NewListener ¶
func NewListener(t mockConstructorTestingTNewListener) *Listener
NewListener creates a new instance of Listener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type MediaAlbumResolver ¶
MediaAlbumResolver is an autogenerated mock type for the MediaAlbumResolver type
func NewMediaAlbumResolver ¶
func NewMediaAlbumResolver(t mockConstructorTestingTNewMediaAlbumResolver) *MediaAlbumResolver
NewMediaAlbumResolver creates a new instance of MediaAlbumResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MediaAlbumResolver) FindAlbumOfMedia ¶
func (_m *MediaAlbumResolver) FindAlbumOfMedia(owner string, mediaId string) (string, error)
FindAlbumOfMedia provides a mock function with given fields: owner, mediaId
type PostAnalyseFilter ¶
PostAnalyseFilter is an autogenerated mock type for the PostAnalyseFilter type
func NewPostAnalyseFilter ¶
func NewPostAnalyseFilter(t mockConstructorTestingTNewPostAnalyseFilter) *PostAnalyseFilter
NewPostAnalyseFilter creates a new instance of PostAnalyseFilter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PostAnalyseFilter) AcceptAnalysedMedia ¶
func (_m *PostAnalyseFilter) AcceptAnalysedMedia(media *backup.AnalysedMedia, folderName string) bool
AcceptAnalysedMedia provides a mock function with given fields: media, folderName
type PreScanTransformation ¶
PreScanTransformation is an autogenerated mock type for the PreScanTransformation type
func NewPreScanTransformation ¶
func NewPreScanTransformation(t mockConstructorTestingTNewPreScanTransformation) *PreScanTransformation
NewPreScanTransformation creates a new instance of PreScanTransformation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PreScanTransformation) PreScan ¶
func (_m *PreScanTransformation) PreScan(run *migrator.TransformationRun) error
PreScan provides a mock function with given fields: run
type PrintReadTerminalPort ¶
PrintReadTerminalPort is an autogenerated mock type for the PrintReadTerminalPort type
func NewPrintReadTerminalPort ¶
func NewPrintReadTerminalPort(t mockConstructorTestingTNewPrintReadTerminalPort) *PrintReadTerminalPort
NewPrintReadTerminalPort creates a new instance of PrintReadTerminalPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 RenameAlbumPort ¶
RenameAlbumPort is an autogenerated mock type for the RenameAlbumPort type
func NewRenameAlbumPort ¶
func NewRenameAlbumPort(t mockConstructorTestingTNewRenameAlbumPort) *RenameAlbumPort
NewRenameAlbumPort creates a new instance of RenameAlbumPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 RepositoryAdapter ¶
RepositoryAdapter is an autogenerated mock type for the RepositoryAdapter type
func NewRepositoryAdapter ¶
func NewRepositoryAdapter(t mockConstructorTestingTNewRepositoryAdapter) *RepositoryAdapter
NewRepositoryAdapter creates a new instance of RepositoryAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RepositoryAdapter) DeleteEmptyAlbum ¶
func (_m *RepositoryAdapter) DeleteEmptyAlbum(owner string, folderName string) error
DeleteEmptyAlbum provides a mock function with given fields: owner, folderName
func (*RepositoryAdapter) FindAlbums ¶
FindAlbums provides a mock function with given fields: ids
func (*RepositoryAdapter) FindAlbumsByOwner ¶
func (_m *RepositoryAdapter) FindAlbumsByOwner(owner string) ([]*catalog.Album, error)
FindAlbumsByOwner provides a mock function with given fields: owner
func (*RepositoryAdapter) FindExistingSignatures ¶
func (_m *RepositoryAdapter) FindExistingSignatures(owner string, signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)
FindExistingSignatures provides a mock function with given fields: owner, signatures
func (*RepositoryAdapter) FindMediaCurrentAlbum ¶
func (_m *RepositoryAdapter) FindMediaCurrentAlbum(owner string, mediaId string) (string, error)
FindMediaCurrentAlbum provides a mock function with given fields: owner, mediaId
func (*RepositoryAdapter) FindMediaIds ¶
func (_m *RepositoryAdapter) FindMediaIds(request *catalog.FindMediaRequest) ([]string, error)
FindMediaIds provides a mock function with given fields: request
func (*RepositoryAdapter) FindMedias ¶
func (_m *RepositoryAdapter) FindMedias(request *catalog.FindMediaRequest) ([]*catalog.MediaMeta, error)
FindMedias provides a mock function with given fields: request
func (*RepositoryAdapter) InsertAlbum ¶
func (_m *RepositoryAdapter) InsertAlbum(album catalog.Album) error
InsertAlbum provides a mock function with given fields: album
func (*RepositoryAdapter) InsertMedias ¶
func (_m *RepositoryAdapter) InsertMedias(owner string, media []catalog.CreateMediaRequest) error
InsertMedias provides a mock function with given fields: owner, media
func (*RepositoryAdapter) TransferMedias ¶
func (_m *RepositoryAdapter) TransferMedias(owner string, mediaIds []string, newFolderName string) error
TransferMedias provides a mock function with given fields: owner, mediaIds, newFolderName
func (*RepositoryAdapter) UpdateAlbum ¶
func (_m *RepositoryAdapter) UpdateAlbum(album catalog.Album) error
UpdateAlbum provides a mock function with given fields: album
type ResizerAdapter ¶
ResizerAdapter is an autogenerated mock type for the ResizerAdapter type
func NewResizerAdapter ¶
func NewResizerAdapter(t mockConstructorTestingTNewResizerAdapter) *ResizerAdapter
NewResizerAdapter creates a new instance of ResizerAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ResizerAdapter) ResizeImage ¶
func (_m *ResizerAdapter) ResizeImage(reader io.Reader, width int, fast bool) ([]byte, string, error)
ResizeImage provides a mock function with given fields: reader, width, fast
func (*ResizerAdapter) ResizeImageAtDifferentWidths ¶
func (_m *ResizerAdapter) ResizeImageAtDifferentWidths(reader io.Reader, width []int) (map[int][]byte, string, error)
ResizeImageAtDifferentWidths provides a mock function with given fields: reader, width
type ReverseScopesReader ¶
ReverseScopesReader is an autogenerated mock type for the ReverseScopesReader type
func NewReverseScopesReader ¶
func NewReverseScopesReader(t mockConstructorTestingTNewReverseScopesReader) *ReverseScopesReader
NewReverseScopesReader creates a new instance of ReverseScopesReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ReverseScopesReader) ListOwnerScopes ¶
func (_m *ReverseScopesReader) ListOwnerScopes(owner string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListOwnerScopes provides a mock function with given fields: owner, types
type SSOAuthenticator ¶
SSOAuthenticator is an autogenerated mock type for the SSOAuthenticator type
func NewSSOAuthenticator ¶
func NewSSOAuthenticator(t mockConstructorTestingTNewSSOAuthenticator) *SSOAuthenticator
NewSSOAuthenticator creates a new instance of SSOAuthenticator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SSOAuthenticator) AuthenticateFromExternalIDProvider ¶
func (_m *SSOAuthenticator) AuthenticateFromExternalIDProvider(identityJWT string) (*aclcore.Authentication, *aclcore.Identity, error)
AuthenticateFromExternalIDProvider provides a mock function with given fields: identityJWT
type ScanStreamExecutor ¶
ScanStreamExecutor is an autogenerated mock type for the ScanStreamExecutor type
func NewScanStreamExecutor ¶
func NewScanStreamExecutor(t mockConstructorTestingTNewScanStreamExecutor) *ScanStreamExecutor
NewScanStreamExecutor creates a new instance of ScanStreamExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScanStreamExecutor) Scan ¶
func (_m *ScanStreamExecutor) Scan(input *dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
Scan provides a mock function with given fields: input
type ScanTransformation ¶
ScanTransformation is an autogenerated mock type for the ScanTransformation type
func NewScanTransformation ¶
func NewScanTransformation(t mockConstructorTestingTNewScanTransformation) *ScanTransformation
NewScanTransformation creates a new instance of ScanTransformation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScanTransformation) GeneratePatches ¶
func (_m *ScanTransformation) GeneratePatches(run *migrator.TransformationRun, item map[string]*dynamodb.AttributeValue) ([]*dynamodb.WriteRequest, error)
GeneratePatches provides a mock function with given fields: run, item
type ScopeRepository ¶
ScopeRepository is an autogenerated mock type for the ScopeRepository type
func NewScopeRepository ¶
func NewScopeRepository(t mockConstructorTestingTNewScopeRepository) *ScopeRepository
NewScopeRepository creates a new instance of ScopeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScopeRepository) FindScopesById ¶
FindScopesById provides a mock function with given fields: ids
func (*ScopeRepository) ListOwnerScopes ¶
func (_m *ScopeRepository) ListOwnerScopes(owner string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListOwnerScopes provides a mock function with given fields: owner, types
func (*ScopeRepository) ListUserScopes ¶
func (_m *ScopeRepository) ListUserScopes(email string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListUserScopes provides a mock function with given fields: email, types
type ScopeWriter ¶
ScopeWriter is an autogenerated mock type for the ScopeWriter type
func NewScopeWriter ¶
func NewScopeWriter(t mockConstructorTestingTNewScopeWriter) *ScopeWriter
NewScopeWriter creates a new instance of ScopeWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScopeWriter) DeleteScopes ¶
func (_m *ScopeWriter) DeleteScopes(id ...aclcore.ScopeId) error
DeleteScopes provides a mock function with given fields: id
func (*ScopeWriter) SaveIfNewScope ¶
func (_m *ScopeWriter) SaveIfNewScope(scope aclcore.Scope) error
SaveIfNewScope provides a mock function with given fields: scope
type ScopesReader ¶
ScopesReader is an autogenerated mock type for the ScopesReader type
func NewScopesReader ¶
func NewScopesReader(t mockConstructorTestingTNewScopesReader) *ScopesReader
NewScopesReader creates a new instance of ScopesReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ScopesReader) FindScopesById ¶
FindScopesById provides a mock function with given fields: ids
func (*ScopesReader) ListUserScopes ¶
func (_m *ScopesReader) ListUserScopes(email string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListUserScopes provides a mock function with given fields: email, types
type Segment ¶
Segment is an autogenerated mock type for the Segment type
func NewSegment ¶
func NewSegment(t mockConstructorTestingTNewSegment) *Segment
NewSegment creates a new instance of Segment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ShareAlbumCatalogPort ¶
type ShareAlbumCatalogPort struct {
}ShareAlbumCatalogPort is an autogenerated mock type for the ShareAlbumCatalogPort type
func NewShareAlbumCatalogPort ¶
func NewShareAlbumCatalogPort(t mockConstructorTestingTNewShareAlbumCatalogPort) *ShareAlbumCatalogPort
NewShareAlbumCatalogPort creates a new instance of ShareAlbumCatalogPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type SourceVolume ¶
SourceVolume is an autogenerated mock type for the SourceVolume type
func NewSourceVolume ¶
func NewSourceVolume(t mockConstructorTestingTNewSourceVolume) *SourceVolume
NewSourceVolume creates a new instance of SourceVolume. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SourceVolume) FindMedias ¶
func (_m *SourceVolume) FindMedias() ([]backup.FoundMedia, error)
FindMedias provides a mock function with given fields:
func (*SourceVolume) String ¶
func (_m *SourceVolume) String() string
String provides a mock function with given fields:
type StoreAdapter ¶
StoreAdapter is an autogenerated mock type for the StoreAdapter type
func NewStoreAdapter ¶
func NewStoreAdapter(t mockConstructorTestingTNewStoreAdapter) *StoreAdapter
NewStoreAdapter creates a new instance of StoreAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StoreAdapter) Copy ¶
func (_m *StoreAdapter) Copy(origin string, destination archive.DestructuredKey) (string, error)
Copy provides a mock function with given fields: origin, destination
func (*StoreAdapter) Delete ¶
func (_m *StoreAdapter) Delete(locations []string) error
Delete provides a mock function with given fields: locations
func (*StoreAdapter) Download ¶
func (_m *StoreAdapter) Download(key string) (io.ReadCloser, error)
Download provides a mock function with given fields: key
func (*StoreAdapter) SignedURL ¶
SignedURL provides a mock function with given fields: key, duration
func (*StoreAdapter) Upload ¶
func (_m *StoreAdapter) Upload(values archive.DestructuredKey, content io.Reader) (string, error)
Upload provides a mock function with given fields: values, content
type StoreAndCache ¶
StoreAndCache is an autogenerated mock type for the StoreAndCache type
func NewStoreAndCache ¶
func NewStoreAndCache(t mockConstructorTestingTNewStoreAndCache) *StoreAndCache
NewStoreAndCache creates a new instance of StoreAndCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StoreAndCache) Copy ¶
func (_m *StoreAndCache) Copy(origin string, destination archive.DestructuredKey) (string, error)
Copy provides a mock function with given fields: origin, destination
func (*StoreAndCache) Delete ¶
func (_m *StoreAndCache) Delete(locations []string) error
Delete provides a mock function with given fields: locations
func (*StoreAndCache) Download ¶
func (_m *StoreAndCache) Download(key string) (io.ReadCloser, error)
Download provides a mock function with given fields: key
func (*StoreAndCache) Get ¶
func (_m *StoreAndCache) Get(key string) (io.ReadCloser, int, string, error)
Get provides a mock function with given fields: key
func (*StoreAndCache) SignedURL ¶
SignedURL provides a mock function with given fields: key, duration
func (*StoreAndCache) Upload ¶
func (_m *StoreAndCache) Upload(values archive.DestructuredKey, content io.Reader) (string, error)
Upload provides a mock function with given fields: values, content
func (*StoreAndCache) WalkCacheByPrefix ¶
func (_m *StoreAndCache) WalkCacheByPrefix(prefix string, observer func(string)) error
WalkCacheByPrefix provides a mock function with given fields: prefix, observer
type Stream ¶
Stream is an autogenerated mock type for the Stream type
func NewStream ¶
func NewStream(t mockConstructorTestingTNewStream) *Stream
NewStream creates a new instance of Stream. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type SuggestionRecordRepositoryPort ¶
SuggestionRecordRepositoryPort is an autogenerated mock type for the SuggestionRecordRepositoryPort type
func NewSuggestionRecordRepositoryPort ¶
func NewSuggestionRecordRepositoryPort(t mockConstructorTestingTNewSuggestionRecordRepositoryPort) *SuggestionRecordRepositoryPort
NewSuggestionRecordRepositoryPort creates a new instance of SuggestionRecordRepositoryPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SuggestionRecordRepositoryPort) Count ¶
func (_m *SuggestionRecordRepositoryPort) Count() int
Count provides a mock function with given fields:
func (*SuggestionRecordRepositoryPort) FindSuggestionRecords ¶
func (_m *SuggestionRecordRepositoryPort) FindSuggestionRecords() []*ui.SuggestionRecord
FindSuggestionRecords provides a mock function with given fields:
func (*SuggestionRecordRepositoryPort) Rejects ¶
func (_m *SuggestionRecordRepositoryPort) Rejects() int
Rejects provides a mock function with given fields:
type TimelineAdapter ¶
TimelineAdapter is an autogenerated mock type for the TimelineAdapter type
func NewTimelineAdapter ¶
func NewTimelineAdapter(t mockConstructorTestingTNewTimelineAdapter) *TimelineAdapter
NewTimelineAdapter creates a new instance of TimelineAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TimelineAdapter) FindOrCreateAlbum ¶
FindOrCreateAlbum provides a mock function with given fields: mediaTime
type TrackAnalysed ¶
TrackAnalysed is an autogenerated mock type for the TrackAnalysed type
func NewTrackAnalysed ¶
func NewTrackAnalysed(t mockConstructorTestingTNewTrackAnalysed) *TrackAnalysed
NewTrackAnalysed creates a new instance of TrackAnalysed. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TrackAnalysed) OnAnalysed ¶
func (_m *TrackAnalysed) OnAnalysed(done backup.MediaCounter, total backup.MediaCounter)
OnAnalysed provides a mock function with given fields: done, total
type TrackEvents ¶
TrackEvents is an autogenerated mock type for the TrackEvents type
func NewTrackEvents ¶
func NewTrackEvents(t mockConstructorTestingTNewTrackEvents) *TrackEvents
NewTrackEvents creates a new instance of TrackEvents. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TrackEvents) OnEvent ¶
func (_m *TrackEvents) OnEvent(event backup.ProgressEvent)
OnEvent provides a mock function with given fields: event
type TrackScanComplete ¶
TrackScanComplete is an autogenerated mock type for the TrackScanComplete type
func NewTrackScanComplete ¶
func NewTrackScanComplete(t mockConstructorTestingTNewTrackScanComplete) *TrackScanComplete
NewTrackScanComplete creates a new instance of TrackScanComplete. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TrackScanComplete) OnScanComplete ¶
func (_m *TrackScanComplete) OnScanComplete(total backup.MediaCounter)
OnScanComplete provides a mock function with given fields: total
type TrackUploaded ¶
TrackUploaded is an autogenerated mock type for the TrackUploaded type
func NewTrackUploaded ¶
func NewTrackUploaded(t mockConstructorTestingTNewTrackUploaded) *TrackUploaded
NewTrackUploaded creates a new instance of TrackUploaded. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TrackUploaded) OnUploaded ¶
func (_m *TrackUploaded) OnUploaded(done backup.MediaCounter, total backup.MediaCounter)
OnUploaded provides a mock function with given fields: done, total
type UpdateAlbumPort ¶
UpdateAlbumPort is an autogenerated mock type for the UpdateAlbumPort type
func NewUpdateAlbumPort ¶
func NewUpdateAlbumPort(t mockConstructorTestingTNewUpdateAlbumPort) *UpdateAlbumPort
NewUpdateAlbumPort creates a new instance of UpdateAlbumPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UpdateAlbumPort) UpdateAlbum ¶
UpdateAlbum provides a mock function with given fields: folderName, start, end
type UserInputPort ¶
UserInputPort is an autogenerated mock type for the UserInputPort type
func NewUserInputPort ¶
func NewUserInputPort(t mockConstructorTestingTNewUserInputPort) *UserInputPort
NewUserInputPort creates a new instance of UserInputPort. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserInputPort) StartListening ¶
func (_m *UserInputPort) StartListening()
StartListening provides a mock function with given fields:
Source Files ¶
- ACLViewCatalogAdapter.go
- ARepositoryAdapter.go
- AsyncJobAdapter.go
- BArchiveAdapter.go
- BackupSuggestionPort.go
- CArchiveAdapter.go
- CacheAdapter.go
- CatalogAdapter.go
- CatalogRules.go
- CertificateAuthority.go
- CertificateManager.go
- ClosableFoundMedia.go
- CompletionReport.go
- Config.go
- CreateAlbumPort.go
- DeleteAlbumPort.go
- DetailsReaderAdapter.go
- DynamoBatchGetItem.go
- DynamoBatchWriteItem.go
- DynamoQuery.go
- ExistingRecordRepositoryPort.go
- FoundMedia.go
- GetStreamAdapter.go
- GrantRepository.go
- InteractiveActionsPort.go
- InteractiveRendererPort.go
- Listener.go
- MediaAlbumResolver.go
- PostAnalyseFilter.go
- PreScanTransformation.go
- PrintReadTerminalPort.go
- RenameAlbumPort.go
- RepositoryAdapter.go
- ResizerAdapter.go
- ReverseScopesReader.go
- SSOAuthenticator.go
- ScanStreamExecutor.go
- ScanTransformation.go
- ScopeRepository.go
- ScopeWriter.go
- ScopesReader.go
- Segment.go
- ShareAlbumCatalogPort.go
- SourceVolume.go
- StoreAdapter.go
- StoreAndCache.go
- Stream.go
- SuggestionRecordRepositoryPort.go
- TimelineAdapter.go
- TrackAnalysed.go
- TrackEvents.go
- TrackScanComplete.go
- TrackUploaded.go
- UpdateAlbumPort.go
- UserInputPort.go
- runnerAnalyser.go
- runnerCataloger.go
- runnerPublisher.go
- runnerUniqueFilter.go
- runnerUploader.go