mocks

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks provides mocks for various interfaces in models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageQueryResult added in v0.11.0

func ImageQueryResult(images []*models.Image, count int) *models.ImageQueryResult

func SceneQueryResult added in v0.11.0

func SceneQueryResult(scenes []*models.Scene, count int) *models.SceneQueryResult

Types

type Database added in v0.24.0

func NewDatabase added in v0.24.0

func NewDatabase() *Database

func (*Database) AddPostCommitHook added in v0.24.0

func (*Database) AddPostCommitHook(ctx context.Context, hook txn.TxnFunc)

func (*Database) AddPostRollbackHook added in v0.24.0

func (*Database) AddPostRollbackHook(ctx context.Context, hook txn.TxnFunc)

func (*Database) AssertExpectations added in v0.24.0

func (db *Database) AssertExpectations(t mock.TestingT)

func (*Database) Begin added in v0.24.0

func (*Database) Begin(ctx context.Context, exclusive bool) (context.Context, error)

func (*Database) Commit added in v0.24.0

func (*Database) Commit(ctx context.Context) error

func (*Database) Complete added in v0.24.0

func (*Database) Complete(ctx context.Context)

func (*Database) IsLocked added in v0.24.0

func (*Database) IsLocked(err error) bool

func (*Database) Repository added in v0.24.0

func (db *Database) Repository() models.Repository

func (*Database) Reset added in v0.24.0

func (*Database) Reset() error

func (*Database) Rollback added in v0.24.0

func (*Database) Rollback(ctx context.Context) error

func (*Database) WithDatabase added in v0.24.0

func (*Database) WithDatabase(ctx context.Context) (context.Context, error)

type FileReaderWriter added in v0.23.0

type FileReaderWriter struct {
	mock.Mock
}

FileReaderWriter is an autogenerated mock type for the FileReaderWriter type

func (*FileReaderWriter) CountAllInPaths added in v0.23.0

func (_m *FileReaderWriter) CountAllInPaths(ctx context.Context, p []string) (int, error)

CountAllInPaths provides a mock function with given fields: ctx, p

func (*FileReaderWriter) CountByFolderID added in v0.23.0

func (_m *FileReaderWriter) CountByFolderID(ctx context.Context, folderID models.FolderID) (int, error)

CountByFolderID provides a mock function with given fields: ctx, folderID

func (*FileReaderWriter) Create added in v0.23.0

func (_m *FileReaderWriter) Create(ctx context.Context, f models.File) error

Create provides a mock function with given fields: ctx, f

func (*FileReaderWriter) Destroy added in v0.23.0

func (_m *FileReaderWriter) Destroy(ctx context.Context, id models.FileID) error

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

func (*FileReaderWriter) DestroyFingerprints added in v0.24.0

func (_m *FileReaderWriter) DestroyFingerprints(ctx context.Context, fileID models.FileID, types []string) error

DestroyFingerprints provides a mock function with given fields: ctx, fileID, types

func (*FileReaderWriter) Find added in v0.23.0

func (_m *FileReaderWriter) Find(ctx context.Context, id ...models.FileID) ([]models.File, error)

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

func (*FileReaderWriter) FindAllByPath added in v0.23.0

func (_m *FileReaderWriter) FindAllByPath(ctx context.Context, path string) ([]models.File, error)

FindAllByPath provides a mock function with given fields: ctx, path

func (*FileReaderWriter) FindAllInPaths added in v0.23.0

func (_m *FileReaderWriter) FindAllInPaths(ctx context.Context, p []string, limit int, offset int) ([]models.File, error)

FindAllInPaths provides a mock function with given fields: ctx, p, limit, offset

func (*FileReaderWriter) FindByFileInfo added in v0.23.0

func (_m *FileReaderWriter) FindByFileInfo(ctx context.Context, info fs.FileInfo, size int64) ([]models.File, error)

FindByFileInfo provides a mock function with given fields: ctx, info, size

func (*FileReaderWriter) FindByFingerprint added in v0.23.0

func (_m *FileReaderWriter) FindByFingerprint(ctx context.Context, fp models.Fingerprint) ([]models.File, error)

FindByFingerprint provides a mock function with given fields: ctx, fp

func (*FileReaderWriter) FindByPath added in v0.23.0

func (_m *FileReaderWriter) FindByPath(ctx context.Context, path string) (models.File, error)

FindByPath provides a mock function with given fields: ctx, path

func (*FileReaderWriter) FindByZipFileID added in v0.23.0

func (_m *FileReaderWriter) FindByZipFileID(ctx context.Context, zipFileID models.FileID) ([]models.File, error)

FindByZipFileID provides a mock function with given fields: ctx, zipFileID

func (*FileReaderWriter) GetCaptions added in v0.23.0

func (_m *FileReaderWriter) GetCaptions(ctx context.Context, fileID models.FileID) ([]*models.VideoCaption, error)

GetCaptions provides a mock function with given fields: ctx, fileID

func (*FileReaderWriter) IsPrimary added in v0.23.0

func (_m *FileReaderWriter) IsPrimary(ctx context.Context, fileID models.FileID) (bool, error)

IsPrimary provides a mock function with given fields: ctx, fileID

func (*FileReaderWriter) ModifyFingerprints added in v0.24.0

func (_m *FileReaderWriter) ModifyFingerprints(ctx context.Context, fileID models.FileID, fingerprints []models.Fingerprint) error

ModifyFingerprints provides a mock function with given fields: ctx, fileID, fingerprints

func (*FileReaderWriter) Query added in v0.23.0

Query provides a mock function with given fields: ctx, options

func (*FileReaderWriter) Update added in v0.23.0

func (_m *FileReaderWriter) Update(ctx context.Context, f models.File) error

Update provides a mock function with given fields: ctx, f

func (*FileReaderWriter) UpdateCaptions added in v0.23.0

func (_m *FileReaderWriter) UpdateCaptions(ctx context.Context, fileID models.FileID, captions []*models.VideoCaption) error

UpdateCaptions provides a mock function with given fields: ctx, fileID, captions

type FolderReaderWriter added in v0.23.0

type FolderReaderWriter struct {
	mock.Mock
}

FolderReaderWriter is an autogenerated mock type for the FolderReaderWriter type

func (*FolderReaderWriter) CountAllInPaths added in v0.23.0

func (_m *FolderReaderWriter) CountAllInPaths(ctx context.Context, p []string) (int, error)

CountAllInPaths provides a mock function with given fields: ctx, p

func (*FolderReaderWriter) Create added in v0.23.0

func (_m *FolderReaderWriter) Create(ctx context.Context, f *models.Folder) error

Create provides a mock function with given fields: ctx, f

func (*FolderReaderWriter) Destroy added in v0.23.0

func (_m *FolderReaderWriter) Destroy(ctx context.Context, id models.FolderID) error

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

func (*FolderReaderWriter) Find added in v0.23.0

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

func (*FolderReaderWriter) FindAllInPaths added in v0.23.0

func (_m *FolderReaderWriter) FindAllInPaths(ctx context.Context, p []string, limit int, offset int) ([]*models.Folder, error)

FindAllInPaths provides a mock function with given fields: ctx, p, limit, offset

func (*FolderReaderWriter) FindByParentFolderID added in v0.23.0

func (_m *FolderReaderWriter) FindByParentFolderID(ctx context.Context, parentFolderID models.FolderID) ([]*models.Folder, error)

FindByParentFolderID provides a mock function with given fields: ctx, parentFolderID

func (*FolderReaderWriter) FindByPath added in v0.23.0

func (_m *FolderReaderWriter) FindByPath(ctx context.Context, path string) (*models.Folder, error)

FindByPath provides a mock function with given fields: ctx, path

func (*FolderReaderWriter) FindByZipFileID added in v0.23.0

func (_m *FolderReaderWriter) FindByZipFileID(ctx context.Context, zipFileID models.FileID) ([]*models.Folder, error)

FindByZipFileID provides a mock function with given fields: ctx, zipFileID

func (*FolderReaderWriter) Update added in v0.23.0

func (_m *FolderReaderWriter) Update(ctx context.Context, f *models.Folder) error

