mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLViewCatalogAdapter

type ACLViewCatalogAdapter struct {
	mock.Mock
}

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

func (_m *ACLViewCatalogAdapter) FindAlbums(keys []catalog.AlbumId) ([]*catalog.Album, error)

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

type ARepositoryAdapter struct {
	mock.Mock
}

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

func (_m *ARepositoryAdapter) FindByIds(owner string, ids []string) (map[string]string, error)

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

type AsyncJobAdapter struct {
	mock.Mock
}

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

type BArchiveAdapter struct {
	mock.Mock
}

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

type BackupSuggestionPort struct {
	mock.Mock
}

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

type CArchiveAdapter struct {
	mock.Mock
}

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

type CacheAdapter struct {
	mock.Mock
}

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) Put

func (_m *CacheAdapter) Put(key string, mediaType string, content io.Reader) error

Put provides a mock function with given fields: key, mediaType, content

func (*CacheAdapter) SignedURL

func (_m *CacheAdapter) SignedURL(key string, duration time.Duration) (string, error)

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

type CatalogAdapter struct {
	mock.Mock
}

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

type CatalogRules struct {
	mock.Mock
}

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

type CertificateAuthority struct {
	mock.Mock
}

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

type CertificateManager struct {
	mock.Mock
}

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

type ClosableFoundMedia struct {
	mock.Mock
}

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

type CompletionReport struct {
	mock.Mock
}

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

type Config struct {
	mock.Mock
}

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) Get

func (_m *Config) Get(key string) interface{}

Get provides a mock function with given fields: key

func (*Config) GetAWSSession

func (_m *Config) GetAWSSession() *session.Session

GetAWSSession provides a mock function with given fields:

func (*Config) GetBool

func (_m *Config) GetBool(key string) bool

GetBool provides a mock function with given fields: key

func (*Config) GetInt

func (_m *Config) GetInt(key string) int

GetInt provides a mock function with given fields: key

func (*Config) GetIntOrDefault

func (_m *Config) GetIntOrDefault(key string, defaultValue int) int

GetIntOrDefault provides a mock function with given fields: key, defaultValue

func (*Config) GetString

func (_m *Config) GetString(key string) string

GetString provides a mock function with given fields: key

func (*Config) GetStringOrDefault

func (_m *Config) GetStringOrDefault(key string, defaultValue string) string

GetStringOrDefault provides a mock function with given fields: key, defaultValue

type CreateAlbumPort

type CreateAlbumPort struct {
	mock.Mock
}

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

type DeleteAlbumPort struct {
	mock.Mock
}

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

type DetailsReaderAdapter struct {
	mock.Mock
}

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

type DynamoBatchGetItem struct {
	mock.Mock
}

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

BatchGetItem provides a mock function with given fields: _a0

type DynamoBatchWriteItem

type DynamoBatchWriteItem struct {
	mock.Mock
}

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

BatchWriteItem provides a mock function with given fields: _a0

type DynamoQuery

type DynamoQuery struct {
	mock.Mock
}

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

Query provides a mock function with given fields: d

type ExistingRecordRepositoryPort

type ExistingRecordRepositoryPort struct {
	mock.Mock
}

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

type FoundMedia struct {
	mock.Mock
}

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

type GetStreamAdapter struct {
	mock.Mock
}

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

BatchGet provides a mock function with given fields: _a0

type GrantRepository

type GrantRepository struct {
	mock.Mock
}

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

func (_m *GrantRepository) FindScopesById(ids ...aclcore.ScopeId) ([]*aclcore.Scope, error)

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

type InteractiveActionsPort struct {
	mock.Mock
}

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

type InteractiveRendererPort struct {
	mock.Mock
}

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

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

type Listener struct {
	mock.Mock
}

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.

func (*Listener) Execute

func (_m *Listener) Execute(_a0 config.Config)

Execute provides a mock function with given fields: _a0

type MediaAlbumResolver

type MediaAlbumResolver struct {
	mock.Mock
}

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

type PostAnalyseFilter struct {
	mock.Mock
}

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

type PreScanTransformation struct {
	mock.Mock
}

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

PreScan provides a mock function with given fields: run

