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 AnalyserDecorator
- 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) CanManageAlbum(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]map[string]aclcore.ScopeType, 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) ListScopesByOwners(owners []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 IAccessTokenGenerator
- type IRefreshTokenGenerator
- type IdentityDetailsStore
- type IdentityQueriesIdentityRepository
- type IdentityQueriesScopeRepository
- type IdentityRepository
- 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 PrintReadTerminalPort
- type RefreshTokenRepository
- func (_m *RefreshTokenRepository) DeleteRefreshToken(token string) error
- func (_m *RefreshTokenRepository) FindRefreshToken(token string) (*aclcore.RefreshTokenSpec, error)
- func (_m *RefreshTokenRepository) HouseKeepRefreshToken() (int, error)
- func (_m *RefreshTokenRepository) StoreRefreshToken(token string, spec aclcore.RefreshTokenSpec) error
- 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 RevokeAccessTokenAdapter
- type RunnerAnalyserFunc
- type ScanStreamExecutor
- 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 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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 AnalyserDecorator ¶ added in v1.5.0
AnalyserDecorator is an autogenerated mock type for the AnalyserDecorator type
func NewAnalyserDecorator ¶ added in v1.5.0
func NewAnalyserDecorator(t interface { mock.TestingT Cleanup(func()) }) *AnalyserDecorator
NewAnalyserDecorator creates a new instance of AnalyserDecorator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AnalyserDecorator) Decorate ¶ added in v1.5.0
func (_m *AnalyserDecorator) Decorate(analyseFunc backup.RunnerAnalyserFunc) backup.RunnerAnalyserFunc
Decorate provides a mock function with given fields: analyseFunc
type AsyncJobAdapter ¶
AsyncJobAdapter is an autogenerated mock type for the AsyncJobAdapter type
func NewAsyncJobAdapter ¶
func NewAsyncJobAdapter(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*CatalogRules) CanListMediasFromAlbum ¶
func (_m *CatalogRules) CanListMediasFromAlbum(owner string, folderName string) error
CanListMediasFromAlbum provides a mock function with given fields: owner, folderName
func (*CatalogRules) CanManageAlbum ¶
func (_m *CatalogRules) CanManageAlbum(owner string, folderName string) error
CanManageAlbum 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]map[string]aclcore.ScopeType, 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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*CertificateAuthority) RequestCertificate ¶
func (_m *CertificateAuthority) RequestCertificate(email string, domain string) (*dnsdomain.CompleteCertificate, error)
RequestCertificate provides a mock function with given fields: email, domain
type CertificateManager ¶
CertificateManager is an autogenerated mock type for the CertificateManager type
func NewCertificateManager ¶
func NewCertificateManager(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*CertificateManager) FindCertificate ¶
func (_m *CertificateManager) FindCertificate(domain string) (*dnsdomain.ExistingCertificate, error)
FindCertificate provides a mock function with given fields: domain
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 ¶
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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*FoundMedia) LastModification ¶ added in v1.5.0
func (_m *FoundMedia) LastModification() time.Time
LastModification provides a mock function with given fields:
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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) ListScopesByOwners ¶ added in v1.5.0
func (_m *GrantRepository) ListScopesByOwners(owners []string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListScopesByOwners provides a mock function with given fields: owners, 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 IAccessTokenGenerator ¶
IAccessTokenGenerator is an autogenerated mock type for the IAccessTokenGenerator type
func NewIAccessTokenGenerator ¶
func NewIAccessTokenGenerator(t interface { mock.TestingT Cleanup(func()) }) *IAccessTokenGenerator
NewIAccessTokenGenerator creates a new instance of IAccessTokenGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IAccessTokenGenerator) GenerateAccessToken ¶
func (_m *IAccessTokenGenerator) GenerateAccessToken(email string) (*aclcore.Authentication, error)
GenerateAccessToken provides a mock function with given fields: email
type IRefreshTokenGenerator ¶
IRefreshTokenGenerator is an autogenerated mock type for the IRefreshTokenGenerator type
func NewIRefreshTokenGenerator ¶
func NewIRefreshTokenGenerator(t interface { mock.TestingT Cleanup(func()) }) *IRefreshTokenGenerator
NewIRefreshTokenGenerator creates a new instance of IRefreshTokenGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IRefreshTokenGenerator) GenerateRefreshToken ¶
func (_m *IRefreshTokenGenerator) GenerateRefreshToken(spec aclcore.RefreshTokenSpec) (string, error)
GenerateRefreshToken provides a mock function with given fields: spec
type IdentityDetailsStore ¶
IdentityDetailsStore is an autogenerated mock type for the IdentityDetailsStore type
func NewIdentityDetailsStore ¶
func NewIdentityDetailsStore(t interface { mock.TestingT Cleanup(func()) }) *IdentityDetailsStore
NewIdentityDetailsStore creates a new instance of IdentityDetailsStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IdentityDetailsStore) FindIdentity ¶
func (_m *IdentityDetailsStore) FindIdentity(email string) (*aclcore.Identity, error)
FindIdentity provides a mock function with given fields: email
func (*IdentityDetailsStore) StoreIdentity ¶
func (_m *IdentityDetailsStore) StoreIdentity(identity aclcore.Identity) error
StoreIdentity provides a mock function with given fields: identity
type IdentityQueriesIdentityRepository ¶
IdentityQueriesIdentityRepository is an autogenerated mock type for the IdentityQueriesIdentityRepository type
func NewIdentityQueriesIdentityRepository ¶
func NewIdentityQueriesIdentityRepository(t interface { mock.TestingT Cleanup(func()) }) *IdentityQueriesIdentityRepository
NewIdentityQueriesIdentityRepository creates a new instance of IdentityQueriesIdentityRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IdentityQueriesIdentityRepository) FindIdentities ¶
func (_m *IdentityQueriesIdentityRepository) FindIdentities(emails []string) ([]*aclcore.Identity, error)
FindIdentities provides a mock function with given fields: emails
type IdentityQueriesScopeRepository ¶
IdentityQueriesScopeRepository is an autogenerated mock type for the IdentityQueriesScopeRepository type
func NewIdentityQueriesScopeRepository ¶
func NewIdentityQueriesScopeRepository(t interface { mock.TestingT Cleanup(func()) }) *IdentityQueriesScopeRepository
NewIdentityQueriesScopeRepository creates a new instance of IdentityQueriesScopeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IdentityQueriesScopeRepository) ListScopesByOwners ¶
func (_m *IdentityQueriesScopeRepository) ListScopesByOwners(owners []string, types ...aclcore.ScopeType) ([]*aclcore.Scope, error)
ListScopesByOwners provides a mock function with given fields: owners, types
type IdentityRepository ¶ added in v1.5.0
IdentityRepository is an autogenerated mock type for the IdentityRepository type
func NewIdentityRepository ¶ added in v1.5.0
func NewIdentityRepository(t interface { mock.TestingT Cleanup(func()) }) *IdentityRepository
NewIdentityRepository creates a new instance of IdentityRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IdentityRepository) FindIdentities ¶ added in v1.5.0
func (_m *IdentityRepository) FindIdentities(emails []string) ([]*aclcore.Identity, error)
FindIdentities provides a mock function with given fields: emails
func (*IdentityRepository) FindIdentity ¶ added in v1.5.0
func (_m *IdentityRepository) FindIdentity(email string) (*aclcore.Identity, error)
FindIdentity provides a mock function with given fields: email
func (*IdentityRepository) StoreIdentity ¶ added in v1.5.0
func (_m *IdentityRepository) StoreIdentity(identity aclcore.Identity) error
StoreIdentity provides a mock function with given fields: identity
type InteractiveActionsPort ¶
InteractiveActionsPort is an autogenerated mock type for the InteractiveActionsPort type
func NewInteractiveActionsPort ¶
func NewInteractiveActionsPort(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 ¶
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. The first argument is typically a *testing.T value.
type MediaAlbumResolver ¶
MediaAlbumResolver is an autogenerated mock type for the MediaAlbumResolver type
func NewMediaAlbumResolver ¶
func NewMediaAlbumResolver(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*PostAnalyseFilter) AcceptAnalysedMedia ¶
func (_m *PostAnalyseFilter) AcceptAnalysedMedia(media *backup.AnalysedMedia, folderName string) bool
AcceptAnalysedMedia provides a mock function with given fields: media, folderName
type PrintReadTerminalPort ¶
PrintReadTerminalPort is an autogenerated mock type for the PrintReadTerminalPort type
func NewPrintReadTerminalPort ¶
func NewPrintReadTerminalPort(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 RefreshTokenRepository ¶
RefreshTokenRepository is an autogenerated mock type for the RefreshTokenRepository type
func NewRefreshTokenRepository ¶
func NewRefreshTokenRepository(t interface { mock.TestingT Cleanup(func()) }) *RefreshTokenRepository
NewRefreshTokenRepository creates a new instance of RefreshTokenRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RefreshTokenRepository) DeleteRefreshToken ¶
func (_m *RefreshTokenRepository) DeleteRefreshToken(token string) error
DeleteRefreshToken provides a mock function with given fields: token
func (*RefreshTokenRepository) FindRefreshToken ¶
func (_m *RefreshTokenRepository) FindRefreshToken(token string) (*aclcore.RefreshTokenSpec, error)
FindRefreshToken provides a mock function with given fields: token
func (*RefreshTokenRepository) HouseKeepRefreshToken ¶
func (_m *RefreshTokenRepository) HouseKeepRefreshToken() (int, error)
HouseKeepRefreshToken provides a mock function with given fields:
func (*RefreshTokenRepository) StoreRefreshToken ¶
func (_m *RefreshTokenRepository) StoreRefreshToken(token string, spec aclcore.RefreshTokenSpec) error
StoreRefreshToken provides a mock function with given fields: token, spec
type RenameAlbumPort ¶
RenameAlbumPort is an autogenerated mock type for the RenameAlbumPort type
func NewRenameAlbumPort ¶
func NewRenameAlbumPort(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 RevokeAccessTokenAdapter ¶
RevokeAccessTokenAdapter is an autogenerated mock type for the RevokeAccessTokenAdapter type
func NewRevokeAccessTokenAdapter ¶
func NewRevokeAccessTokenAdapter(t interface { mock.TestingT Cleanup(func()) }) *RevokeAccessTokenAdapter
NewRevokeAccessTokenAdapter creates a new instance of RevokeAccessTokenAdapter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RevokeAccessTokenAdapter) DeleteRefreshToken ¶
func (_m *RevokeAccessTokenAdapter) DeleteRefreshToken(token string) error
DeleteRefreshToken provides a mock function with given fields: token
type RunnerAnalyserFunc ¶ added in v1.5.0
RunnerAnalyserFunc is an autogenerated mock type for the RunnerAnalyserFunc type
func NewRunnerAnalyserFunc ¶ added in v1.5.0
func NewRunnerAnalyserFunc(t interface { mock.TestingT Cleanup(func()) }) *RunnerAnalyserFunc
NewRunnerAnalyserFunc creates a new instance of RunnerAnalyserFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RunnerAnalyserFunc) Execute ¶ added in v1.5.0
func (_m *RunnerAnalyserFunc) Execute(found backup.FoundMedia, progressChannel chan *backup.ProgressEvent) (*backup.AnalysedMedia, error)
Execute provides a mock function with given fields: found, progressChannel
type ScanStreamExecutor ¶
ScanStreamExecutor is an autogenerated mock type for the ScanStreamExecutor type
func NewScanStreamExecutor ¶
func NewScanStreamExecutor(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*ScanStreamExecutor) Scan ¶
func (_m *ScanStreamExecutor) Scan(input *dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
Scan provides a mock function with given fields: input
type ScopeRepository ¶
ScopeRepository is an autogenerated mock type for the ScopeRepository type
func NewScopeRepository ¶
func NewScopeRepository(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 ShareAlbumCatalogPort ¶
type ShareAlbumCatalogPort struct {
}ShareAlbumCatalogPort is an autogenerated mock type for the ShareAlbumCatalogPort type
func NewShareAlbumCatalogPort ¶
func NewShareAlbumCatalogPort(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
type SourceVolume ¶
SourceVolume is an autogenerated mock type for the SourceVolume type
func NewSourceVolume ¶
func NewSourceVolume(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 ¶
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. The first argument is typically a *testing.T value.
type SuggestionRecordRepositoryPort ¶
SuggestionRecordRepositoryPort is an autogenerated mock type for the SuggestionRecordRepositoryPort type
func NewSuggestionRecordRepositoryPort ¶
func NewSuggestionRecordRepositoryPort(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*TrackAnalysed) OnAnalysed ¶
func (_m *TrackAnalysed) OnAnalysed(done, total, cached 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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*UserInputPort) StartListening ¶
func (_m *UserInputPort) StartListening()
StartListening provides a mock function with given fields:
Source Files
¶
- ACLViewCatalogAdapter.go
- ARepositoryAdapter.go
- AnalyserDecorator.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
- IAccessTokenGenerator.go
- IRefreshTokenGenerator.go
- IdentityDetailsStore.go
- IdentityQueriesIdentityRepository.go
- IdentityQueriesScopeRepository.go
- IdentityRepository.go
- InteractiveActionsPort.go
- InteractiveRendererPort.go
- Listener.go
- MediaAlbumResolver.go
- PostAnalyseFilter.go
- PrintReadTerminalPort.go
- RefreshTokenRepository.go
- RenameAlbumPort.go
- RepositoryAdapter.go
- ResizerAdapter.go
- ReverseScopesReader.go
- RevokeAccessTokenAdapter.go
- RunnerAnalyserFunc.go
- ScanStreamExecutor.go
- ScopeRepository.go
- ScopeWriter.go
- ScopesReader.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
- runnerCataloger.go
- runnerPublisher.go
- runnerUniqueFilter.go
- runnerUploader.go