Update provides a mock function with given fields: ctx, f

type GalleryChapterReaderWriter added in v0.20.0

type GalleryChapterReaderWriter struct {
	mock.Mock
}

GalleryChapterReaderWriter is an autogenerated mock type for the GalleryChapterReaderWriter type

func (*GalleryChapterReaderWriter) Create added in v0.20.0

func (_m *GalleryChapterReaderWriter) Create(ctx context.Context, newGalleryChapter *models.GalleryChapter) error

Create provides a mock function with given fields: ctx, newGalleryChapter

func (*GalleryChapterReaderWriter) Destroy added in v0.20.0

func (_m *GalleryChapterReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*GalleryChapterReaderWriter) Find added in v0.20.0

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

func (*GalleryChapterReaderWriter) FindByGalleryID added in v0.20.0

func (_m *GalleryChapterReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.GalleryChapter, error)

FindByGalleryID provides a mock function with given fields: ctx, galleryID

func (*GalleryChapterReaderWriter) FindMany added in v0.20.0

func (_m *GalleryChapterReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.GalleryChapter, error)

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

func (*GalleryChapterReaderWriter) Update added in v0.20.0

func (_m *GalleryChapterReaderWriter) Update(ctx context.Context, updatedGalleryChapter *models.GalleryChapter) error

Update provides a mock function with given fields: ctx, updatedGalleryChapter

func (*GalleryChapterReaderWriter) UpdatePartial added in v0.22.0

func (_m *GalleryChapterReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGalleryChapter models.GalleryChapterPartial) (*models.GalleryChapter, error)

UpdatePartial provides a mock function with given fields: ctx, id, updatedGalleryChapter

type GalleryReaderWriter

type GalleryReaderWriter struct {
	mock.Mock
}

GalleryReaderWriter is an autogenerated mock type for the GalleryReaderWriter type

func (*GalleryReaderWriter) AddFileID added in v0.23.0

func (_m *GalleryReaderWriter) AddFileID(ctx context.Context, id int, fileID models.FileID) error

AddFileID provides a mock function with given fields: ctx, id, fileID

func (*GalleryReaderWriter) AddImages added in v0.23.0

func (_m *GalleryReaderWriter) AddImages(ctx context.Context, galleryID int, imageIDs ...int) error

AddImages provides a mock function with given fields: ctx, galleryID, imageIDs

func (*GalleryReaderWriter) All

All provides a mock function with given fields: ctx

func (*GalleryReaderWriter) Count added in v0.5.0

func (_m *GalleryReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*GalleryReaderWriter) CountByFileID added in v0.23.0

func (_m *GalleryReaderWriter) CountByFileID(ctx context.Context, fileID models.FileID) (int, error)

CountByFileID provides a mock function with given fields: ctx, fileID

func (*GalleryReaderWriter) Create

func (_m *GalleryReaderWriter) Create(ctx context.Context, newGallery *models.Gallery, fileIDs []models.FileID) error

Create provides a mock function with given fields: ctx, newGallery, fileIDs

func (*GalleryReaderWriter) Destroy added in v0.5.0

func (_m *GalleryReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*GalleryReaderWriter) Find added in v0.5.0

func (_m *GalleryReaderWriter) Find(ctx context.Context, id int) (*models.Gallery, error)

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

func (*GalleryReaderWriter) FindByChecksum

func (_m *GalleryReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Gallery, error)

FindByChecksum provides a mock function with given fields: ctx, checksum

func (*GalleryReaderWriter) FindByChecksums added in v0.5.0

func (_m *GalleryReaderWriter) FindByChecksums(ctx context.Context, checksums []string) ([]*models.Gallery, error)

FindByChecksums provides a mock function with given fields: ctx, checksums

func (*GalleryReaderWriter) FindByFileID added in v0.23.0

func (_m *GalleryReaderWriter) FindByFileID(ctx context.Context, fileID models.FileID) ([]*models.Gallery, error)

FindByFileID provides a mock function with given fields: ctx, fileID

func (*GalleryReaderWriter) FindByFingerprints added in v0.23.0

func (_m *GalleryReaderWriter) FindByFingerprints(ctx context.Context, fp []models.Fingerprint) ([]*models.Gallery, error)

FindByFingerprints provides a mock function with given fields: ctx, fp

func (*GalleryReaderWriter) FindByFolderID added in v0.23.0

func (_m *GalleryReaderWriter) FindByFolderID(ctx context.Context, folderID models.FolderID) ([]*models.Gallery, error)

FindByFolderID provides a mock function with given fields: ctx, folderID

func (*GalleryReaderWriter) FindByImageID

func (_m *GalleryReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Gallery, error)

FindByImageID provides a mock function with given fields: ctx, imageID

func (*GalleryReaderWriter) FindByPath

func (_m *GalleryReaderWriter) FindByPath(ctx context.Context, path string) ([]*models.Gallery, error)

FindByPath provides a mock function with given fields: ctx, path

func (*GalleryReaderWriter) FindBySceneID

func (_m *GalleryReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Gallery, error)

FindBySceneID provides a mock function with given fields: ctx, sceneID

func (*GalleryReaderWriter) FindMany

func (_m *GalleryReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Gallery, error)

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

func (*GalleryReaderWriter) FindUserGalleryByTitle added in v0.23.0

func (_m *GalleryReaderWriter) FindUserGalleryByTitle(ctx context.Context, title string) ([]*models.Gallery, error)

FindUserGalleryByTitle provides a mock function with given fields: ctx, title

func (*GalleryReaderWriter) GetFiles added in v0.23.0

func (_m *GalleryReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]models.File, error)

GetFiles provides a mock function with given fields: ctx, relatedID

func (*GalleryReaderWriter) GetImageIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetImageIDs(ctx context.Context, relatedID int) ([]int, error)

GetImageIDs provides a mock function with given fields: ctx, relatedID

func (*GalleryReaderWriter) GetManyFileIDs added in v0.23.0

func (_m *GalleryReaderWriter) GetManyFileIDs(ctx context.Context, ids []int) ([][]models.FileID, error)

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

func (*GalleryReaderWriter) GetPerformerIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)

GetPerformerIDs provides a mock function with given fields: ctx, relatedID

func (*GalleryReaderWriter) GetSceneIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetSceneIDs(ctx context.Context, relatedID int) ([]int, error)

GetSceneIDs provides a mock function with given fields: ctx, relatedID

func (*GalleryReaderWriter) GetTagIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)

GetTagIDs provides a mock function with given fields: ctx, relatedID

func (*GalleryReaderWriter) GetURLs added in v0.23.0

func (_m *GalleryReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)

GetURLs provides a mock function with given fields: ctx, relatedID

func (*GalleryReaderWriter) Query added in v0.5.0

func (_m *GalleryReaderWriter) Query(ctx context.Context, galleryFilter *models.GalleryFilterType, findFilter *models.FindFilterType) ([]*models.Gallery, int, error)

Query provides a mock function with given fields: ctx, galleryFilter, findFilter

func (*GalleryReaderWriter) QueryCount added in v0.7.0

func (_m *GalleryReaderWriter) QueryCount(ctx context.Context, galleryFilter *models.GalleryFilterType, findFilter *models.FindFilterType) (int, error)

QueryCount provides a mock function with given fields: ctx, galleryFilter, findFilter

func (*GalleryReaderWriter) RemoveImages added in v0.23.0

func (_m *GalleryReaderWriter) RemoveImages(ctx context.Context, galleryID int, imageIDs ...int) error

RemoveImages provides a mock function with given fields: ctx, galleryID, imageIDs

func (*GalleryReaderWriter) ResetCover added in v0.27.0

func (_m *GalleryReaderWriter) ResetCover(ctx context.Context, galleryID int) error

ResetCover provides a mock function with given fields: ctx, galleryID

func (*GalleryReaderWriter) SetCover added in v0.27.0

func (_m *GalleryReaderWriter) SetCover(ctx context.Context, galleryID int, coverImageID int) error

SetCover provides a mock function with given fields: ctx, galleryID, coverImageID

func (*GalleryReaderWriter) Update

