mocks

package
v1.5.40 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: AGPL-3.0 Imports: 15 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 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

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

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 AWSAdapterNames added in v1.5.39

type AWSAdapterNames struct {
	mock.Mock
}

AWSAdapterNames is an autogenerated mock type for the AWSAdapterNames type

func NewAWSAdapterNames added in v1.5.39

func NewAWSAdapterNames(t interface {
	mock.TestingT
	Cleanup(func())
}) *AWSAdapterNames

NewAWSAdapterNames creates a new instance of AWSAdapterNames. 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 (*AWSAdapterNames) ArchiveCacheBucketName added in v1.5.39

func (_m *AWSAdapterNames) ArchiveCacheBucketName() string

ArchiveCacheBucketName provides a mock function with given fields:

func (*AWSAdapterNames) ArchiveJobsSNSARN added in v1.5.39

func (_m *AWSAdapterNames) ArchiveJobsSNSARN() string

ArchiveJobsSNSARN provides a mock function with given fields:

func (*AWSAdapterNames) ArchiveJobsSQSURL added in v1.5.39

func (_m *AWSAdapterNames) ArchiveJobsSQSURL() string

ArchiveJobsSQSURL provides a mock function with given fields:

func (*AWSAdapterNames) ArchiveMainBucketName added in v1.5.39

func (_m *AWSAdapterNames) ArchiveMainBucketName() string

ArchiveMainBucketName provides a mock function with given fields:

func (*AWSAdapterNames) DynamoDBName added in v1.5.39

func (_m *AWSAdapterNames) DynamoDBName() string

DynamoDBName provides a mock function with given fields:

type AnalyserDecorator added in v1.5.0

type AnalyserDecorator struct {
	mock.Mock
}

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.RunnerAnalyser) backup.RunnerAnalyser

Decorate provides a mock function with given fields: analyseFunc

type AsyncJobAdapter

type AsyncJobAdapter struct {
	mock.Mock
}

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

type BArchiveAdapter struct {
	mock.Mock
}

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

type BackupSuggestionPort struct {
	mock.Mock
}

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

type CArchiveAdapter struct {
	mock.Mock
}

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 catalog.Owner, ids []catalog.MediaId, name catalog.FolderName) error

MoveMedias provides a mock function with given fields: owner, ids, name

func (*CArchiveAdapter) Observe added in v1.5.33

func (_m *CArchiveAdapter) Observe(ctx context.Context, transfers catalog.TransferredMedias) error

Observe provides a mock function with given fields: ctx, transfers

type CacheAdapter

type CacheAdapter struct {
	mock.Mock
}

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

type CatalogRules struct {
	mock.Mock
}

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

type CertificateAuthority struct {
	mock.Mock
}

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(ctx context.Context, email string, domain string) (*dnsdomain.CompleteCertificate, error)

RequestCertificate provides a mock function with given fields: ctx, email, domain

type CertificateManager

type CertificateManager struct {
	mock.Mock
}

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(ctx context.Context, domain string) (*dnsdomain.ExistingCertificate, error)

FindCertificate provides a mock function with given fields: ctx, domain

func (*CertificateManager) InstallCertificate

func (_m *CertificateManager) InstallCertificate(ctx context.Context, id string, certificate dnsdomain.CompleteCertificate) error

InstallCertificate provides a mock function with given fields: ctx, id, certificate

type ClosableFoundMedia

type ClosableFoundMedia struct {
	mock.Mock
}

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

type CompletionReport struct {
	mock.Mock
}

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

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func NewConfig

func NewConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Config) Get

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

Get provides a mock function with given fields: key

func (*Config) GetAWSFactory added in v1.5.33

func (_m *Config) GetAWSFactory() *awsfactory.AWSFactory

GetAWSFactory provides a mock function with given fields:

func (*Config) GetAWSV2Config added in v1.5.20

func (_m *Config) GetAWSV2Config() aws.Config

GetAWSV2Config 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 ConfigFactory added in v1.5.33

type ConfigFactory struct {
	mock.Mock
}