type PrintReadTerminalPort

type PrintReadTerminalPort struct {
	mock.Mock
}

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

type RenameAlbumPort struct {
	mock.Mock
}

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

type RepositoryAdapter struct {
	mock.Mock
}

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

func (_m *RepositoryAdapter) FindAlbums(ids ...catalog.AlbumId) ([]*catalog.Album, error)

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

type ResizerAdapter struct {
	mock.Mock
}

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

type ReverseScopesReader struct {
	mock.Mock
}

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

type SSOAuthenticator struct {
	mock.Mock
}

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

type ScanStreamExecutor struct {
	mock.Mock
}

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

Scan provides a mock function with given fields: input

type ScanTransformation

type ScanTransformation struct {
	mock.Mock
}

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

GeneratePatches provides a mock function with given fields: run, item

type ScopeRepository

type ScopeRepository struct {
	mock.Mock
}

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

func (_m *ScopeRepository) FindScopesById(ids ...aclcore.ScopeId) ([]*aclcore.Scope, error)

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

type ScopeWriter struct {
	mock.Mock
}

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

type ScopesReader struct {
	mock.Mock
}

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

func (_m *ScopesReader) FindScopesById(ids ...aclcore.ScopeId) ([]*aclcore.Scope, error)

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

type Segment struct {
	mock.Mock
}

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.

func (*Segment) Content

func (_m *Segment) Content(options screen.RenderingOptions) string

Content provides a mock function with given fields: options

type ShareAlbumCatalogPort

type ShareAlbumCatalogPort struct {
	mock.Mock
}

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.

func (*ShareAlbumCatalogPort) FindAlbum

func (_m *ShareAlbumCatalogPort) FindAlbum(owner string, folderName string) (*catalog.Album, error)

FindAlbum provides a mock function with given fields: owner, folderName

type SourceVolume

type SourceVolume struct {
	mock.Mock
}

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

type StoreAdapter struct {
	mock.Mock
}

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

func (_m *StoreAdapter) SignedURL(key string, duration time.Duration) (string, error)

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

type StoreAndCache struct {
	mock.Mock
}

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) Put

func (_m *StoreAndCache) Put(key string, mediaType string, content io.Reader) error

Put provides a mock function with given fields: key, mediaType, content

func (*StoreAndCache) SignedURL

func (_m *StoreAndCache) SignedURL(key string, duration time.Duration) (string, error)

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

type Stream struct {
	mock.Mock
}

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.

func (*Stream) Count

func (_m *Stream) Count() int64

Count provides a mock function with given fields:

func (*Stream) Error

func (_m *Stream) Error() error

Error provides a mock function with given fields:

func (*Stream) HasNext

func (_m *Stream) HasNext() bool

HasNext provides a mock function with given fields:

func (*Stream) Next

func (_m *Stream) Next() map[string]*dynamodb.AttributeValue

Next provides a mock function with given fields:

type SuggestionRecordRepositoryPort

type SuggestionRecordRepositoryPort struct {
	mock.Mock
}

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

type TimelineAdapter struct {
	mock.Mock
}

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) FindAlbum

func (_m *TimelineAdapter) FindAlbum(dateTime time.Time) (string, bool, error)

FindAlbum provides a mock function with given fields: dateTime

func (*TimelineAdapter) FindOrCreateAlbum

func (_m *TimelineAdapter) FindOrCreateAlbum(mediaTime time.Time) (string, bool, error)

FindOrCreateAlbum provides a mock function with given fields: mediaTime

type TrackAnalysed

type TrackAnalysed struct {
	mock.Mock
}

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

type TrackEvents struct {
	mock.Mock
}

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

type TrackScanComplete struct {
	mock.Mock
}

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

type TrackUploaded struct {
	mock.Mock
}

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

type UpdateAlbumPort struct {
	mock.Mock
}

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

func (_m *UpdateAlbumPort) UpdateAlbum(folderName string, start time.Time, end time.Time) error

UpdateAlbum provides a mock function with given fields: folderName, start, end

type UserInputPort

type UserInputPort struct {
	mock.Mock
}

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:

Jump to

Keyboard shortcuts

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