func (_m *GalleryReaderWriter) Update(ctx context.Context, updatedGallery *models.Gallery) error

Update provides a mock function with given fields: ctx, updatedGallery

func (*GalleryReaderWriter) UpdateImages added in v0.5.0

func (_m *GalleryReaderWriter) UpdateImages(ctx context.Context, galleryID int, imageIDs []int) error

UpdateImages provides a mock function with given fields: ctx, galleryID, imageIDs

func (*GalleryReaderWriter) UpdatePartial added in v0.5.0

func (_m *GalleryReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGallery models.GalleryPartial) (*models.Gallery, error)

UpdatePartial provides a mock function with given fields: ctx, id, updatedGallery

type GroupReaderWriter added in v0.27.0

type GroupReaderWriter struct {
	mock.Mock
}

GroupReaderWriter is an autogenerated mock type for the GroupReaderWriter type

func (*GroupReaderWriter) All added in v0.27.0

func (_m *GroupReaderWriter) All(ctx context.Context) ([]*models.Group, error)

All provides a mock function with given fields: ctx

func (*GroupReaderWriter) Count added in v0.27.0

func (_m *GroupReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*GroupReaderWriter) CountByPerformerID added in v0.27.0

func (_m *GroupReaderWriter) CountByPerformerID(ctx context.Context, performerID int) (int, error)

CountByPerformerID provides a mock function with given fields: ctx, performerID

func (*GroupReaderWriter) CountByStudioID added in v0.27.0

func (_m *GroupReaderWriter) CountByStudioID(ctx context.Context, studioID int) (int, error)

CountByStudioID provides a mock function with given fields: ctx, studioID

func (*GroupReaderWriter) Create added in v0.27.0

func (_m *GroupReaderWriter) Create(ctx context.Context, newGroup *models.Group) error

Create provides a mock function with given fields: ctx, newGroup

func (*GroupReaderWriter) Destroy added in v0.27.0

func (_m *GroupReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*GroupReaderWriter) Find added in v0.27.0

func (_m *GroupReaderWriter) Find(ctx context.Context, id int) (*models.Group, error)

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

func (*GroupReaderWriter) FindByName added in v0.27.0

func (_m *GroupReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Group, error)

FindByName provides a mock function with given fields: ctx, name, nocase

func (*GroupReaderWriter) FindByNames added in v0.27.0

func (_m *GroupReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Group, error)

FindByNames provides a mock function with given fields: ctx, names, nocase

func (*GroupReaderWriter) FindByPerformerID added in v0.27.0

func (_m *GroupReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Group, error)

FindByPerformerID provides a mock function with given fields: ctx, performerID

func (*GroupReaderWriter) FindByStudioID added in v0.27.0

func (_m *GroupReaderWriter) FindByStudioID(ctx context.Context, studioID int) ([]*models.Group, error)

FindByStudioID provides a mock function with given fields: ctx, studioID

func (*GroupReaderWriter) FindMany added in v0.27.0

func (_m *GroupReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Group, error)

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

func (*GroupReaderWriter) GetBackImage added in v0.27.0

func (_m *GroupReaderWriter) GetBackImage(ctx context.Context, groupID int) ([]byte, error)

GetBackImage provides a mock function with given fields: ctx, groupID

func (*GroupReaderWriter) GetContainingGroupDescriptions added in v0.27.0

func (_m *GroupReaderWriter) GetContainingGroupDescriptions(ctx context.Context, id int) ([]models.GroupIDDescription, error)

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

func (*GroupReaderWriter) GetFrontImage added in v0.27.0

func (_m *GroupReaderWriter) GetFrontImage(ctx context.Context, groupID int) ([]byte, error)

GetFrontImage provides a mock function with given fields: ctx, groupID

func (*GroupReaderWriter) GetSubGroupDescriptions added in v0.27.0

func (_m *GroupReaderWriter) GetSubGroupDescriptions(ctx context.Context, id int) ([]models.GroupIDDescription, error)

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

func (*GroupReaderWriter) GetTagIDs added in v0.27.0

func (_m *GroupReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)

GetTagIDs provides a mock function with given fields: ctx, relatedID

func (*GroupReaderWriter) GetURLs added in v0.27.0

func (_m *GroupReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)

GetURLs provides a mock function with given fields: ctx, relatedID

func (*GroupReaderWriter) HasBackImage added in v0.27.0

func (_m *GroupReaderWriter) HasBackImage(ctx context.Context, groupID int) (bool, error)

HasBackImage provides a mock function with given fields: ctx, groupID

func (*GroupReaderWriter) HasFrontImage added in v0.27.0

func (_m *GroupReaderWriter) HasFrontImage(ctx context.Context, groupID int) (bool, error)

HasFrontImage provides a mock function with given fields: ctx, groupID

func (*GroupReaderWriter) Query added in v0.27.0

func (_m *GroupReaderWriter) Query(ctx context.Context, groupFilter *models.GroupFilterType, findFilter *models.FindFilterType) ([]*models.Group, int, error)

Query provides a mock function with given fields: ctx, groupFilter, findFilter

func (*GroupReaderWriter) QueryCount added in v0.27.0

func (_m *GroupReaderWriter) QueryCount(ctx context.Context, groupFilter *models.GroupFilterType, findFilter *models.FindFilterType) (int, error)

QueryCount provides a mock function with given fields: ctx, groupFilter, findFilter

func (*GroupReaderWriter) Update added in v0.27.0

func (_m *GroupReaderWriter) Update(ctx context.Context, updatedGroup *models.Group) error

Update provides a mock function with given fields: ctx, updatedGroup

func (*GroupReaderWriter) UpdateBackImage added in v0.27.0

func (_m *GroupReaderWriter) UpdateBackImage(ctx context.Context, groupID int, backImage []byte) error

UpdateBackImage provides a mock function with given fields: ctx, groupID, backImage

func (*GroupReaderWriter) UpdateFrontImage added in v0.27.0

func (_m *GroupReaderWriter) UpdateFrontImage(ctx context.Context, groupID int, frontImage []byte) error

UpdateFrontImage provides a mock function with given fields: ctx, groupID, frontImage

func (*GroupReaderWriter) UpdatePartial added in v0.27.0

func (_m *GroupReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGroup models.GroupPartial) (*models.Group, error)

UpdatePartial provides a mock function with given fields: ctx, id, updatedGroup

type ImageReaderWriter

type ImageReaderWriter struct {
	mock.Mock
}

ImageReaderWriter is an autogenerated mock type for the ImageReaderWriter type

func (*ImageReaderWriter) AddFileID added in v0.23.0

func (_m *ImageReaderWriter) AddFileID(ctx context.Context, id int, fileID models.FileID) error

AddFileID provides a mock function with given fields: ctx, id, fileID

func (*ImageReaderWriter) All

func (_m *ImageReaderWriter) All(ctx context.Context) ([]*models.Image, error)

All provides a mock function with given fields: ctx

func (*ImageReaderWriter) Count added in v0.5.0

func (_m *ImageReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*ImageReaderWriter) CountByFileID added in v0.23.0

func (_m *ImageReaderWriter) CountByFileID(ctx context.Context, fileID models.FileID) (int, error)

CountByFileID provides a mock function with given fields: ctx, fileID

func (*ImageReaderWriter) CountByGalleryID added in v0.5.0

func (_m *ImageReaderWriter) CountByGalleryID(ctx context.Context, galleryID int) (int, error)

CountByGalleryID provides a mock function with given fields: ctx, galleryID

func (*ImageReaderWriter) CoverByGalleryID added in v0.27.0

func (_m *ImageReaderWriter) CoverByGalleryID(ctx context.Context, galleryId int) (*models.Image, error)

CoverByGalleryID provides a mock function with given fields: ctx, galleryId

func (*ImageReaderWriter) Create

func (_m *ImageReaderWriter) Create(ctx context.Context, newImage *models.Image, fileIDs []models.FileID) error

Create provides a mock function with given fields: ctx, newImage, fileIDs

func (*ImageReaderWriter) DecrementOCounter added in v0.5.0

func (_m *ImageReaderWriter) DecrementOCounter(ctx context.Context, id int) (int, error)

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

