Documentation ¶
Overview ¶
Package mocks provides mocks for various interfaces in models.
Index ¶
- func ImageQueryResult(images []*models.Image, count int) *models.ImageQueryResult
- func SceneQueryResult(scenes []*models.Scene, count int) *models.SceneQueryResult
- type Database
- func (*Database) AddPostCommitHook(ctx context.Context, hook txn.TxnFunc)
- func (*Database) AddPostRollbackHook(ctx context.Context, hook txn.TxnFunc)
- func (db *Database) AssertExpectations(t mock.TestingT)
- func (*Database) Begin(ctx context.Context, exclusive bool) (context.Context, error)
- func (*Database) Commit(ctx context.Context) error
- func (*Database) Complete(ctx context.Context)
- func (*Database) IsLocked(err error) bool
- func (db *Database) Repository() models.Repository
- func (*Database) Reset() error
- func (*Database) Rollback(ctx context.Context) error
- func (*Database) WithDatabase(ctx context.Context) (context.Context, error)
- type FileReaderWriter
- func (_m *FileReaderWriter) CountAllInPaths(ctx context.Context, p []string) (int, error)
- func (_m *FileReaderWriter) CountByFolderID(ctx context.Context, folderID models.FolderID) (int, error)
- func (_m *FileReaderWriter) Create(ctx context.Context, f models.File) error
- func (_m *FileReaderWriter) Destroy(ctx context.Context, id models.FileID) error
- func (_m *FileReaderWriter) DestroyFingerprints(ctx context.Context, fileID models.FileID, types []string) error
- func (_m *FileReaderWriter) Find(ctx context.Context, id ...models.FileID) ([]models.File, error)
- func (_m *FileReaderWriter) FindAllByPath(ctx context.Context, path string) ([]models.File, error)
- func (_m *FileReaderWriter) FindAllInPaths(ctx context.Context, p []string, limit int, offset int) ([]models.File, error)
- func (_m *FileReaderWriter) FindByFileInfo(ctx context.Context, info fs.FileInfo, size int64) ([]models.File, error)
- func (_m *FileReaderWriter) FindByFingerprint(ctx context.Context, fp models.Fingerprint) ([]models.File, error)
- func (_m *FileReaderWriter) FindByPath(ctx context.Context, path string) (models.File, error)
- func (_m *FileReaderWriter) FindByZipFileID(ctx context.Context, zipFileID models.FileID) ([]models.File, error)
- func (_m *FileReaderWriter) GetCaptions(ctx context.Context, fileID models.FileID) ([]*models.VideoCaption, error)
- func (_m *FileReaderWriter) IsPrimary(ctx context.Context, fileID models.FileID) (bool, error)
- func (_m *FileReaderWriter) ModifyFingerprints(ctx context.Context, fileID models.FileID, fingerprints []models.Fingerprint) error
- func (_m *FileReaderWriter) Query(ctx context.Context, options models.FileQueryOptions) (*models.FileQueryResult, error)
- func (_m *FileReaderWriter) Update(ctx context.Context, f models.File) error
- func (_m *FileReaderWriter) UpdateCaptions(ctx context.Context, fileID models.FileID, captions []*models.VideoCaption) error
- type FolderReaderWriter
- func (_m *FolderReaderWriter) CountAllInPaths(ctx context.Context, p []string) (int, error)
- func (_m *FolderReaderWriter) Create(ctx context.Context, f *models.Folder) error
- func (_m *FolderReaderWriter) Destroy(ctx context.Context, id models.FolderID) error
- func (_m *FolderReaderWriter) Find(ctx context.Context, id models.FolderID) (*models.Folder, error)
- func (_m *FolderReaderWriter) FindAllInPaths(ctx context.Context, p []string, limit int, offset int) ([]*models.Folder, error)
- func (_m *FolderReaderWriter) FindByParentFolderID(ctx context.Context, parentFolderID models.FolderID) ([]*models.Folder, error)
- func (_m *FolderReaderWriter) FindByPath(ctx context.Context, path string) (*models.Folder, error)
- func (_m *FolderReaderWriter) FindByZipFileID(ctx context.Context, zipFileID models.FileID) ([]*models.Folder, error)
- func (_m *FolderReaderWriter) Update(ctx context.Context, f *models.Folder) error
- type GalleryChapterReaderWriter
- func (_m *GalleryChapterReaderWriter) Create(ctx context.Context, newGalleryChapter *models.GalleryChapter) error
- func (_m *GalleryChapterReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *GalleryChapterReaderWriter) Find(ctx context.Context, id int) (*models.GalleryChapter, error)
- func (_m *GalleryChapterReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.GalleryChapter, error)
- func (_m *GalleryChapterReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.GalleryChapter, error)
- func (_m *GalleryChapterReaderWriter) Update(ctx context.Context, updatedGalleryChapter *models.GalleryChapter) error
- func (_m *GalleryChapterReaderWriter) UpdatePartial(ctx context.Context, id int, ...) (*models.GalleryChapter, error)
- type GalleryReaderWriter
- func (_m *GalleryReaderWriter) AddFileID(ctx context.Context, id int, fileID models.FileID) error
- func (_m *GalleryReaderWriter) AddImages(ctx context.Context, galleryID int, imageIDs ...int) error
- func (_m *GalleryReaderWriter) All(ctx context.Context) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *GalleryReaderWriter) CountByFileID(ctx context.Context, fileID models.FileID) (int, error)
- func (_m *GalleryReaderWriter) Create(ctx context.Context, newGallery *models.Gallery, fileIDs []models.FileID) error
- func (_m *GalleryReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *GalleryReaderWriter) Find(ctx context.Context, id int) (*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByChecksums(ctx context.Context, checksums []string) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByFileID(ctx context.Context, fileID models.FileID) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByFingerprints(ctx context.Context, fp []models.Fingerprint) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByFolderID(ctx context.Context, folderID models.FolderID) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindByPath(ctx context.Context, path string) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) FindUserGalleryByTitle(ctx context.Context, title string) ([]*models.Gallery, error)
- func (_m *GalleryReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]models.File, error)
- func (_m *GalleryReaderWriter) GetImageIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GalleryReaderWriter) GetManyFileIDs(ctx context.Context, ids []int) ([][]models.FileID, error)
- func (_m *GalleryReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GalleryReaderWriter) GetSceneIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GalleryReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GalleryReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)
- func (_m *GalleryReaderWriter) Query(ctx context.Context, galleryFilter *models.GalleryFilterType, ...) ([]*models.Gallery, int, error)
- func (_m *GalleryReaderWriter) QueryCount(ctx context.Context, galleryFilter *models.GalleryFilterType, ...) (int, error)
- func (_m *GalleryReaderWriter) RemoveImages(ctx context.Context, galleryID int, imageIDs ...int) error
- func (_m *GalleryReaderWriter) ResetCover(ctx context.Context, galleryID int) error
- func (_m *GalleryReaderWriter) SetCover(ctx context.Context, galleryID int, coverImageID int) error
- func (_m *GalleryReaderWriter) Update(ctx context.Context, updatedGallery *models.Gallery) error
- func (_m *GalleryReaderWriter) UpdateImages(ctx context.Context, galleryID int, imageIDs []int) error
- func (_m *GalleryReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGallery models.GalleryPartial) (*models.Gallery, error)
- type GroupReaderWriter
- func (_m *GroupReaderWriter) All(ctx context.Context) ([]*models.Group, error)
- func (_m *GroupReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *GroupReaderWriter) CountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *GroupReaderWriter) CountByStudioID(ctx context.Context, studioID int) (int, error)
- func (_m *GroupReaderWriter) Create(ctx context.Context, newGroup *models.Group) error
- func (_m *GroupReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *GroupReaderWriter) Find(ctx context.Context, id int) (*models.Group, error)
- func (_m *GroupReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Group, error)
- func (_m *GroupReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Group, error)
- func (_m *GroupReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Group, error)
- func (_m *GroupReaderWriter) FindByStudioID(ctx context.Context, studioID int) ([]*models.Group, error)
- func (_m *GroupReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Group, error)
- func (_m *GroupReaderWriter) GetBackImage(ctx context.Context, groupID int) ([]byte, error)
- func (_m *GroupReaderWriter) GetContainingGroupDescriptions(ctx context.Context, id int) ([]models.GroupIDDescription, error)
- func (_m *GroupReaderWriter) GetFrontImage(ctx context.Context, groupID int) ([]byte, error)
- func (_m *GroupReaderWriter) GetSubGroupDescriptions(ctx context.Context, id int) ([]models.GroupIDDescription, error)
- func (_m *GroupReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *GroupReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)
- func (_m *GroupReaderWriter) HasBackImage(ctx context.Context, groupID int) (bool, error)
- func (_m *GroupReaderWriter) HasFrontImage(ctx context.Context, groupID int) (bool, error)
- func (_m *GroupReaderWriter) Query(ctx context.Context, groupFilter *models.GroupFilterType, ...) ([]*models.Group, int, error)
- func (_m *GroupReaderWriter) QueryCount(ctx context.Context, groupFilter *models.GroupFilterType, ...) (int, error)
- func (_m *GroupReaderWriter) Update(ctx context.Context, updatedGroup *models.Group) error
- func (_m *GroupReaderWriter) UpdateBackImage(ctx context.Context, groupID int, backImage []byte) error
- func (_m *GroupReaderWriter) UpdateFrontImage(ctx context.Context, groupID int, frontImage []byte) error
- func (_m *GroupReaderWriter) UpdatePartial(ctx context.Context, id int, updatedGroup models.GroupPartial) (*models.Group, error)
- type ImageReaderWriter
- func (_m *ImageReaderWriter) AddFileID(ctx context.Context, id int, fileID models.FileID) error
- func (_m *ImageReaderWriter) All(ctx context.Context) ([]*models.Image, error)
- func (_m *ImageReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *ImageReaderWriter) CountByFileID(ctx context.Context, fileID models.FileID) (int, error)
- func (_m *ImageReaderWriter) CountByGalleryID(ctx context.Context, galleryID int) (int, error)
- func (_m *ImageReaderWriter) CoverByGalleryID(ctx context.Context, galleryId int) (*models.Image, error)
- func (_m *ImageReaderWriter) Create(ctx context.Context, newImage *models.Image, fileIDs []models.FileID) error
- func (_m *ImageReaderWriter) DecrementOCounter(ctx context.Context, id int) (int, error)
- func (_m *ImageReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *ImageReaderWriter) Find(ctx context.Context, id int) (*models.Image, error)
- func (_m *ImageReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindByFileID(ctx context.Context, fileID models.FileID) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindByFingerprints(ctx context.Context, fp []models.Fingerprint) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindByFolderID(ctx context.Context, fileID models.FolderID) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindByGalleryIDIndex(ctx context.Context, galleryID int, index uint) (*models.Image, error)
- func (_m *ImageReaderWriter) FindByZipFileID(ctx context.Context, zipFileID models.FileID) ([]*models.Image, error)
- func (_m *ImageReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Image, error)
- func (_m *ImageReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]models.File, error)
- func (_m *ImageReaderWriter) GetGalleryIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *ImageReaderWriter) GetManyFileIDs(ctx context.Context, ids []int) ([][]models.FileID, error)
- func (_m *ImageReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *ImageReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *ImageReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)
- func (_m *ImageReaderWriter) IncrementOCounter(ctx context.Context, id int) (int, error)
- func (_m *ImageReaderWriter) OCount(ctx context.Context) (int, error)
- func (_m *ImageReaderWriter) OCountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *ImageReaderWriter) Query(ctx context.Context, options models.ImageQueryOptions) (*models.ImageQueryResult, error)
- func (_m *ImageReaderWriter) QueryCount(ctx context.Context, imageFilter *models.ImageFilterType, ...) (int, error)
- func (_m *ImageReaderWriter) RemoveFileID(ctx context.Context, id int, fileID models.FileID) error
- func (_m *ImageReaderWriter) ResetOCounter(ctx context.Context, id int) (int, error)
- func (_m *ImageReaderWriter) Size(ctx context.Context) (float64, error)
- func (_m *ImageReaderWriter) Update(ctx context.Context, updatedImage *models.Image) error
- func (_m *ImageReaderWriter) UpdatePartial(ctx context.Context, id int, partial models.ImagePartial) (*models.Image, error)
- func (_m *ImageReaderWriter) UpdatePerformers(ctx context.Context, imageID int, performerIDs []int) error
- func (_m *ImageReaderWriter) UpdateTags(ctx context.Context, imageID int, tagIDs []int) error
- type PerformerReaderWriter
- func (_m *PerformerReaderWriter) All(ctx context.Context) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *PerformerReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)
- func (_m *PerformerReaderWriter) Create(ctx context.Context, newPerformer *models.Performer) error
- func (_m *PerformerReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *PerformerReaderWriter) Find(ctx context.Context, id int) (*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)
- func (_m *PerformerReaderWriter) GetImage(ctx context.Context, performerID int) ([]byte, error)
- func (_m *PerformerReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
- func (_m *PerformerReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *PerformerReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)
- func (_m *PerformerReaderWriter) HasImage(ctx context.Context, performerID int) (bool, error)
- func (_m *PerformerReaderWriter) Query(ctx context.Context, performerFilter *models.PerformerFilterType, ...) ([]*models.Performer, int, error)
- func (_m *PerformerReaderWriter) QueryCount(ctx context.Context, performerFilter *models.PerformerFilterType, ...) (int, error)
- func (_m *PerformerReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Performer, error)
- func (_m *PerformerReaderWriter) Update(ctx context.Context, updatedPerformer *models.Performer) error
- func (_m *PerformerReaderWriter) UpdateImage(ctx context.Context, performerID int, image []byte) error
- func (_m *PerformerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedPerformer models.PerformerPartial) (*models.Performer, error)
- type SavedFilterReaderWriter
- func (_m *SavedFilterReaderWriter) All(ctx context.Context) ([]*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) Create(ctx context.Context, obj *models.SavedFilter) error
- func (_m *SavedFilterReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *SavedFilterReaderWriter) Find(ctx context.Context, id int) (*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) FindByMode(ctx context.Context, mode models.FilterMode) ([]*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) FindMany(ctx context.Context, ids []int, ignoreNotFound bool) ([]*models.SavedFilter, error)
- func (_m *SavedFilterReaderWriter) Update(ctx context.Context, obj *models.SavedFilter) error
- type SceneMarkerReaderWriter
- func (_m *SceneMarkerReaderWriter) All(ctx context.Context) ([]*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *SceneMarkerReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)
- func (_m *SceneMarkerReaderWriter) Create(ctx context.Context, newSceneMarker *models.SceneMarker) error
- func (_m *SceneMarkerReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *SceneMarkerReaderWriter) Find(ctx context.Context, id int) (*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) GetMarkerStrings(ctx context.Context, q *string, sort *string) ([]*models.MarkerStringsResultType, error)
- func (_m *SceneMarkerReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *SceneMarkerReaderWriter) Query(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, ...) ([]*models.SceneMarker, int, error)
- func (_m *SceneMarkerReaderWriter) QueryCount(ctx context.Context, sceneMarkerFilter *models.SceneMarkerFilterType, ...) (int, error)
- func (_m *SceneMarkerReaderWriter) Update(ctx context.Context, updatedSceneMarker *models.SceneMarker) error
- func (_m *SceneMarkerReaderWriter) UpdatePartial(ctx context.Context, id int, updatedSceneMarker models.SceneMarkerPartial) (*models.SceneMarker, error)
- func (_m *SceneMarkerReaderWriter) UpdateTags(ctx context.Context, markerID int, tagIDs []int) error
- func (_m *SceneMarkerReaderWriter) Wall(ctx context.Context, q *string) ([]*models.SceneMarker, error)
- type SceneReaderWriter
- func (_m *SceneReaderWriter) AddFileID(ctx context.Context, id int, fileID models.FileID) error
- func (_m *SceneReaderWriter) AddGalleryIDs(ctx context.Context, sceneID int, galleryIDs []int) error
- func (_m *SceneReaderWriter) AddO(ctx context.Context, id int, dates []time.Time) ([]time.Time, error)
- func (_m *SceneReaderWriter) AddViews(ctx context.Context, sceneID int, dates []time.Time) ([]time.Time, error)
- func (_m *SceneReaderWriter) All(ctx context.Context) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) AssignFiles(ctx context.Context, sceneID int, fileID []models.FileID) error
- func (_m *SceneReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) CountAllViews(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) CountByFileID(ctx context.Context, fileID models.FileID) (int, error)
- func (_m *SceneReaderWriter) CountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *SceneReaderWriter) CountMissingChecksum(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) CountMissingOSHash(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) CountUniqueViews(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) CountViews(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) Create(ctx context.Context, newScene *models.Scene, fileIDs []models.FileID) error
- func (_m *SceneReaderWriter) DeleteAllViews(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) DeleteO(ctx context.Context, id int, dates []time.Time) ([]time.Time, error)
- func (_m *SceneReaderWriter) DeleteViews(ctx context.Context, id int, dates []time.Time) ([]time.Time, error)
- func (_m *SceneReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *SceneReaderWriter) Duration(ctx context.Context) (float64, error)
- func (_m *SceneReaderWriter) Find(ctx context.Context, id int) (*models.Scene, error)
- func (_m *SceneReaderWriter) FindByChecksum(ctx context.Context, checksum string) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByFileID(ctx context.Context, fileID models.FileID) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByFingerprints(ctx context.Context, fp []models.Fingerprint) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByGalleryID(ctx context.Context, performerID int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByGroupID(ctx context.Context, groupID int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByOSHash(ctx context.Context, oshash string) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByPath(ctx context.Context, path string) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindByPrimaryFileID(ctx context.Context, fileID models.FileID) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) FindDuplicates(ctx context.Context, distance int, durationDiff float64) ([][]*models.Scene, error)
- func (_m *SceneReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Scene, error)
- func (_m *SceneReaderWriter) GetAllOCount(ctx context.Context) (int, error)
- func (_m *SceneReaderWriter) GetCover(ctx context.Context, sceneID int) ([]byte, error)
- func (_m *SceneReaderWriter) GetFiles(ctx context.Context, relatedID int) ([]*models.VideoFile, error)
- func (_m *SceneReaderWriter) GetGalleryIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *SceneReaderWriter) GetGroups(ctx context.Context, id int) ([]models.GroupsScenes, error)
- func (_m *SceneReaderWriter) GetManyFileIDs(ctx context.Context, ids []int) ([][]models.FileID, error)
- func (_m *SceneReaderWriter) GetManyLastViewed(ctx context.Context, ids []int) ([]*time.Time, error)
- func (_m *SceneReaderWriter) GetManyOCount(ctx context.Context, ids []int) ([]int, error)
- func (_m *SceneReaderWriter) GetManyODates(ctx context.Context, ids []int) ([][]time.Time, error)
- func (_m *SceneReaderWriter) GetManyViewCount(ctx context.Context, ids []int) ([]int, error)
- func (_m *SceneReaderWriter) GetManyViewDates(ctx context.Context, ids []int) ([][]time.Time, error)
- func (_m *SceneReaderWriter) GetOCount(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) GetODates(ctx context.Context, relatedID int) ([]time.Time, error)
- func (_m *SceneReaderWriter) GetPerformerIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *SceneReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
- func (_m *SceneReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *SceneReaderWriter) GetURLs(ctx context.Context, relatedID int) ([]string, error)
- func (_m *SceneReaderWriter) GetViewDates(ctx context.Context, relatedID int) ([]time.Time, error)
- func (_m *SceneReaderWriter) HasCover(ctx context.Context, sceneID int) (bool, error)
- func (_m *SceneReaderWriter) OCountByPerformerID(ctx context.Context, performerID int) (int, error)
- func (_m *SceneReaderWriter) PlayDuration(ctx context.Context) (float64, error)
- func (_m *SceneReaderWriter) Query(ctx context.Context, options models.SceneQueryOptions) (*models.SceneQueryResult, error)
- func (_m *SceneReaderWriter) QueryCount(ctx context.Context, sceneFilter *models.SceneFilterType, ...) (int, error)
- func (_m *SceneReaderWriter) ResetActivity(ctx context.Context, sceneID int, resetResume bool, resetDuration bool) (bool, error)
- func (_m *SceneReaderWriter) ResetO(ctx context.Context, id int) (int, error)
- func (_m *SceneReaderWriter) SaveActivity(ctx context.Context, sceneID int, resumeTime *float64, playDuration *float64) (bool, error)
- func (_m *SceneReaderWriter) Size(ctx context.Context) (float64, error)
- func (_m *SceneReaderWriter) Update(ctx context.Context, updatedScene *models.Scene) error
- func (_m *SceneReaderWriter) UpdateCover(ctx context.Context, sceneID int, cover []byte) error
- func (_m *SceneReaderWriter) UpdatePartial(ctx context.Context, id int, updatedScene models.ScenePartial) (*models.Scene, error)
- func (_m *SceneReaderWriter) Wall(ctx context.Context, q *string) ([]*models.Scene, error)
- type StudioReaderWriter
- func (_m *StudioReaderWriter) All(ctx context.Context) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *StudioReaderWriter) CountByTagID(ctx context.Context, tagID int) (int, error)
- func (_m *StudioReaderWriter) Create(ctx context.Context, newStudio *models.Studio) error
- func (_m *StudioReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *StudioReaderWriter) Find(ctx context.Context, id int) (*models.Studio, error)
- func (_m *StudioReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Studio, error)
- func (_m *StudioReaderWriter) FindBySceneID(ctx context.Context, sceneID int) (*models.Studio, error)
- func (_m *StudioReaderWriter) FindByStashID(ctx context.Context, stashID models.StashID) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) FindByStashIDStatus(ctx context.Context, hasStashID bool, stashboxEndpoint string) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) FindChildren(ctx context.Context, id int) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)
- func (_m *StudioReaderWriter) GetImage(ctx context.Context, studioID int) ([]byte, error)
- func (_m *StudioReaderWriter) GetStashIDs(ctx context.Context, relatedID int) ([]models.StashID, error)
- func (_m *StudioReaderWriter) GetTagIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *StudioReaderWriter) HasImage(ctx context.Context, studioID int) (bool, error)
- func (_m *StudioReaderWriter) Query(ctx context.Context, studioFilter *models.StudioFilterType, ...) ([]*models.Studio, int, error)
- func (_m *StudioReaderWriter) QueryCount(ctx context.Context, studioFilter *models.StudioFilterType, ...) (int, error)
- func (_m *StudioReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Studio, error)
- func (_m *StudioReaderWriter) Update(ctx context.Context, updatedStudio *models.Studio) error
- func (_m *StudioReaderWriter) UpdateImage(ctx context.Context, studioID int, image []byte) error
- func (_m *StudioReaderWriter) UpdatePartial(ctx context.Context, updatedStudio models.StudioPartial) (*models.Studio, error)
- type TagReaderWriter
- func (_m *TagReaderWriter) All(ctx context.Context) ([]*models.Tag, error)
- func (_m *TagReaderWriter) Count(ctx context.Context) (int, error)
- func (_m *TagReaderWriter) CountByChildTagID(ctx context.Context, childID int) (int, error)
- func (_m *TagReaderWriter) CountByParentTagID(ctx context.Context, parentID int) (int, error)
- func (_m *TagReaderWriter) Create(ctx context.Context, newTag *models.Tag) error
- func (_m *TagReaderWriter) Destroy(ctx context.Context, id int) error
- func (_m *TagReaderWriter) Find(ctx context.Context, id int) (*models.Tag, error)
- func (_m *TagReaderWriter) FindAllAncestors(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)
- func (_m *TagReaderWriter) FindAllDescendants(ctx context.Context, tagID int, excludeIDs []int) ([]*models.TagPath, error)
- func (_m *TagReaderWriter) FindByChildTagID(ctx context.Context, childID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByGalleryID(ctx context.Context, galleryID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByGroupID(ctx context.Context, groupID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByImageID(ctx context.Context, imageID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByName(ctx context.Context, name string, nocase bool) (*models.Tag, error)
- func (_m *TagReaderWriter) FindByNames(ctx context.Context, names []string, nocase bool) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByParentTagID(ctx context.Context, parentID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByPerformerID(ctx context.Context, performerID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindBySceneID(ctx context.Context, sceneID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindBySceneMarkerID(ctx context.Context, sceneMarkerID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindByStudioID(ctx context.Context, studioID int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) FindMany(ctx context.Context, ids []int) ([]*models.Tag, error)
- func (_m *TagReaderWriter) GetAliases(ctx context.Context, relatedID int) ([]string, error)
- func (_m *TagReaderWriter) GetChildIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *TagReaderWriter) GetImage(ctx context.Context, tagID int) ([]byte, error)
- func (_m *TagReaderWriter) GetParentIDs(ctx context.Context, relatedID int) ([]int, error)
- func (_m *TagReaderWriter) HasImage(ctx context.Context, tagID int) (bool, error)
- func (_m *TagReaderWriter) Merge(ctx context.Context, source []int, destination int) error
- func (_m *TagReaderWriter) Query(ctx context.Context, tagFilter *models.TagFilterType, ...) ([]*models.Tag, int, error)
- func (_m *TagReaderWriter) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Tag, error)
- func (_m *TagReaderWriter) Update(ctx context.Context, updatedTag *models.Tag) error
- func (_m *TagReaderWriter) UpdateAliases(ctx context.Context, tagID int, aliases []string) error
- func (_m *TagReaderWriter) UpdateChildTags(ctx context.Context, tagID int, parentIDs []int) error
- func (_m *TagReaderWriter) UpdateImage(ctx context.Context, tagID int, image []byte) error
- func (_m *TagReaderWriter) UpdateParentTags(ctx context.Context, tagID int, parentIDs []int) error
- func (_m *TagReaderWriter) UpdatePartial(ctx context.Context, id int, updateTag models.TagPartial) (*models.Tag, error)
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
type Database struct { File *FileReaderWriter Folder *FolderReaderWriter Gallery *GalleryReaderWriter GalleryChapter *GalleryChapterReaderWriter Image *ImageReaderWriter Group *GroupReaderWriter Performer *PerformerReaderWriter Scene *SceneReaderWriter SceneMarker *SceneMarkerReaderWriter Studio *StudioReaderWriter Tag *TagReaderWriter SavedFilter *SavedFilterReaderWriter }
func NewDatabase ¶ added in v0.24.0
func NewDatabase() *Database
func (*Database) AddPostCommitHook ¶ added in v0.24.0
func (*Database) AddPostRollbackHook ¶ added in v0.24.0
func (*Database) AssertExpectations ¶ added in v0.24.0
func (*Database) Repository ¶ added in v0.24.0
func (db *Database) Repository() models.Repository
type FileReaderWriter ¶ added in v0.23.0
FileReaderWriter is an autogenerated mock type for the FileReaderWriter type
func (*FileReaderWriter) CountAllInPaths ¶ added in v0.23.0
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
Create provides a mock function with given fields: ctx, f
func (*FileReaderWriter) Destroy ¶ added in v0.23.0
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
Find provides a mock function with given fields: ctx, id
func (*FileReaderWriter) FindAllByPath ¶ added in v0.23.0
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
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
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
func (_m *FileReaderWriter) Query(ctx context.Context, options models.FileQueryOptions) (*models.FileQueryResult, error)
Query provides a mock function with given fields: ctx, options
func (*FileReaderWriter) Update ¶ added in v0.23.0
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
FolderReaderWriter is an autogenerated mock type for the FolderReaderWriter type
func (*FolderReaderWriter) CountAllInPaths ¶ added in v0.23.0
CountAllInPaths provides a mock function with given fields: ctx, p
func (*FolderReaderWriter) Create ¶ added in v0.23.0
Create provides a mock function with given fields: ctx, f
func (*FolderReaderWriter) Destroy ¶ added in v0.23.0
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
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
type GalleryChapterReaderWriter ¶ added in v0.20.0
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
func (_m *GalleryChapterReaderWriter) Find(ctx context.Context, id int) (*models.GalleryChapter, error)
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 ¶
GalleryReaderWriter is an autogenerated mock type for the GalleryReaderWriter type
func (*GalleryReaderWriter) AddFileID ¶ added in v0.23.0
AddFileID provides a mock function with given fields: ctx, id, fileID
func (*GalleryReaderWriter) AddImages ¶ added in v0.23.0
AddImages provides a mock function with given fields: ctx, galleryID, imageIDs
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
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 ¶
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
GetFiles provides a mock function with given fields: ctx, relatedID
func (*GalleryReaderWriter) GetImageIDs ¶ added in v0.5.0
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
GetPerformerIDs provides a mock function with given fields: ctx, relatedID
func (*GalleryReaderWriter) GetSceneIDs ¶ added in v0.5.0
GetSceneIDs provides a mock function with given fields: ctx, relatedID
func (*GalleryReaderWriter) GetTagIDs ¶ added in v0.5.0
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*GalleryReaderWriter) GetURLs ¶ added in v0.23.0
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
SetCover provides a mock function with given fields: ctx, galleryID, coverImageID
func (*GalleryReaderWriter) Update ¶
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
GroupReaderWriter is an autogenerated mock type for the GroupReaderWriter type
func (*GroupReaderWriter) All ¶ added in v0.27.0
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
CountByPerformerID provides a mock function with given fields: ctx, performerID
func (*GroupReaderWriter) CountByStudioID ¶ added in v0.27.0
CountByStudioID provides a mock function with given fields: ctx, studioID
func (*GroupReaderWriter) Create ¶ added in v0.27.0
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
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
FindMany provides a mock function with given fields: ctx, ids
func (*GroupReaderWriter) GetBackImage ¶ added in v0.27.0
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
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
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*GroupReaderWriter) GetURLs ¶ added in v0.27.0
GetURLs provides a mock function with given fields: ctx, relatedID
func (*GroupReaderWriter) HasBackImage ¶ added in v0.27.0
HasBackImage provides a mock function with given fields: ctx, groupID
func (*GroupReaderWriter) HasFrontImage ¶ added in v0.27.0
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
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 ¶
ImageReaderWriter is an autogenerated mock type for the ImageReaderWriter type
func (*ImageReaderWriter) AddFileID ¶ added in v0.23.0
AddFileID provides a mock function with given fields: ctx, id, fileID
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
CountByFileID provides a mock function with given fields: ctx, fileID
func (*ImageReaderWriter) CountByGalleryID ¶ added in v0.5.0
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
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
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) GetFiles ¶ added in v0.23.0
GetFiles provides a mock function with given fields: ctx, relatedID
func (*ImageReaderWriter) GetGalleryIDs ¶ added in v0.5.0
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
GetPerformerIDs provides a mock function with given fields: ctx, relatedID
func (*ImageReaderWriter) GetTagIDs ¶ added in v0.5.0
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*ImageReaderWriter) GetURLs ¶ added in v0.23.0
GetURLs provides a mock function with given fields: ctx, relatedID
func (*ImageReaderWriter) IncrementOCounter ¶ added in v0.5.0
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
OCountByPerformerID provides a mock function with given fields: ctx, performerID
func (*ImageReaderWriter) Query ¶ added in v0.5.0
func (_m *ImageReaderWriter) Query(ctx context.Context, options models.ImageQueryOptions) (*models.ImageQueryResult, error)
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
RemoveFileID provides a mock function with given fields: ctx, id, fileID
func (*ImageReaderWriter) ResetOCounter ¶ added in v0.5.0
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 ¶
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
UpdateTags provides a mock function with given fields: ctx, imageID, tagIDs
type PerformerReaderWriter ¶
PerformerReaderWriter is an autogenerated mock type for the PerformerReaderWriter type
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
CountByTagID provides a mock function with given fields: ctx, tagID
func (*PerformerReaderWriter) Create ¶
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
GetAliases provides a mock function with given fields: ctx, relatedID
func (*PerformerReaderWriter) GetImage ¶ added in v0.5.0
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
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*PerformerReaderWriter) GetURLs ¶ added in v0.27.0
GetURLs provides a mock function with given fields: ctx, relatedID
func (*PerformerReaderWriter) HasImage ¶ added in v0.21.0
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
SavedFilterReaderWriter is an autogenerated mock type for the SavedFilterReaderWriter type
func (*SavedFilterReaderWriter) All ¶ added in v0.16.0
func (_m *SavedFilterReaderWriter) All(ctx context.Context) ([]*models.SavedFilter, error)
All provides a mock function with given fields: ctx
func (*SavedFilterReaderWriter) Create ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) Create(ctx context.Context, obj *models.SavedFilter) error
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
func (_m *SavedFilterReaderWriter) Find(ctx context.Context, id int) (*models.SavedFilter, error)
Find provides a mock function with given fields: ctx, id
func (*SavedFilterReaderWriter) FindByMode ¶ added in v0.8.0
func (_m *SavedFilterReaderWriter) FindByMode(ctx context.Context, mode models.FilterMode) ([]*models.SavedFilter, error)
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
func (_m *SavedFilterReaderWriter) Update(ctx context.Context, obj *models.SavedFilter) error
Update provides a mock function with given fields: ctx, obj
type SceneMarkerReaderWriter ¶
SceneMarkerReaderWriter is an autogenerated mock type for the SceneMarkerReaderWriter type
func (*SceneMarkerReaderWriter) All ¶ added in v0.19.1
func (_m *SceneMarkerReaderWriter) All(ctx context.Context) ([]*models.SceneMarker, error)
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
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
func (_m *SceneMarkerReaderWriter) Find(ctx context.Context, id int) (*models.SceneMarker, error)
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
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
func (_m *SceneMarkerReaderWriter) Wall(ctx context.Context, q *string) ([]*models.SceneMarker, error)
Wall provides a mock function with given fields: ctx, q
type SceneReaderWriter ¶
SceneReaderWriter is an autogenerated mock type for the SceneReaderWriter type
func (*SceneReaderWriter) AddFileID ¶ added in v0.23.0
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) 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
CountByFileID provides a mock function with given fields: ctx, fileID
func (*SceneReaderWriter) CountByPerformerID ¶ added in v0.5.0
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
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
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
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
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) 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
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
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
GetManyOCount provides a mock function with given fields: ctx, ids
func (*SceneReaderWriter) GetManyODates ¶ added in v0.25.0
GetManyODates provides a mock function with given fields: ctx, ids
func (*SceneReaderWriter) GetManyViewCount ¶ added in v0.25.0
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
GetOCount provides a mock function with given fields: ctx, id
func (*SceneReaderWriter) GetODates ¶ added in v0.25.0
GetODates provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetPerformerIDs ¶ added in v0.5.0
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
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetURLs ¶ added in v0.22.0
GetURLs provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) GetViewDates ¶ added in v0.25.0
GetViewDates provides a mock function with given fields: ctx, relatedID
func (*SceneReaderWriter) HasCover ¶ added in v0.20.0
HasCover provides a mock function with given fields: ctx, sceneID
func (*SceneReaderWriter) OCountByPerformerID ¶ added in v0.21.0
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
func (_m *SceneReaderWriter) Query(ctx context.Context, options models.SceneQueryOptions) (*models.SceneQueryResult, error)
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
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 ¶
Update provides a mock function with given fields: ctx, updatedScene
func (*SceneReaderWriter) UpdateCover ¶ added in v0.5.0
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
type StudioReaderWriter ¶
StudioReaderWriter is an autogenerated mock type for the StudioReaderWriter type
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
CountByTagID provides a mock function with given fields: ctx, tagID
func (*StudioReaderWriter) Create ¶
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) 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
FindChildren provides a mock function with given fields: ctx, id
func (*StudioReaderWriter) GetAliases ¶ added in v0.10.0
GetAliases provides a mock function with given fields: ctx, relatedID
func (*StudioReaderWriter) GetImage ¶ added in v0.5.0
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
GetTagIDs provides a mock function with given fields: ctx, relatedID
func (*StudioReaderWriter) HasImage ¶ added in v0.5.0
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 ¶
Update provides a mock function with given fields: ctx, updatedStudio
func (*StudioReaderWriter) UpdateImage ¶ added in v0.5.0
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 ¶
TagReaderWriter is an autogenerated mock type for the TagReaderWriter type
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
CountByChildTagID provides a mock function with given fields: ctx, childID
func (*TagReaderWriter) CountByParentTagID ¶ added in v0.23.0
CountByParentTagID provides a mock function with given fields: ctx, parentID
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) 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
FindByGroupID provides a mock function with given fields: ctx, groupID
func (*TagReaderWriter) FindByImageID ¶
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 ¶
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
FindByStudioID provides a mock function with given fields: ctx, studioID
func (*TagReaderWriter) GetAliases ¶ added in v0.8.0
GetAliases provides a mock function with given fields: ctx, relatedID
func (*TagReaderWriter) GetChildIDs ¶ added in v0.27.0
GetChildIDs provides a mock function with given fields: ctx, relatedID
func (*TagReaderWriter) GetImage ¶ added in v0.5.0
GetImage provides a mock function with given fields: ctx, tagID
func (*TagReaderWriter) GetParentIDs ¶ added in v0.27.0
GetParentIDs provides a mock function with given fields: ctx, relatedID
func (*TagReaderWriter) HasImage ¶ added in v0.21.0
HasImage provides a mock function with given fields: ctx, tagID
func (*TagReaderWriter) Merge ¶ added in v0.8.0
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) UpdateAliases ¶ added in v0.8.0
UpdateAliases provides a mock function with given fields: ctx, tagID, aliases
func (*TagReaderWriter) UpdateChildTags ¶ added in v0.10.0
UpdateChildTags provides a mock function with given fields: ctx, tagID, parentIDs
func (*TagReaderWriter) UpdateImage ¶ added in v0.5.0
UpdateImage provides a mock function with given fields: ctx, tagID, image
func (*TagReaderWriter) UpdateParentTags ¶ added in v0.10.0
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