ConfigFactory is an autogenerated mock type for the ConfigFactory type

func NewConfigFactory added in v1.5.33

func NewConfigFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigFactory

NewConfigFactory creates a new instance of ConfigFactory. 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 (*ConfigFactory) NewConfig added in v1.5.33

func (_m *ConfigFactory) NewConfig(ctx context.Context) (aws.Config, error)

NewConfig provides a mock function with given fields: ctx

type ConfigFactoryFunc added in v1.5.33

type ConfigFactoryFunc struct {
	mock.Mock
}

ConfigFactoryFunc is an autogenerated mock type for the ConfigFactoryFunc type

func NewConfigFactoryFunc added in v1.5.33

func NewConfigFactoryFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigFactoryFunc

NewConfigFactoryFunc creates a new instance of ConfigFactoryFunc. 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 (*ConfigFactoryFunc) Execute added in v1.5.33

func (_m *ConfigFactoryFunc) Execute(ctx context.Context) (aws.Config, error)

Execute provides a mock function with given fields: ctx

type CreateAlbumPort

type CreateAlbumPort struct {
	mock.Mock
}

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

type DeleteAlbumPort struct {
	mock.Mock
}

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

type DetailsReaderAdapter struct {
	mock.Mock
}

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

type DynamoBatchGetItem struct {
	mock.Mock
}

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(ctx context.Context, params *dynamodb.BatchGetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.BatchGetItemOutput, error)

BatchGetItem provides a mock function with given fields: ctx, params, optFns

type DynamoBatchWriteItem

type DynamoBatchWriteItem struct {
	mock.Mock
}

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(ctx context.Context, params *dynamodb.BatchWriteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.BatchWriteItemOutput, error)

BatchWriteItem provides a mock function with given fields: ctx, params, optFns

type DynamoQuery

type DynamoQuery struct {
	mock.Mock
}

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(ctx context.Context, d *dynamodb.QueryInput, optFns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)

Query provides a mock function with given fields: ctx, d, optFns

type ExistingRecordRepositoryPort

type ExistingRecordRepositoryPort struct {
	mock.Mock
}

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 FindAlbumsByOwnerPort added in v1.5.33

type FindAlbumsByOwnerPort struct {
	mock.Mock
}

FindAlbumsByOwnerPort is an autogenerated mock type for the FindAlbumsByOwnerPort type

func NewFindAlbumsByOwnerPort added in v1.5.33

func NewFindAlbumsByOwnerPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindAlbumsByOwnerPort

NewFindAlbumsByOwnerPort creates a new instance of FindAlbumsByOwnerPort. 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 (*FindAlbumsByOwnerPort) FindAlbumsByOwner added in v1.5.33

func (_m *FindAlbumsByOwnerPort) FindAlbumsByOwner(ctx context.Context, owner catalog.Owner) ([]*catalog.Album, error)

FindAlbumsByOwner provides a mock function with given fields: ctx, owner

type FindAlbumsByOwnerPortFunc added in v1.5.33

type FindAlbumsByOwnerPortFunc struct {
	mock.Mock
}

FindAlbumsByOwnerPortFunc is an autogenerated mock type for the FindAlbumsByOwnerPortFunc type

func NewFindAlbumsByOwnerPortFunc added in v1.5.33

func NewFindAlbumsByOwnerPortFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindAlbumsByOwnerPortFunc

NewFindAlbumsByOwnerPortFunc creates a new instance of FindAlbumsByOwnerPortFunc. 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 (*FindAlbumsByOwnerPortFunc) Execute added in v1.5.33

func (_m *FindAlbumsByOwnerPortFunc) Execute(ctx context.Context, owner catalog.Owner) ([]*catalog.Album, error)

Execute provides a mock function with given fields: ctx, owner

type FoundMedia

type FoundMedia struct {
	mock.Mock
}

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

type GetStreamAdapter struct {
	mock.Mock
}

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

BatchGet provides a mock function with given fields: ctx, key

type GrantRepository