func (*ImageReaderWriter) Destroy added in v0.5.0

func (_m *ImageReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*ImageReaderWriter) Find added in v0.5.0

func (_m *ImageReaderWriter) Find(ctx context.Context, id int) (*models.Image, error)

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

func (*ImageReaderWriter) FindByChecksum

func (_m *ImageReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Image, error)

FindByChecksum provides a mock function with given fields: ctx, checksum

func (*ImageReaderWriter) FindByFileID added in v0.23.0

func (_m *ImageReaderWriter) FindByFileID(ctx context.Context, fileID models.FileID) ([]*models.Image, error)

FindByFileID provides a mock function with given fields: ctx, fileID

func (*ImageReaderWriter) FindByFingerprints added in v0.23.0

func (_m *ImageReaderWriter) FindByFingerprints(ctx context.Context, fp []models.Fingerprint) ([]*models.Image, error)

FindByFingerprints provides a mock function with given fields: ctx, fp

func (*ImageReaderWriter) FindByFolderID added in v0.23.0

func (_m *ImageReaderWriter) FindByFolderID(ctx context.Context, fileID models.FolderID) ([]*models.Image, error)

FindByFolderID provides a mock function with given fields: ctx, fileID

func (*ImageReaderWriter) FindByGalleryID

func (_m *ImageReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Image, error)

FindByGalleryID provides a mock function with given fields: ctx, galleryID

func (*ImageReaderWriter) FindByGalleryIDIndex added in v0.27.0

func (_m *ImageReaderWriter) FindByGalleryIDIndex(ctx context.Context, galleryID int, index uint) (*models.Image, error)

FindByGalleryIDIndex provides a mock function with given fields: ctx, galleryID, index

func (*ImageReaderWriter) FindByZipFileID added in v0.23.0

func (_m *ImageReaderWriter) FindByZipFileID(ctx context.Context, zipFileID models.FileID) ([]*models.Image, error)

FindByZipFileID provides a mock function with given fields: ctx, zipFileID

func (*ImageReaderWriter) FindMany

func (_m *ImageReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Image, error)

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

func (*ImageReaderWriter) GetFiles added in v0.23.0

func (_m *ImageReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]models.File, error)

GetFiles provides a mock function with given fields: ctx, relatedID

func (*ImageReaderWriter) GetGalleryIDs added in v0.5.0

func (_m *ImageReaderWriter) GetGalleryIDs(ctx context.Context, relatedID int) ([]int, error)

GetGalleryIDs provides a mock function with given fields: ctx, relatedID

func (*ImageReaderWriter) GetManyFileIDs added in v0.23.0

func (_m *ImageReaderWriter) GetManyFileIDs(ctx context.Context, ids []int) ([][]models.FileID, error)

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

func (*ImageReaderWriter) GetPerformerIDs added in v0.5.0

func (_m *ImageReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)

GetPerformerIDs provides a mock function with given fields: ctx, relatedID

func (*ImageReaderWriter) GetTagIDs added in v0.5.0

func (_m *ImageReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)

GetTagIDs provides a mock function with given fields: ctx, relatedID

func (*ImageReaderWriter) GetURLs added in v0.23.0

func (_m *ImageReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)

GetURLs provides a mock function with given fields: ctx, relatedID

func (*ImageReaderWriter) IncrementOCounter added in v0.5.0

func (_m *ImageReaderWriter) IncrementOCounter(ctx context.Context, id int) (int, error)

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

func (*ImageReaderWriter) OCount added in v0.24.0

func (_m *ImageReaderWriter) OCount(ctx context.Context) (int, error)

OCount provides a mock function with given fields: ctx

func (*ImageReaderWriter) OCountByPerformerID added in v0.21.0

func (_m *ImageReaderWriter) OCountByPerformerID(ctx context.Context, performerID int) (int, error)

OCountByPerformerID provides a mock function with given fields: ctx, performerID

func (*ImageReaderWriter) Query added in v0.5.0

Query provides a mock function with given fields: ctx, options

func (*ImageReaderWriter) QueryCount added in v0.7.0

func (_m *ImageReaderWriter) QueryCount(ctx context.Context, imageFilter *models.ImageFilterType, findFilter *models.FindFilterType) (int, error)

QueryCount provides a mock function with given fields: ctx, imageFilter, findFilter

func (*ImageReaderWriter) RemoveFileID added in v0.27.0

func (_m *ImageReaderWriter) RemoveFileID(ctx context.Context, id int, fileID models.FileID) error

RemoveFileID provides a mock function with given fields: ctx, id, fileID

func (*ImageReaderWriter) ResetOCounter added in v0.5.0

func (_m *ImageReaderWriter) ResetOCounter(ctx context.Context, id int) (int, error)

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

func (*ImageReaderWriter) Size added in v0.5.0

func (_m *ImageReaderWriter) Size(ctx context.Context) (float64, error)

Size provides a mock function with given fields: ctx

func (*ImageReaderWriter) Update

func (_m *ImageReaderWriter) Update(ctx context.Context, updatedImage *models.Image) error

Update provides a mock function with given fields: ctx, updatedImage

func (*ImageReaderWriter) UpdatePartial added in v0.17.0

func (_m *ImageReaderWriter) UpdatePartial(ctx context.Context, id int, partial models.ImagePartial) (*models.Image, error)

UpdatePartial provides a mock function with given fields: ctx, id, partial

func (*ImageReaderWriter) UpdatePerformers added in v0.5.0

func (_m *ImageReaderWriter) UpdatePerformers(ctx context.Context, imageID int, performerIDs []int) error

UpdatePerformers provides a mock function with given fields: ctx, imageID, performerIDs

func (*ImageReaderWriter) UpdateTags added in v0.5.0

func (_m *ImageReaderWriter) UpdateTags(ctx context.Context, imageID int, tagIDs []int) error

UpdateTags provides a mock function with given fields: ctx, imageID, tagIDs

type PerformerReaderWriter

type PerformerReaderWriter struct {
	mock.Mock
}

PerformerReaderWriter is an autogenerated mock type for the PerformerReaderWriter type

func (*PerformerReaderWriter) All

All provides a mock function with given fields: ctx

func (*PerformerReaderWriter) Count added in v0.5.0

func (_m *PerformerReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*PerformerReaderWriter) CountByTagID added in v0.6.0

func (_m *PerformerReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)

CountByTagID provides a mock function with given fields: ctx, tagID

func (*PerformerReaderWriter) Create

func (_m *PerformerReaderWriter) Create(ctx context.Context, newPerformer *models.Performer) error

Create provides a mock function with given fields: ctx, newPerformer

func (*PerformerReaderWriter) Destroy added in v0.5.0

func (_m *PerformerReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*PerformerReaderWriter) Find added in v0.5.0

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

func (*PerformerReaderWriter) FindByGalleryID

func (_m *PerformerReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Performer, error)

FindByGalleryID provides a mock function with given fields: ctx, galleryID

func (*PerformerReaderWriter) FindByImageID

func (_m *PerformerReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Performer, error)

FindByImageID provides a mock function with given fields: ctx, imageID

func (*PerformerReaderWriter) FindByNames

func (_m *PerformerReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Performer, error)

FindByNames provides a mock function with given fields: ctx, names, nocase

func (*PerformerReaderWriter) FindBySceneID

func (_m *PerformerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Performer, error)

FindBySceneID provides a mock function with given fields: ctx, sceneID

func (*PerformerReaderWriter) FindByStashID added in v0.11.0

func (_m *PerformerReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Performer, error)

FindByStashID provides a mock function with given fields: ctx, stashID

func (*PerformerReaderWriter) FindByStashIDStatus added in v0.7.0

func (_m *PerformerReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Performer, error)

FindByStashIDStatus provides a mock function with given fields: ctx, hasStashID, stashboxEndpoint

func (*PerformerReaderWriter) FindMany

func (_m *PerformerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Performer, error)

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

func (*PerformerReaderWriter) GetAliases added in v0.19.0

func (_m *PerformerReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)

GetAliases provides a mock function with given fields: ctx, relatedID

func (*PerformerReaderWriter) GetImage added in v0.5.0

func (_m *PerformerReaderWriter) GetImage(ctx context.Context, performerID int) ([]byte, error)

GetImage provides a mock function with given fields: ctx, performerID

func (*PerformerReaderWriter) GetStashIDs added in v0.5.0

func (_m *PerformerReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)

GetStashIDs provides a mock function with given fields: ctx, relatedID

func (*PerformerReaderWriter) GetTagIDs added in v0.6.0

func (_m *PerformerReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)

GetTagIDs provides a mock function with given fields: ctx, relatedID

func (*PerformerReaderWriter) GetURLs added in v0.27.0

func (_m *PerformerReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)

GetURLs provides a mock function with given fields: ctx, relatedID

func (*PerformerReaderWriter) HasImage added in v0.21.0

func (_m *PerformerReaderWriter) HasImage(ctx context.Context, performerID int) (bool, error)

HasImage provides a mock function with given fields: ctx, performerID

func (*PerformerReaderWriter) Query added in v0.5.0

func (_m *PerformerReaderWriter) Query(ctx context.Context, performerFilter *models.PerformerFilterType, findFilter *models.FindFilterType) ([]*models.Performer, int, error)

Query provides a mock function with given fields: ctx, performerFilter, findFilter

func (*PerformerReaderWriter) QueryCount added in v0.19.0

func (_m *PerformerReaderWriter) QueryCount(ctx context.Context, performerFilter *models.PerformerFilterType, findFilter *models.FindFilterType) (int, error)

QueryCount provides a mock function with given fields: ctx, performerFilter, findFilter

func (*PerformerReaderWriter) QueryForAutoTag added in v0.7.0

func (_m *PerformerReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Performer, error)

QueryForAutoTag provides a mock function with given fields: ctx, words

func (*PerformerReaderWriter) Update

func (_m *PerformerReaderWriter) Update(ctx context.Context, updatedPerformer *models.Performer) error

Update provides a mock function with given fields: ctx, updatedPerformer

func (*PerformerReaderWriter) UpdateImage added in v0.5.0

func (_m *PerformerReaderWriter) UpdateImage(ctx context.Context, performerID int, image []byte) error

UpdateImage provides a mock function with given fields: ctx, performerID, image

func (*PerformerReaderWriter) UpdatePartial added in v0.18.0

func (_m *PerformerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedPerformer models.PerformerPartial) (*models.Performer, error)

UpdatePartial provides a mock function with given fields: ctx, id, updatedPerformer

type SavedFilterReaderWriter added in v0.8.0

type SavedFilterReaderWriter struct {
	mock.Mock
}

SavedFilterReaderWriter is an autogenerated mock type for the SavedFilterReaderWriter type

func (*SavedFilterReaderWriter) All added in v0.16.0

All provides a mock function with given fields: ctx

func (*SavedFilterReaderWriter) Create added in v0.8.0

Create provides a mock function with given fields: ctx, obj

func (*SavedFilterReaderWriter) Destroy added in v0.8.0

func (_m *SavedFilterReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*SavedFilterReaderWriter) Find added in v0.8.0

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

func (*SavedFilterReaderWriter) FindByMode added in v0.8.0

FindByMode provides a mock function with given fields: ctx, mode

func (*SavedFilterReaderWriter) FindMany added in v0.16.0

func (_m *SavedFilterReaderWriter) FindMany(ctx context.Context, ids []int, ignoreNotFound bool) ([]*models.SavedFilter, error)

FindMany provides a mock function with given fields: ctx, ids, ignoreNotFound

func (*SavedFilterReaderWriter) Update added in v0.8.0

Update provides a mock function with given fields: ctx, obj

type SceneMarkerReaderWriter

type SceneMarkerReaderWriter struct {
	mock.Mock
}

SceneMarkerReaderWriter is an autogenerated mock type for the SceneMarkerReaderWriter type

func (*SceneMarkerReaderWriter) All added in v0.19.1

All provides a mock function with given fields: ctx

func (*SceneMarkerReaderWriter) Count added in v0.19.1

func (_m *SceneMarkerReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*SceneMarkerReaderWriter) CountByTagID added in v0.5.0

func (_m *SceneMarkerReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)

CountByTagID provides a mock function with given fields: ctx, tagID

func (*SceneMarkerReaderWriter) Create

func (_m *SceneMarkerReaderWriter) Create(ctx context.Context, newSceneMarker *models.SceneMarker) error

Create provides a mock function with given fields: ctx, newSceneMarker

func (*SceneMarkerReaderWriter) Destroy added in v0.5.0

func (_m *SceneMarkerReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*SceneMarkerReaderWriter) Find added in v0.5.0

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

func (*SceneMarkerReaderWriter) FindBySceneID

func (_m *SceneMarkerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.SceneMarker, error)

FindBySceneID provides a mock function with given fields: ctx, sceneID

func (*SceneMarkerReaderWriter) FindMany added in v0.5.0

func (_m *SceneMarkerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.SceneMarker, error)

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

func (*SceneMarkerReaderWriter) GetMarkerStrings added in v0.5.0

func (_m *SceneMarkerReaderWriter) GetMarkerStrings(ctx context.Context, q *string, sort *string) ([]*models.MarkerStringsResultType, error)

GetMarkerStrings provides a mock function with given fields: ctx, q, sort

func (*SceneMarkerReaderWriter) GetTagIDs added in v0.5.0

func (_m *SceneMarkerReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)

GetTagIDs provides a mock function with given fields: ctx, relatedID

func (*SceneMarkerReaderWriter) Query added in v0.5.0

func (_m *SceneMarkerReaderWriter) Query(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, findFilter *models.FindFilterType) ([]*models.SceneMarker, int, error)

Query provides a mock function with given fields: ctx, sceneMarkerFilter, findFilter

func (*SceneMarkerReaderWriter) QueryCount added in v0.22.0

func (_m *SceneMarkerReaderWriter) QueryCount(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, findFilter *models.FindFilterType) (int, error)

QueryCount provides a mock function with given fields: ctx, sceneMarkerFilter, findFilter

func (*SceneMarkerReaderWriter) Update

func (_m *SceneMarkerReaderWriter) Update(ctx context.Context, updatedSceneMarker *models.SceneMarker) error

Update provides a mock function with given fields: ctx, updatedSceneMarker

func (*SceneMarkerReaderWriter) UpdatePartial added in v0.22.0

func (_m *SceneMarkerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedSceneMarker models.SceneMarkerPartial) (*models.SceneMarker, error)

UpdatePartial provides a mock function with given fields: ctx, id, updatedSceneMarker

func (*SceneMarkerReaderWriter) UpdateTags added in v0.5.0

func (_m *SceneMarkerReaderWriter) UpdateTags(ctx context.Context, markerID int, tagIDs []int) error

UpdateTags provides a mock function with given fields: ctx, markerID, tagIDs

func (*SceneMarkerReaderWriter) Wall added in v0.5.0

Wall provides a mock function with given fields: ctx, q

type SceneReaderWriter

type SceneReaderWriter struct {
	mock.Mock
}

SceneReaderWriter is an autogenerated mock type for the SceneReaderWriter type

func (*SceneReaderWriter) AddFileID added in v0.23.0

func (_m *SceneReaderWriter) AddFileID(ctx context.Context, id int, fileID models.FileID) error

AddFileID provides a mock function with given fields: ctx, id, fileID

func (*SceneReaderWriter) AddGalleryIDs added in v0.23.0

func (_m *SceneReaderWriter) AddGalleryIDs(ctx context.Context, sceneID int, galleryIDs []int) error

AddGalleryIDs provides a mock function with given fields: ctx, sceneID, galleryIDs

func (*SceneReaderWriter) AddO added in v0.25.0

func (_m *SceneReaderWriter) AddO(ctx context.Context, id int, dates []time.Time) ([]time.Time, error)

AddO provides a mock function with given fields: ctx, id, dates

func (*SceneReaderWriter) AddViews added in v0.25.0

func (_m *SceneReaderWriter) AddViews(ctx context.Context, sceneID int, dates []time.Time) ([]time.Time, error)