type GrantRepository struct {
	mock.Mock
}

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

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

type IAccessTokenGenerator struct {
	mock.Mock
}

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

type IRefreshTokenGenerator struct {
	mock.Mock
}

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

type IdentityDetailsStore struct {
	mock.Mock
}

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

type IdentityQueriesIdentityRepository struct {
	mock.Mock
}

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

type IdentityQueriesScopeRepository struct {
	mock.Mock
}

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

type IdentityRepository struct {
	mock.Mock
}

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 InsertAlbumPort added in v1.5.33

type InsertAlbumPort struct {
	mock.Mock
}

InsertAlbumPort is an autogenerated mock type for the InsertAlbumPort type

func NewInsertAlbumPort added in v1.5.33

func NewInsertAlbumPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *InsertAlbumPort

NewInsertAlbumPort creates a new instance of InsertAlbumPort. 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 (*InsertAlbumPort) InsertAlbum added in v1.5.33

func (_m *InsertAlbumPort) InsertAlbum(ctx context.Context, album catalog.Album) error

InsertAlbum provides a mock function with given fields: ctx, album

type InsertAlbumPortFunc added in v1.5.33

type InsertAlbumPortFunc struct {
	mock.Mock
}

InsertAlbumPortFunc is an autogenerated mock type for the InsertAlbumPortFunc type

func NewInsertAlbumPortFunc added in v1.5.33

func NewInsertAlbumPortFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *InsertAlbumPortFunc

NewInsertAlbumPortFunc creates a new instance of InsertAlbumPortFunc. 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 (*InsertAlbumPortFunc) Execute added in v1.5.33

func (_m *InsertAlbumPortFunc) Execute(ctx context.Context, album catalog.Album) error

Execute provides a mock function with given fields: ctx, album

type InteractiveActionsPort

type InteractiveActionsPort struct {
	mock.Mock
}

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

type InteractiveRendererPort struct {
	mock.Mock
}

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

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 ListMediaIdsPort added in v1.5.33

type ListMediaIdsPort struct {
	mock.Mock
}

ListMediaIdsPort is an autogenerated mock type for the ListMediaIdsPort type

func NewListMediaIdsPort added in v1.5.33

func NewListMediaIdsPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *ListMediaIdsPort

NewListMediaIdsPort creates a new instance of ListMediaIdsPort. 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 (*ListMediaIdsPort) ListMediaIdsFromSelector added in v1.5.33

func (_m *ListMediaIdsPort) ListMediaIdsFromSelector(ctx context.Context, selector []catalog.MediaSelector) ([]catalog.MediaId, error)

ListMediaIdsFromSelector provides a mock function with given fields: ctx, selector

type Listener

type Listener struct {
	mock.Mock
}

Listener is an autogenerated mock type for the Listener type

func NewListener