AddViews provides a mock function with given fields: ctx, sceneID, dates

func (*SceneReaderWriter) All

func (_m *SceneReaderWriter) All(ctx context.Context) ([]*models.Scene, error)

All provides a mock function with given fields: ctx

func (*SceneReaderWriter) AssignFiles added in v0.23.0

func (_m *SceneReaderWriter) AssignFiles(ctx context.Context, sceneID int, fileID []models.FileID) error

AssignFiles provides a mock function with given fields: ctx, sceneID, fileID

func (*SceneReaderWriter) Count added in v0.5.0

func (_m *SceneReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*SceneReaderWriter) CountAllViews added in v0.25.0

func (_m *SceneReaderWriter) CountAllViews(ctx context.Context) (int, error)

CountAllViews provides a mock function with given fields: ctx

func (*SceneReaderWriter) CountByFileID added in v0.23.0

func (_m *SceneReaderWriter) CountByFileID(ctx context.Context, fileID models.FileID) (int, error)

CountByFileID provides a mock function with given fields: ctx, fileID

func (*SceneReaderWriter) CountByPerformerID added in v0.5.0

func (_m *SceneReaderWriter) CountByPerformerID(ctx context.Context, performerID int) (int, error)

CountByPerformerID provides a mock function with given fields: ctx, performerID

func (*SceneReaderWriter) CountMissingChecksum added in v0.5.0

func (_m *SceneReaderWriter) CountMissingChecksum(ctx context.Context) (int, error)

CountMissingChecksum provides a mock function with given fields: ctx

func (*SceneReaderWriter) CountMissingOSHash added in v0.5.0

func (_m *SceneReaderWriter) CountMissingOSHash(ctx context.Context) (int, error)

CountMissingOSHash provides a mock function with given fields: ctx

func (*SceneReaderWriter) CountUniqueViews added in v0.25.0

func (_m *SceneReaderWriter) CountUniqueViews(ctx context.Context) (int, error)

CountUniqueViews provides a mock function with given fields: ctx

func (*SceneReaderWriter) CountViews added in v0.25.0

func (_m *SceneReaderWriter) CountViews(ctx context.Context, id int) (int, error)

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

func (*SceneReaderWriter) Create

func (_m *SceneReaderWriter) Create(ctx context.Context, newScene *models.Scene, fileIDs []models.FileID) error

Create provides a mock function with given fields: ctx, newScene, fileIDs

func (*SceneReaderWriter) DeleteAllViews added in v0.25.0

func (_m *SceneReaderWriter) DeleteAllViews(ctx context.Context, id int) (int, error)

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

func (*SceneReaderWriter) DeleteO added in v0.25.0

func (_m *SceneReaderWriter) DeleteO(ctx context.Context, id int, dates []time.Time) ([]time.Time, error)

DeleteO provides a mock function with given fields: ctx, id, dates

func (*SceneReaderWriter) DeleteViews added in v0.25.0

func (_m *SceneReaderWriter) DeleteViews(ctx context.Context, id int, dates []time.Time) ([]time.Time, error)

DeleteViews provides a mock function with given fields: ctx, id, dates

func (*SceneReaderWriter) Destroy added in v0.5.0

func (_m *SceneReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*SceneReaderWriter) Duration added in v0.9.0

func (_m *SceneReaderWriter) Duration(ctx context.Context) (float64, error)

Duration provides a mock function with given fields: ctx

func (*SceneReaderWriter) Find added in v0.5.0

func (_m *SceneReaderWriter) Find(ctx context.Context, id int) (*models.Scene, error)

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

func (*SceneReaderWriter) FindByChecksum

func (_m *SceneReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Scene, error)

FindByChecksum provides a mock function with given fields: ctx, checksum

func (*SceneReaderWriter) FindByFileID added in v0.23.0

func (_m *SceneReaderWriter) FindByFileID(ctx context.Context, fileID models.FileID) ([]*models.Scene, error)

FindByFileID provides a mock function with given fields: ctx, fileID

func (*SceneReaderWriter) FindByFingerprints added in v0.23.0

func (_m *SceneReaderWriter) FindByFingerprints(ctx context.Context, fp []models.Fingerprint) ([]*models.Scene, error)

FindByFingerprints provides a mock function with given fields: ctx, fp

func (*SceneReaderWriter) FindByGalleryID added in v0.5.0

func (_m *SceneReaderWriter) FindByGalleryID(ctx context.Context, performerID int) ([]*models.Scene, error)

FindByGalleryID provides a mock function with given fields: ctx, performerID

func (*SceneReaderWriter) FindByGroupID added in v0.27.0

func (_m *SceneReaderWriter) FindByGroupID(ctx context.Context, groupID int) ([]*models.Scene, error)

FindByGroupID provides a mock function with given fields: ctx, groupID

func (*SceneReaderWriter) FindByOSHash

func (_m *SceneReaderWriter) FindByOSHash(ctx context.Context, oshash string) ([]*models.Scene, error)

FindByOSHash provides a mock function with given fields: ctx, oshash

func (*SceneReaderWriter) FindByPath added in v0.5.0

func (_m *SceneReaderWriter) FindByPath(ctx context.Context, path string) ([]*models.Scene, error)

FindByPath provides a mock function with given fields: ctx, path

func (*SceneReaderWriter) FindByPerformerID added in v0.5.0

func (_m *SceneReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Scene, error)

FindByPerformerID provides a mock function with given fields: ctx, performerID

func (*SceneReaderWriter) FindByPrimaryFileID added in v0.23.0

func (_m *SceneReaderWriter) FindByPrimaryFileID(ctx context.Context, fileID models.FileID) ([]*models.Scene, error)

FindByPrimaryFileID provides a mock function with given fields: ctx, fileID

func (*SceneReaderWriter) FindDuplicates added in v0.7.0

func (_m *SceneReaderWriter) FindDuplicates(ctx context.Context, distance int, durationDiff float64) ([][]*models.Scene, error)

FindDuplicates provides a mock function with given fields: ctx, distance, durationDiff

func (*SceneReaderWriter) FindMany

func (_m *SceneReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Scene, error)

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

func (*SceneReaderWriter) GetAllOCount added in v0.25.0

func (_m *SceneReaderWriter) GetAllOCount(ctx context.Context) (int, error)

GetAllOCount provides a mock function with given fields: ctx

func (*SceneReaderWriter) GetCover added in v0.5.0

func (_m *SceneReaderWriter) GetCover(ctx context.Context, sceneID int) ([]byte, error)

GetCover provides a mock function with given fields: ctx, sceneID

func (*SceneReaderWriter) GetFiles added in v0.17.0

func (_m *SceneReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]*models.VideoFile, error)

GetFiles provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) GetGalleryIDs added in v0.5.0

func (_m *SceneReaderWriter) GetGalleryIDs(ctx context.Context, relatedID int) ([]int, error)

GetGalleryIDs provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) GetGroups added in v0.27.0

func (_m *SceneReaderWriter) GetGroups(ctx context.Context, id int) ([]models.GroupsScenes, error)

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

func (*SceneReaderWriter) GetManyFileIDs added in v0.23.0

func (_m *SceneReaderWriter) GetManyFileIDs(ctx context.Context, ids []int) ([][]models.FileID, error)

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

func (*SceneReaderWriter) GetManyLastViewed added in v0.25.0

func (_m *SceneReaderWriter) GetManyLastViewed(ctx context.Context, ids []int) ([]*time.Time, error)

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

func (*SceneReaderWriter) GetManyOCount added in v0.25.0

func (_m *SceneReaderWriter) GetManyOCount(ctx context.Context, ids []int) ([]int, error)

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

func (*SceneReaderWriter) GetManyODates added in v0.25.0

func (_m *SceneReaderWriter) GetManyODates(ctx context.Context, ids []int) ([][]time.Time, error)

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

func (*SceneReaderWriter) GetManyViewCount added in v0.25.0

func (_m *SceneReaderWriter) GetManyViewCount(ctx context.Context, ids []int) ([]int, error)

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

func (*SceneReaderWriter) GetManyViewDates added in v0.25.0