func NewListener(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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 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 MoveMediaPort added in v1.5.33

type MoveMediaPort struct {
	mock.Mock
}

MoveMediaPort is an autogenerated mock type for the MoveMediaPort type

func NewMoveMediaPort added in v1.5.33

func NewMoveMediaPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *MoveMediaPort

NewMoveMediaPort creates a new instance of MoveMediaPort. 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 (*MoveMediaPort) MoveMedia added in v1.5.33

func (_m *MoveMediaPort) MoveMedia(ctx context.Context, albumId catalog.AlbumId, mediaIds []catalog.MediaId) error

MoveMedia provides a mock function with given fields: ctx, albumId, mediaIds

type MoveMediaPortFunc added in v1.5.33

type MoveMediaPortFunc struct {
	mock.Mock
}

MoveMediaPortFunc is an autogenerated mock type for the MoveMediaPortFunc type

func NewMoveMediaPortFunc added in v1.5.33

func NewMoveMediaPortFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MoveMediaPortFunc

NewMoveMediaPortFunc creates a new instance of MoveMediaPortFunc. 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 (*MoveMediaPortFunc) Execute added in v1.5.33

func (_m *MoveMediaPortFunc) Execute(ctx context.Context, albumId catalog.AlbumId, mediaIds []catalog.MediaId) error

Execute provides a mock function with given fields: ctx, albumId, mediaIds

type Names added in v1.5.33

type Names struct {
	mock.Mock
}

Names is an autogenerated mock type for the Names type

func NewNames added in v1.5.33

func NewNames(t interface {
	mock.TestingT
	Cleanup(func())
}) *Names

NewNames creates a new instance of Names. 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 (*Names) DynamoDBMainTable added in v1.5.33

func (_m *Names) DynamoDBMainTable() string

DynamoDBMainTable provides a mock function with given fields:

type PostAnalyseFilter

type PostAnalyseFilter struct {
	mock.Mock
}

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

type PrintReadTerminalPort struct {
	mock.Mock
}

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

type RefreshTokenRepository struct {
	mock.Mock
}

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

type RenameAlbumPort struct {
	mock.Mock
}

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

type RepositoryAdapter struct {
	mock.Mock
}

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(ctx context.Context, id catalog.AlbumId) error

DeleteEmptyAlbum provides a mock function with given fields: ctx, id

func (*RepositoryAdapter) FindAlbums

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

FindAlbums provides a mock function with given fields: ctx, ids

func (*RepositoryAdapter) FindAlbumsByOwner

func (_m *RepositoryAdapter) FindAlbumsByOwner(ctx context.Context, owner catalog.Owner) ([]*catalog.Album, error)

FindAlbumsByOwner provides a mock function with given fields: ctx, owner

func (*RepositoryAdapter) FindExistingSignatures

func (_m *RepositoryAdapter) FindExistingSignatures(ctx context.Context, owner catalog.Owner, signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)

FindExistingSignatures provides a mock function with given fields: ctx, owner, signatures

func (*RepositoryAdapter) FindMediaCurrentAlbum

func (_m *RepositoryAdapter) FindMediaCurrentAlbum(ctx context.Context, owner catalog.Owner, mediaId catalog.MediaId) (*catalog.AlbumId, error)

FindMediaCurrentAlbum provides a mock function with given fields: ctx, owner, mediaId

func (*RepositoryAdapter) FindMediaIds

func (_m *RepositoryAdapter) FindMediaIds(ctx context.Context, request *catalog.FindMediaRequest) ([]catalog.MediaId, error)

FindMediaIds provides a mock function with given fields: ctx, request

func (*RepositoryAdapter) FindMedias

func (_m *RepositoryAdapter) FindMedias(ctx context.Context, request *catalog.FindMediaRequest) ([]*catalog.MediaMeta, error)

FindMedias provides a mock function with given fields: ctx, request

func (*RepositoryAdapter) InsertAlbum

func (_m *RepositoryAdapter) InsertAlbum(ctx context.Context, album catalog.Album) error

InsertAlbum provides a mock function with given fields: ctx, album

func (*RepositoryAdapter) InsertMedias

func (_m *RepositoryAdapter) InsertMedias(ctx context.Context, owner catalog.Owner, media []catalog.CreateMediaRequest) error

InsertMedias provides a mock function with given fields: ctx, owner, media

func (*RepositoryAdapter) TransferMedias

func (_m *RepositoryAdapter) TransferMedias(ctx context.Context, owner catalog.Owner, mediaIds []catalog.MediaId, newFolderName catalog.FolderName) error

TransferMedias provides a mock function with given fields: ctx, owner, mediaIds, newFolderName

func (*RepositoryAdapter) TransferMediasFromRecords added in v1.5.33

func (_m *RepositoryAdapter) TransferMediasFromRecords(ctx context.Context, records catalog.MediaTransferRecords) (catalog.TransferredMedias, error)

TransferMediasFromRecords provides a mock function with given fields: ctx, records

func (*RepositoryAdapter) UpdateAlbum

func (_m *RepositoryAdapter) UpdateAlbum(ctx context.Context, album catalog.Album) error

UpdateAlbum provides a mock function with given fields: ctx, album

type RepositoryContract added in v1.5.33

type RepositoryContract struct {
	mock.Mock
}

RepositoryContract is an autogenerated mock type for the RepositoryContract type

func NewRepositoryContract added in v1.5.33

func NewRepositoryContract(t interface {
	mock.TestingT
	Cleanup(func())
}) *RepositoryContract

NewRepositoryContract creates a new instance of RepositoryContract. 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 (*RepositoryContract) DeleteEmptyAlbum added in v1.5.33

func (_m *RepositoryContract) DeleteEmptyAlbum(ctx context.Context, id catalog.AlbumId) error

DeleteEmptyAlbum provides a mock function with given fields: ctx, id

func (*RepositoryContract) FindAlbums added in v1.5.33

func (_m *RepositoryContract) FindAlbums(ctx context.Context, ids ...catalog.AlbumId) ([]*catalog.Album, error)

FindAlbums provides a mock function with given fields: ctx, ids

func (*RepositoryContract) FindAlbumsByOwner added in v1.5.33

func (_m *RepositoryContract) FindAlbumsByOwner(ctx context.Context, owner catalog.Owner) ([]*catalog.Album, error)

FindAlbumsByOwner provides a mock function with given fields: ctx, owner

func (*RepositoryContract) FindExistingSignatures added in v1.5.33

func (_m *RepositoryContract) FindExistingSignatures(ctx context.Context, owner catalog.Owner, signatures []*catalog.MediaSignature) ([]*catalog.MediaSignature, error)

FindExistingSignatures provides a mock function with given fields: ctx, owner, signatures

func (*RepositoryContract) FindMediaCurrentAlbum added in v1.5.33

func (_m *RepositoryContract) FindMediaCurrentAlbum(ctx context.Context, owner catalog.Owner, mediaId catalog.MediaId) (*catalog.AlbumId, error)

FindMediaCurrentAlbum provides a mock function with given fields: ctx, owner, mediaId

func (*RepositoryContract) FindMediaIds added in v1.5.33

func (_m *RepositoryContract) FindMediaIds(ctx context.Context, request *catalog.FindMediaRequest) ([]catalog.MediaId, error)

FindMediaIds provides a mock function with given fields: ctx, request

func (*RepositoryContract) FindMedias added in v1.5.33

func (_m *RepositoryContract) FindMedias(ctx context.Context, request *catalog.FindMediaRequest) ([]*catalog.MediaMeta, error)

FindMedias provides a mock function with given fields: ctx, request

func (*RepositoryContract) InsertAlbum added in v1.5.33

func (_m *RepositoryContract) InsertAlbum(ctx context.Context, album catalog.Album) error

InsertAlbum provides a mock function with given fields: ctx, album

func (*RepositoryContract) InsertMedias added in v1.5.33

func (_m *RepositoryContract) InsertMedias(ctx context.Context, owner catalog.Owner, media []catalog.CreateMediaRequest) error

InsertMedias provides a mock function with given fields: ctx, owner, media

func (*RepositoryContract) TransferMedias added in v1.5.33

func (_m *RepositoryContract) TransferMedias(ctx context.Context, owner catalog.Owner, mediaIds []catalog.MediaId, newFolderName catalog.FolderName) error

TransferMedias provides a mock function with given fields: ctx, owner, mediaIds, newFolderName

func (*RepositoryContract) TransferMediasFromRecords added in v1.5.33

func (_m *RepositoryContract) TransferMediasFromRecords(ctx context.Context, records catalog.MediaTransferRecords) (catalog.TransferredMedias, error)

TransferMediasFromRecords provides a mock function with given fields: ctx, records

func (*RepositoryContract) UpdateAlbum added in v1.5.33

func (_m *RepositoryContract) UpdateAlbum(ctx context.Context, album catalog.Album) error

UpdateAlbum provides a mock function with given fields: ctx, album

type ResizerAdapter

type ResizerAdapter struct {
	mock.Mock
}

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

type ReverseScopesReader struct {
	mock.Mock
}

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

type RevokeAccessTokenAdapter struct {
	mock.Mock
}

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 RunnerAnalyser added in v1.5.20

type RunnerAnalyser struct {
	mock.Mock
}

RunnerAnalyser is an autogenerated mock type for the RunnerAnalyser type

func NewRunnerAnalyser added in v1.5.20

func NewRunnerAnalyser(t interface {
	mock.TestingT
	Cleanup(func())
}) *RunnerAnalyser

NewRunnerAnalyser creates a new instance of RunnerAnalyser. 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 (*RunnerAnalyser) Analyse added in v1.5.20

func (_m *RunnerAnalyser) Analyse(found backup.FoundMedia, progressChannel chan *backup.ProgressEvent) (*backup.AnalysedMedia, error)

Analyse provides a mock function with given fields: found, progressChannel

type RunnerAnalyserFunc added in v1.5.0

type RunnerAnalyserFunc struct {
	mock.Mock
}

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

type ScanStreamExecutor struct {
	mock.Mock
}

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(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)

Scan provides a mock function with given fields: ctx, params, optFns

type ScopeRepository

type ScopeRepository struct {
	mock.Mock
}

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

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

type ScopesReader struct {
	mock.Mock
}

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

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 SecretAccessKeyDecoder added in v1.5.33

type SecretAccessKeyDecoder struct {
	mock.Mock
}

SecretAccessKeyDecoder is an autogenerated mock type for the SecretAccessKeyDecoder type

func NewSecretAccessKeyDecoder added in v1.5.33

func NewSecretAccessKeyDecoder(t interface {
	mock.TestingT
	Cleanup(func())
}) *SecretAccessKeyDecoder

NewSecretAccessKeyDecoder creates a new instance of SecretAccessKeyDecoder. 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 (*SecretAccessKeyDecoder) Execute added in v1.5.33

func (_m *SecretAccessKeyDecoder) Execute(encodedValue string) (string, error)

Execute provides a mock function with given fields: encodedValue

type ShareAlbumCatalogPort

type ShareAlbumCatalogPort struct {
	mock.Mock
}

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.

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

type StoreAdapter struct {
	mock.Mock
}

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

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 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) 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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]types.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 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