func (_m *SceneReaderWriter) GetManyViewDates(ctx context.Context, ids []int) ([][]time.Time, error)

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

func (*SceneReaderWriter) GetOCount added in v0.25.0

func (_m *SceneReaderWriter) GetOCount(ctx context.Context, id int) (int, error)

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

func (*SceneReaderWriter) GetODates added in v0.25.0

func (_m *SceneReaderWriter) GetODates(ctx context.Context, relatedID int) ([]time.Time, error)

GetODates provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) GetPerformerIDs added in v0.5.0

func (_m *SceneReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)

GetPerformerIDs provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) GetStashIDs added in v0.5.0

func (_m *SceneReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)

GetStashIDs provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) GetTagIDs added in v0.5.0

func (_m *SceneReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)

GetTagIDs provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) GetURLs added in v0.22.0

func (_m *SceneReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)

GetURLs provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) GetViewDates added in v0.25.0

func (_m *SceneReaderWriter) GetViewDates(ctx context.Context, relatedID int) ([]time.Time, error)

GetViewDates provides a mock function with given fields: ctx, relatedID

func (*SceneReaderWriter) HasCover added in v0.20.0

func (_m *SceneReaderWriter) HasCover(ctx context.Context, sceneID int) (bool, error)

HasCover provides a mock function with given fields: ctx, sceneID

func (*SceneReaderWriter) OCountByPerformerID added in v0.21.0

func (_m *SceneReaderWriter) OCountByPerformerID(ctx context.Context, performerID int) (int, error)

OCountByPerformerID provides a mock function with given fields: ctx, performerID

func (*SceneReaderWriter) PlayDuration added in v0.22.0

func (_m *SceneReaderWriter) PlayDuration(ctx context.Context) (float64, error)

PlayDuration provides a mock function with given fields: ctx

func (*SceneReaderWriter) Query added in v0.5.0

Query provides a mock function with given fields: ctx, options

func (*SceneReaderWriter) QueryCount added in v0.22.0

func (_m *SceneReaderWriter) QueryCount(ctx context.Context, sceneFilter *models.SceneFilterType, findFilter *models.FindFilterType) (int, error)

QueryCount provides a mock function with given fields: ctx, sceneFilter, findFilter

func (*SceneReaderWriter) ResetActivity added in v0.27.0

func (_m *SceneReaderWriter) ResetActivity(ctx context.Context, sceneID int, resetResume bool, resetDuration bool) (bool, error)

ResetActivity provides a mock function with given fields: ctx, sceneID, resetResume, resetDuration

func (*SceneReaderWriter) ResetO added in v0.25.0

func (_m *SceneReaderWriter) ResetO(ctx context.Context, id int) (int, error)

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

func (*SceneReaderWriter) SaveActivity added in v0.18.0

func (_m *SceneReaderWriter) SaveActivity(ctx context.Context, sceneID int, resumeTime *float64, playDuration *float64) (bool, error)

SaveActivity provides a mock function with given fields: ctx, sceneID, resumeTime, playDuration

func (*SceneReaderWriter) Size added in v0.5.0

func (_m *SceneReaderWriter) Size(ctx context.Context) (float64, error)

Size provides a mock function with given fields: ctx

func (*SceneReaderWriter) Update

func (_m *SceneReaderWriter) Update(ctx context.Context, updatedScene *models.Scene) error

Update provides a mock function with given fields: ctx, updatedScene

func (*SceneReaderWriter) UpdateCover added in v0.5.0

func (_m *SceneReaderWriter) UpdateCover(ctx context.Context, sceneID int, cover []byte) error

UpdateCover provides a mock function with given fields: ctx, sceneID, cover

func (*SceneReaderWriter) UpdatePartial added in v0.17.0

func (_m *SceneReaderWriter) UpdatePartial(ctx context.Context, id int, updatedScene models.ScenePartial) (*models.Scene, error)

UpdatePartial provides a mock function with given fields: ctx, id, updatedScene

func (*SceneReaderWriter) Wall added in v0.5.0

func (_m *SceneReaderWriter) Wall(ctx context.Context, q *string) ([]*models.Scene, error)

Wall provides a mock function with given fields: ctx, q

type StudioReaderWriter

type StudioReaderWriter struct {
	mock.Mock
}

StudioReaderWriter is an autogenerated mock type for the StudioReaderWriter type

func (*StudioReaderWriter) All

func (_m *StudioReaderWriter) All(ctx context.Context) ([]*models.Studio, error)

All provides a mock function with given fields: ctx

func (*StudioReaderWriter) Count added in v0.5.0

func (_m *StudioReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*StudioReaderWriter) CountByTagID added in v0.27.0

func (_m *StudioReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)

CountByTagID provides a mock function with given fields: ctx, tagID

func (*StudioReaderWriter) Create

func (_m *StudioReaderWriter) Create(ctx context.Context, newStudio *models.Studio) error

Create provides a mock function with given fields: ctx, newStudio

func (*StudioReaderWriter) Destroy added in v0.5.0

func (_m *StudioReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*StudioReaderWriter) Find

func (_m *StudioReaderWriter) Find(ctx context.Context, id int) (*models.Studio, error)

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

func (*StudioReaderWriter) FindByName

func (_m *StudioReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Studio, error)

FindByName provides a mock function with given fields: ctx, name, nocase

func (*StudioReaderWriter) FindBySceneID added in v0.23.0

func (_m *StudioReaderWriter) FindBySceneID(ctx context.Context, sceneID int) (*models.Studio, error)

FindBySceneID provides a mock function with given fields: ctx, sceneID

func (*StudioReaderWriter) FindByStashID added in v0.11.0

func (_m *StudioReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Studio, error)

FindByStashID provides a mock function with given fields: ctx, stashID

func (*StudioReaderWriter) FindByStashIDStatus added in v0.22.0

func (_m *StudioReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Studio, error)

FindByStashIDStatus provides a mock function with given fields: ctx, hasStashID, stashboxEndpoint

func (*StudioReaderWriter) FindChildren added in v0.5.0

func (_m *StudioReaderWriter) FindChildren(ctx context.Context, id int) ([]*models.Studio, error)

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

func (*StudioReaderWriter) FindMany

func (_m *StudioReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Studio, error)

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

func (*StudioReaderWriter) GetAliases added in v0.10.0

func (_m *StudioReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)

GetAliases provides a mock function with given fields: ctx, relatedID

func (*StudioReaderWriter) GetImage added in v0.5.0

func (_m *StudioReaderWriter) GetImage(ctx context.Context, studioID int) ([]byte, error)

GetImage provides a mock function with given fields: ctx, studioID

func (*StudioReaderWriter) GetStashIDs added in v0.5.0

func (_m *StudioReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)

GetStashIDs provides a mock function with given fields: ctx, relatedID

func (*StudioReaderWriter) GetTagIDs added in v0.27.0

func (_m *StudioReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)

GetTagIDs provides a mock function with given fields: ctx, relatedID

func (*StudioReaderWriter) HasImage added in v0.5.0

func (_m *StudioReaderWriter) HasImage(ctx context.Context, studioID int) (bool, error)

HasImage provides a mock function with given fields: ctx, studioID

func (*StudioReaderWriter) Query added in v0.5.0

func (_m *StudioReaderWriter) Query(ctx context.Context, studioFilter *models.StudioFilterType, findFilter *models.FindFilterType) ([]*models.Studio, int, error)

Query provides a mock function with given fields: ctx, studioFilter, findFilter

func (*StudioReaderWriter) QueryCount added in v0.27.0

func (_m *StudioReaderWriter) QueryCount(ctx context.Context, studioFilter *models.StudioFilterType, findFilter *models.FindFilterType) (int, error)

QueryCount provides a mock function with given fields: ctx, studioFilter, findFilter

func (*StudioReaderWriter) QueryForAutoTag added in v0.7.0

func (_m *StudioReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Studio, error)

QueryForAutoTag provides a mock function with given fields: ctx, words

func (*StudioReaderWriter) Update

func (_m *StudioReaderWriter) Update(ctx context.Context, updatedStudio *models.Studio) error

Update provides a mock function with given fields: ctx, updatedStudio

func (*StudioReaderWriter) UpdateImage added in v0.5.0

func (_m *StudioReaderWriter) UpdateImage(ctx context.Context, studioID int, image []byte) error

UpdateImage provides a mock function with given fields: ctx, studioID, image

func (*StudioReaderWriter) UpdatePartial added in v0.22.0

func (_m *StudioReaderWriter) UpdatePartial(ctx context.Context, updatedStudio models.StudioPartial) (*models.Studio, error)

UpdatePartial provides a mock function with given fields: ctx, updatedStudio

type TagReaderWriter

type TagReaderWriter struct {
	mock.Mock
}

TagReaderWriter is an autogenerated mock type for the TagReaderWriter type

func (*TagReaderWriter) All

func (_m *TagReaderWriter) All(ctx context.Context) ([]*models.Tag, error)

All provides a mock function with given fields: ctx

func (*TagReaderWriter) Count added in v0.5.0

func (_m *TagReaderWriter) Count(ctx context.Context) (int, error)

Count provides a mock function with given fields: ctx

func (*TagReaderWriter) CountByChildTagID added in v0.23.0

func (_m *TagReaderWriter) CountByChildTagID(ctx context.Context, childID int) (int, error)

CountByChildTagID provides a mock function with given fields: ctx, childID

func (*TagReaderWriter) CountByParentTagID added in v0.23.0

func (_m *TagReaderWriter) CountByParentTagID(ctx context.Context, parentID int) (int, error)

CountByParentTagID provides a mock function with given fields: ctx, parentID

func (*TagReaderWriter) Create

func (_m *TagReaderWriter) Create(ctx context.Context, newTag *models.Tag) error

Create provides a mock function with given fields: ctx, newTag

func (*TagReaderWriter) Destroy added in v0.5.0

func (_m *TagReaderWriter) Destroy(ctx context.Context, id int) error

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

func (*TagReaderWriter) Find

func (_m *TagReaderWriter) Find(ctx context.Context, id int) (*models.Tag, error)

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

func (*TagReaderWriter) FindAllAncestors added in v0.10.0

func (_m *TagReaderWriter) FindAllAncestors(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)

FindAllAncestors provides a mock function with given fields: ctx, tagID, excludeIDs

func (*TagReaderWriter) FindAllDescendants added in v0.10.0

func (_m *TagReaderWriter) FindAllDescendants(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)

FindAllDescendants provides a mock function with given fields: ctx, tagID, excludeIDs

func (*TagReaderWriter) FindByChildTagID added in v0.10.0

func (_m *TagReaderWriter) FindByChildTagID(ctx context.Context, childID int) ([]*models.Tag, error)

FindByChildTagID provides a mock function with given fields: ctx, childID

func (*TagReaderWriter) FindByGalleryID

func (_m *TagReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Tag, error)

FindByGalleryID provides a mock function with given fields: ctx, galleryID

func (*TagReaderWriter) FindByGroupID added in v0.27.0

func (_m *TagReaderWriter) FindByGroupID(ctx context.Context, groupID int) ([]*models.Tag, error)

FindByGroupID provides a mock function with given fields: ctx, groupID

func (*TagReaderWriter) FindByImageID

func (_m *TagReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Tag, error)

FindByImageID provides a mock function with given fields: ctx, imageID

func (*TagReaderWriter) FindByName

func (_m *TagReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Tag, error)

FindByName provides a mock function with given fields: ctx, name, nocase

func (*TagReaderWriter) FindByNames

func (_m *TagReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Tag, error)

FindByNames provides a mock function with given fields: ctx, names, nocase

func (*TagReaderWriter) FindByParentTagID added in v0.10.0

func (_m *TagReaderWriter) FindByParentTagID(ctx context.Context, parentID int) ([]*models.Tag, error)

FindByParentTagID provides a mock function with given fields: ctx, parentID

func (*TagReaderWriter) FindByPerformerID added in v0.6.0

func (_m *TagReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Tag, error)

FindByPerformerID provides a mock function with given fields: ctx, performerID

func (*TagReaderWriter) FindBySceneID

func (_m *TagReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Tag, error)

FindBySceneID provides a mock function with given fields: ctx, sceneID

func (*TagReaderWriter) FindBySceneMarkerID

func (_m *TagReaderWriter) FindBySceneMarkerID(ctx context.Context, sceneMarkerID int) ([]*models.Tag, error)

FindBySceneMarkerID provides a mock function with given fields: ctx, sceneMarkerID

func (*TagReaderWriter) FindByStudioID added in v0.27.0

func (_m *TagReaderWriter) FindByStudioID(ctx context.Context, studioID int) ([]*models.Tag, error)

FindByStudioID provides a mock function with given fields: ctx, studioID

func (*TagReaderWriter) FindMany

func (_m *TagReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Tag, error)

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

func (*TagReaderWriter) GetAliases added in v0.8.0

func (_m *TagReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)

GetAliases provides a mock function with given fields: ctx, relatedID

func (*TagReaderWriter) GetChildIDs added in v0.27.0

func (_m *TagReaderWriter) GetChildIDs(ctx context.Context, relatedID int) ([]int, error)

GetChildIDs provides a mock function with given fields: ctx, relatedID

func (*TagReaderWriter) GetImage added in v0.5.0

func (_m *TagReaderWriter) GetImage(ctx context.Context, tagID int) ([]byte, error)

GetImage provides a mock function with given fields: ctx, tagID

func (*TagReaderWriter) GetParentIDs added in v0.27.0

func (_m *TagReaderWriter) GetParentIDs(ctx context.Context, relatedID int) ([]int, error)

GetParentIDs provides a mock function with given fields: ctx, relatedID

func (*TagReaderWriter) HasImage added in v0.21.0

func (_m *TagReaderWriter) HasImage(ctx context.Context, tagID int) (bool, error)

HasImage provides a mock function with given fields: ctx, tagID

func (*TagReaderWriter) Merge added in v0.8.0

func (_m *TagReaderWriter) Merge(ctx context.Context, source []int, destination int) error

Merge provides a mock function with given fields: ctx, source, destination

func (*TagReaderWriter) Query added in v0.5.0

func (_m *TagReaderWriter) Query(ctx context.Context, tagFilter *models.TagFilterType, findFilter *models.FindFilterType) ([]*models.Tag, int, error)

Query provides a mock function with given fields: ctx, tagFilter, findFilter

func (*TagReaderWriter) QueryForAutoTag added in v0.7.0

func (_m *TagReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Tag, error)

QueryForAutoTag provides a mock function with given fields: ctx, words

func (*TagReaderWriter) Update

func (_m *TagReaderWriter) Update(ctx context.Context, updatedTag *models.Tag) error

Update provides a mock function with given fields: ctx, updatedTag

func (*TagReaderWriter) UpdateAliases added in v0.8.0

func (_m *TagReaderWriter) UpdateAliases(ctx context.Context, tagID int, aliases []string) error

UpdateAliases provides a mock function with given fields: ctx, tagID, aliases

func (*TagReaderWriter) UpdateChildTags added in v0.10.0

func (_m *TagReaderWriter) UpdateChildTags(ctx context.Context, tagID int, parentIDs []int) error

UpdateChildTags provides a mock function with given fields: ctx, tagID, parentIDs

func (*TagReaderWriter) UpdateImage added in v0.5.0

func (_m *TagReaderWriter) UpdateImage(ctx context.Context, tagID int, image []byte) error

UpdateImage provides a mock function with given fields: ctx, tagID, image

func (*TagReaderWriter) UpdateParentTags added in v0.10.0

func (_m *TagReaderWriter) UpdateParentTags(ctx context.Context, tagID int, parentIDs []int) error

UpdateParentTags provides a mock function with given fields: ctx, tagID, parentIDs

func (*TagReaderWriter) UpdatePartial added in v0.22.0

func (_m *TagReaderWriter) UpdatePartial(ctx context.Context, id int, updateTag models.TagPartial) (*models.Tag, error)

UpdatePartial provides a mock function with given fields: ctx, id, updateTag

Jump to

Keyboard shortcuts

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