type TimelineAdapter struct {
	mock.Mock
}

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) 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 TimelineMutationObserver added in v1.5.33

type TimelineMutationObserver struct {
	mock.Mock
}

TimelineMutationObserver is an autogenerated mock type for the TimelineMutationObserver type

func NewTimelineMutationObserver added in v1.5.33

func NewTimelineMutationObserver(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimelineMutationObserver

NewTimelineMutationObserver creates a new instance of TimelineMutationObserver. 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 (*TimelineMutationObserver) Observe added in v1.5.33

Observe provides a mock function with given fields: ctx, transfers

type TrackAnalysed

type TrackAnalysed struct {
	mock.Mock
}

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 backup.MediaCounter, total backup.MediaCounter, cached backup.MediaCounter)

OnAnalysed provides a mock function with given fields: done, total, cached

type TrackEvents

type TrackEvents struct {
	mock.Mock
}

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

type TrackScanComplete struct {
	mock.Mock
}

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

type TrackUploaded struct {
	mock.Mock
}

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 TransferMediasPort added in v1.5.33

type TransferMediasPort struct {
	mock.Mock
}

TransferMediasPort is an autogenerated mock type for the TransferMediasPort type

func NewTransferMediasPort added in v1.5.33

func NewTransferMediasPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransferMediasPort

NewTransferMediasPort creates a new instance of TransferMediasPort. 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 (*TransferMediasPort) TransferMediasFromRecords added in v1.5.33

func (_m *TransferMediasPort) TransferMediasFromRecords(ctx context.Context, records catalog.MediaTransferRecords) (catalog.TransferredMedias, error)

TransferMediasFromRecords provides a mock function with given fields: ctx, records

type UpdateAlbumPort

type UpdateAlbumPort struct {
	mock.Mock
}

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

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

Jump to

Keyboard shortcuts

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