mocks

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

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 GalleryReaderWriter

type GalleryReaderWriter struct {
	mock.Mock
}

GalleryReaderWriter is an autogenerated mock type for the GalleryReaderWriter type

func (*GalleryReaderWriter) All

func (_m *GalleryReaderWriter) All() ([]*models.Gallery, error)

All provides a mock function with given fields:

func (*GalleryReaderWriter) Count added in v0.5.0

func (_m *GalleryReaderWriter) Count() (int, error)

Count provides a mock function with given fields:

func (*GalleryReaderWriter) Create

func (_m *GalleryReaderWriter) Create(newGallery models.Gallery) (*models.Gallery, error)

Create provides a mock function with given fields: newGallery

func (*GalleryReaderWriter) Destroy added in v0.5.0

func (_m *GalleryReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*GalleryReaderWriter) Find added in v0.5.0

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

Find provides a mock function with given fields: id

func (*GalleryReaderWriter) FindByChecksum

func (_m *GalleryReaderWriter) FindByChecksum(checksum string) (*models.Gallery, error)

FindByChecksum provides a mock function with given fields: checksum

func (*GalleryReaderWriter) FindByChecksums added in v0.5.0

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

FindByChecksums provides a mock function with given fields: checksums

func (*GalleryReaderWriter) FindByImageID

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

FindByImageID provides a mock function with given fields: imageID

func (*GalleryReaderWriter) FindByPath

func (_m *GalleryReaderWriter) FindByPath(path string) (*models.Gallery, error)

FindByPath provides a mock function with given fields: path

func (*GalleryReaderWriter) FindBySceneID

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

FindBySceneID provides a mock function with given fields: sceneID

func (*GalleryReaderWriter) FindMany

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

FindMany provides a mock function with given fields: ids

func (*GalleryReaderWriter) GetImageIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetImageIDs(galleryID int) ([]int, error)

GetImageIDs provides a mock function with given fields: galleryID

func (*GalleryReaderWriter) GetPerformerIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetPerformerIDs(galleryID int) ([]int, error)

GetPerformerIDs provides a mock function with given fields: galleryID

func (*GalleryReaderWriter) GetSceneIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetSceneIDs(galleryID int) ([]int, error)

GetSceneIDs provides a mock function with given fields: galleryID

func (*GalleryReaderWriter) GetTagIDs added in v0.5.0

func (_m *GalleryReaderWriter) GetTagIDs(galleryID int) ([]int, error)

GetTagIDs provides a mock function with given fields: galleryID

func (*GalleryReaderWriter) Query added in v0.5.0

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

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

func (*GalleryReaderWriter) QueryCount added in v0.7.0

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

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

func (*GalleryReaderWriter) Update

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

Update provides a mock function with given fields: updatedGallery

func (*GalleryReaderWriter) UpdateFileModTime added in v0.5.0

func (_m *GalleryReaderWriter) UpdateFileModTime(id int, modTime models.NullSQLiteTimestamp) error

UpdateFileModTime provides a mock function with given fields: id, modTime

func (*GalleryReaderWriter) UpdateImages added in v0.5.0

func (_m *GalleryReaderWriter) UpdateImages(galleryID int, imageIDs []int) error

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

func (*GalleryReaderWriter) UpdatePartial added in v0.5.0

func (_m *GalleryReaderWriter) UpdatePartial(updatedGallery models.GalleryPartial) (*models.Gallery, error)

UpdatePartial provides a mock function with given fields: updatedGallery

func (*GalleryReaderWriter) UpdatePerformers added in v0.5.0

func (_m *GalleryReaderWriter) UpdatePerformers(galleryID int, performerIDs []int) error

UpdatePerformers provides a mock function with given fields: galleryID, performerIDs

func (*GalleryReaderWriter) UpdateScenes added in v0.5.0

func (_m *GalleryReaderWriter) UpdateScenes(galleryID int, sceneIDs []int) error

UpdateScenes provides a mock function with given fields: galleryID, sceneIDs

func (*GalleryReaderWriter) UpdateTags added in v0.5.0

func (_m *GalleryReaderWriter) UpdateTags(galleryID int, tagIDs []int) error

UpdateTags provides a mock function with given fields: galleryID, tagIDs

type ImageReaderWriter

type ImageReaderWriter struct {
	mock.Mock
}

ImageReaderWriter is an autogenerated mock type for the ImageReaderWriter type

func (*ImageReaderWriter) All

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

All provides a mock function with given fields:

func (*ImageReaderWriter) Count added in v0.5.0

func (_m *ImageReaderWriter) Count() (int, error)

Count provides a mock function with given fields:

func (*ImageReaderWriter) CountByGalleryID added in v0.5.0

func (_m *ImageReaderWriter) CountByGalleryID(galleryID int) (int, error)

CountByGalleryID provides a mock function with given fields: galleryID

func (*ImageReaderWriter) Create

func (_m *ImageReaderWriter) Create(newImage models.Image) (*models.Image, error)

Create provides a mock function with given fields: newImage

func (*ImageReaderWriter) DecrementOCounter added in v0.5.0

func (_m *ImageReaderWriter) DecrementOCounter(id int) (int, error)

DecrementOCounter provides a mock function with given fields: id

func (*ImageReaderWriter) Destroy added in v0.5.0

func (_m *ImageReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*ImageReaderWriter) Find added in v0.5.0

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

Find provides a mock function with given fields: id

func (*ImageReaderWriter) FindByChecksum

func (_m *ImageReaderWriter) FindByChecksum(checksum string) (*models.Image, error)

FindByChecksum provides a mock function with given fields: checksum

func (*ImageReaderWriter) FindByGalleryID

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

FindByGalleryID provides a mock function with given fields: galleryID

func (*ImageReaderWriter) FindByPath added in v0.5.0

func (_m *ImageReaderWriter) FindByPath(path string) (*models.Image, error)

FindByPath provides a mock function with given fields: path

func (*ImageReaderWriter) FindMany

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

FindMany provides a mock function with given fields: ids

func (*ImageReaderWriter) GetGalleryIDs added in v0.5.0

func (_m *ImageReaderWriter) GetGalleryIDs(imageID int) ([]int, error)

GetGalleryIDs provides a mock function with given fields: imageID

func (*ImageReaderWriter) GetPerformerIDs added in v0.5.0

func (_m *ImageReaderWriter) GetPerformerIDs(imageID int) ([]int, error)

GetPerformerIDs provides a mock function with given fields: imageID

func (*ImageReaderWriter) GetTagIDs added in v0.5.0

func (_m *ImageReaderWriter) GetTagIDs(imageID int) ([]int, error)

GetTagIDs provides a mock function with given fields: imageID

func (*ImageReaderWriter) IncrementOCounter added in v0.5.0

func (_m *ImageReaderWriter) IncrementOCounter(id int) (int, error)

IncrementOCounter provides a mock function with given fields: id

func (*ImageReaderWriter) Query added in v0.5.0

Query provides a mock function with given fields: options

func (*ImageReaderWriter) QueryCount added in v0.7.0

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

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

func (*ImageReaderWriter) ResetOCounter added in v0.5.0

func (_m *ImageReaderWriter) ResetOCounter(id int) (int, error)

ResetOCounter provides a mock function with given fields: id

func (*ImageReaderWriter) Size added in v0.5.0

func (_m *ImageReaderWriter) Size() (float64, error)

Size provides a mock function with given fields:

func (*ImageReaderWriter) Update

func (_m *ImageReaderWriter) Update(updatedImage models.ImagePartial) (*models.Image, error)

Update provides a mock function with given fields: updatedImage

func (*ImageReaderWriter) UpdateFull

func (_m *ImageReaderWriter) UpdateFull(updatedImage models.Image) (*models.Image, error)

UpdateFull provides a mock function with given fields: updatedImage

func (*ImageReaderWriter) UpdateGalleries added in v0.5.0

func (_m *ImageReaderWriter) UpdateGalleries(imageID int, galleryIDs []int) error

UpdateGalleries provides a mock function with given fields: imageID, galleryIDs

func (*ImageReaderWriter) UpdatePerformers added in v0.5.0

func (_m *ImageReaderWriter) UpdatePerformers(imageID int, performerIDs []int) error

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

func (*ImageReaderWriter) UpdateTags added in v0.5.0

func (_m *ImageReaderWriter) UpdateTags(imageID int, tagIDs []int) error

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

type MovieReaderWriter

type MovieReaderWriter struct {
	mock.Mock
}

MovieReaderWriter is an autogenerated mock type for the MovieReaderWriter type

func (*MovieReaderWriter) All

func (_m *MovieReaderWriter) All() ([]*models.Movie, error)

All provides a mock function with given fields:

func (*MovieReaderWriter) Count added in v0.5.0

func (_m *MovieReaderWriter) Count() (int, error)

Count provides a mock function with given fields:

func (*MovieReaderWriter) CountByPerformerID added in v0.10.0

func (_m *MovieReaderWriter) CountByPerformerID(performerID int) (int, error)

CountByPerformerID provides a mock function with given fields: performerID

func (*MovieReaderWriter) CountByStudioID added in v0.10.0

func (_m *MovieReaderWriter) CountByStudioID(studioID int) (int, error)

CountByStudioID provides a mock function with given fields: studioID

func (*MovieReaderWriter) Create

func (_m *MovieReaderWriter) Create(newMovie models.Movie) (*models.Movie, error)

Create provides a mock function with given fields: newMovie

func (*MovieReaderWriter) Destroy added in v0.5.0

func (_m *MovieReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*MovieReaderWriter) DestroyImages added in v0.5.0

func (_m *MovieReaderWriter) DestroyImages(movieID int) error

DestroyImages provides a mock function with given fields: movieID

func (*MovieReaderWriter) Find

func (_m *MovieReaderWriter) Find(id int) (*models.Movie, error)

Find provides a mock function with given fields: id

func (*MovieReaderWriter) FindByName

func (_m *MovieReaderWriter) FindByName(name string, nocase bool) (*models.Movie, error)

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

func (*MovieReaderWriter) FindByNames

func (_m *MovieReaderWriter) FindByNames(names []string, nocase bool) ([]*models.Movie, error)

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

func (*MovieReaderWriter) FindByPerformerID added in v0.10.0

func (_m *MovieReaderWriter) FindByPerformerID(performerID int) ([]*models.Movie, error)

FindByPerformerID provides a mock function with given fields: performerID

func (*MovieReaderWriter) FindByStudioID added in v0.10.0

func (_m *MovieReaderWriter) FindByStudioID(studioID int) ([]*models.Movie, error)

FindByStudioID provides a mock function with given fields: studioID

func (*MovieReaderWriter) FindMany

func (_m *MovieReaderWriter) FindMany(ids []int) ([]*models.Movie, error)

FindMany provides a mock function with given fields: ids

func (*MovieReaderWriter) GetBackImage

func (_m *MovieReaderWriter) GetBackImage(movieID int) ([]byte, error)

GetBackImage provides a mock function with given fields: movieID

func (*MovieReaderWriter) GetFrontImage

func (_m *MovieReaderWriter) GetFrontImage(movieID int) ([]byte, error)

GetFrontImage provides a mock function with given fields: movieID

func (*MovieReaderWriter) Query added in v0.5.0

func (_m *MovieReaderWriter) Query(movieFilter *models.MovieFilterType, findFilter *models.FindFilterType) ([]*models.Movie, int, error)

Query provides a mock function with given fields: movieFilter, findFilter

func (*MovieReaderWriter) Update

func (_m *MovieReaderWriter) Update(updatedMovie models.MoviePartial) (*models.Movie, error)

Update provides a mock function with given fields: updatedMovie

func (*MovieReaderWriter) UpdateFull

func (_m *MovieReaderWriter) UpdateFull(updatedMovie models.Movie) (*models.Movie, error)

UpdateFull provides a mock function with given fields: updatedMovie

func (*MovieReaderWriter) UpdateImages added in v0.5.0

func (_m *MovieReaderWriter) UpdateImages(movieID int, frontImage []byte, backImage []byte) error

UpdateImages provides a mock function with given fields: movieID, frontImage, backImage

type PerformerReaderWriter

type PerformerReaderWriter struct {
	mock.Mock
}

PerformerReaderWriter is an autogenerated mock type for the PerformerReaderWriter type

func (*PerformerReaderWriter) All

func (_m *PerformerReaderWriter) All() ([]*models.Performer, error)

All provides a mock function with given fields:

func (*PerformerReaderWriter) Count added in v0.5.0

func (_m *PerformerReaderWriter) Count() (int, error)

Count provides a mock function with given fields:

func (*PerformerReaderWriter) CountByTagID added in v0.6.0

func (_m *PerformerReaderWriter) CountByTagID(tagID int) (int, error)

CountByTagID provides a mock function with given fields: tagID

func (*PerformerReaderWriter) Create

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

Create provides a mock function with given fields: newPerformer

func (*PerformerReaderWriter) Destroy added in v0.5.0

func (_m *PerformerReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*PerformerReaderWriter) DestroyImage added in v0.5.0

func (_m *PerformerReaderWriter) DestroyImage(performerID int) error

DestroyImage provides a mock function with given fields: performerID

func (*PerformerReaderWriter) Find added in v0.5.0

func (_m *PerformerReaderWriter) Find(id int) (*models.Performer, error)

Find provides a mock function with given fields: id

func (*PerformerReaderWriter) FindByGalleryID

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

FindByGalleryID provides a mock function with given fields: galleryID

func (*PerformerReaderWriter) FindByImageID

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

FindByImageID provides a mock function with given fields: imageID

func (*PerformerReaderWriter) FindByNames

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

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

func (*PerformerReaderWriter) FindBySceneID

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

FindBySceneID provides a mock function with given fields: sceneID

func (*PerformerReaderWriter) FindByStashID added in v0.11.0

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

FindByStashID provides a mock function with given fields: stashID

func (*PerformerReaderWriter) FindByStashIDStatus added in v0.7.0

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

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

func (*PerformerReaderWriter) FindMany

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

FindMany provides a mock function with given fields: ids

func (*PerformerReaderWriter) FindNamesBySceneID

func (_m *PerformerReaderWriter) FindNamesBySceneID(sceneID int) ([]*models.Performer, error)

FindNamesBySceneID provides a mock function with given fields: sceneID

func (*PerformerReaderWriter) GetImage added in v0.5.0

func (_m *PerformerReaderWriter) GetImage(performerID int) ([]byte, error)

GetImage provides a mock function with given fields: performerID

func (*PerformerReaderWriter) GetStashIDs added in v0.5.0

func (_m *PerformerReaderWriter) GetStashIDs(performerID int) ([]*models.StashID, error)

GetStashIDs provides a mock function with given fields: performerID

func (*PerformerReaderWriter) GetTagIDs added in v0.6.0

func (_m *PerformerReaderWriter) GetTagIDs(performerID int) ([]int, error)

GetTagIDs provides a mock function with given fields: performerID

func (*PerformerReaderWriter) Query added in v0.5.0

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

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

func (*PerformerReaderWriter) QueryForAutoTag added in v0.7.0

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

QueryForAutoTag provides a mock function with given fields: words

func (*PerformerReaderWriter) Update

func (_m *PerformerReaderWriter) Update(updatedPerformer models.PerformerPartial) (*models.Performer, error)

Update provides a mock function with given fields: updatedPerformer

func (*PerformerReaderWriter) UpdateFull added in v0.5.0

func (_m *PerformerReaderWriter) UpdateFull(updatedPerformer models.Performer) (*models.Performer, error)

UpdateFull provides a mock function with given fields: updatedPerformer

func (*PerformerReaderWriter) UpdateImage added in v0.5.0

func (_m *PerformerReaderWriter) UpdateImage(performerID int, image []byte) error

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

func (*PerformerReaderWriter) UpdateStashIDs added in v0.5.0

func (_m *PerformerReaderWriter) UpdateStashIDs(performerID int, stashIDs []models.StashID) error

UpdateStashIDs provides a mock function with given fields: performerID, stashIDs

func (*PerformerReaderWriter) UpdateTags added in v0.6.0

func (_m *PerformerReaderWriter) UpdateTags(performerID int, tagIDs []int) error

UpdateTags provides a mock function with given fields: performerID, tagIDs

type ReadTransaction added in v0.5.0

type ReadTransaction struct {
	*TransactionManager
}

func (*ReadTransaction) Gallery added in v0.5.0

func (r *ReadTransaction) Gallery() models.GalleryReader

func (*ReadTransaction) Image added in v0.5.0

func (r *ReadTransaction) Image() models.ImageReader

func (*ReadTransaction) Movie added in v0.5.0

func (r *ReadTransaction) Movie() models.MovieReader

func (*ReadTransaction) Performer added in v0.5.0

func (r *ReadTransaction) Performer() models.PerformerReader

func (*ReadTransaction) SavedFilter added in v0.8.0

func (r *ReadTransaction) SavedFilter() models.SavedFilterReader

func (*ReadTransaction) Scene added in v0.5.0

func (r *ReadTransaction) Scene() models.SceneReader

func (*ReadTransaction) SceneMarker added in v0.5.0

func (r *ReadTransaction) SceneMarker() models.SceneMarkerReader

func (*ReadTransaction) ScrapedItem added in v0.5.0

func (r *ReadTransaction) ScrapedItem() models.ScrapedItemReader

func (*ReadTransaction) Studio added in v0.5.0

func (r *ReadTransaction) Studio() models.StudioReader

func (*ReadTransaction) Tag added in v0.5.0

func (r *ReadTransaction) Tag() models.TagReader

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:

func (*SavedFilterReaderWriter) Create added in v0.8.0

Create provides a mock function with given fields: obj

func (*SavedFilterReaderWriter) Destroy added in v0.8.0

func (_m *SavedFilterReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*SavedFilterReaderWriter) Find added in v0.8.0

Find provides a mock function with given fields: id

func (*SavedFilterReaderWriter) FindByMode added in v0.8.0

func (_m *SavedFilterReaderWriter) FindByMode(mode models.FilterMode) ([]*models.SavedFilter, error)

FindByMode provides a mock function with given fields: mode

func (*SavedFilterReaderWriter) FindDefault added in v0.8.0

FindDefault provides a mock function with given fields: mode

func (*SavedFilterReaderWriter) FindMany added in v0.16.0

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

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

func (*SavedFilterReaderWriter) SetDefault added in v0.8.0

SetDefault provides a mock function with given fields: obj

func (*SavedFilterReaderWriter) Update added in v0.8.0

Update provides a mock function with given fields: obj

type SceneMarkerReaderWriter

type SceneMarkerReaderWriter struct {
	mock.Mock
}

SceneMarkerReaderWriter is an autogenerated mock type for the SceneMarkerReaderWriter type

func (*SceneMarkerReaderWriter) CountByTagID added in v0.5.0

func (_m *SceneMarkerReaderWriter) CountByTagID(tagID int) (int, error)

CountByTagID provides a mock function with given fields: tagID

func (*SceneMarkerReaderWriter) Create

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

Create provides a mock function with given fields: newSceneMarker

func (*SceneMarkerReaderWriter) Destroy added in v0.5.0

func (_m *SceneMarkerReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*SceneMarkerReaderWriter) Find added in v0.5.0

Find provides a mock function with given fields: id

func (*SceneMarkerReaderWriter) FindBySceneID

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

FindBySceneID provides a mock function with given fields: sceneID

func (*SceneMarkerReaderWriter) FindMany added in v0.5.0

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

FindMany provides a mock function with given fields: ids

func (*SceneMarkerReaderWriter) GetMarkerStrings added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) GetTagIDs added in v0.5.0

func (_m *SceneMarkerReaderWriter) GetTagIDs(imageID int) ([]int, error)

GetTagIDs provides a mock function with given fields: imageID

func (*SceneMarkerReaderWriter) Query added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) Update

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

Update provides a mock function with given fields: updatedSceneMarker

func (*SceneMarkerReaderWriter) UpdateTags added in v0.5.0

func (_m *SceneMarkerReaderWriter) UpdateTags(markerID int, tagIDs []int) error

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

func (*SceneMarkerReaderWriter) Wall added in v0.5.0

Wall provides a mock function with given fields: q

type SceneReaderWriter

type SceneReaderWriter struct {
	mock.Mock
}

SceneReaderWriter is an autogenerated mock type for the SceneReaderWriter type

func (*SceneReaderWriter) All

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

All provides a mock function with given fields:

func (*SceneReaderWriter) Count added in v0.5.0

func (_m *SceneReaderWriter) Count() (int, error)

Count provides a mock function with given fields:

func (*SceneReaderWriter) CountByMovieID added in v0.5.0

func (_m *SceneReaderWriter) CountByMovieID(movieID int) (int, error)

CountByMovieID provides a mock function with given fields: movieID

func (*SceneReaderWriter) CountByPerformerID added in v0.5.0

func (_m *SceneReaderWriter) CountByPerformerID(performerID int) (int, error)

CountByPerformerID provides a mock function with given fields: performerID

func (*SceneReaderWriter) CountByStudioID added in v0.5.0

func (_m *SceneReaderWriter) CountByStudioID(studioID int) (int, error)

CountByStudioID provides a mock function with given fields: studioID

func (*SceneReaderWriter) CountByTagID added in v0.5.0

func (_m *SceneReaderWriter) CountByTagID(tagID int) (int, error)

CountByTagID provides a mock function with given fields: tagID

func (*SceneReaderWriter) CountMissingChecksum added in v0.5.0

func (_m *SceneReaderWriter) CountMissingChecksum() (int, error)

CountMissingChecksum provides a mock function with given fields:

func (*SceneReaderWriter) CountMissingOSHash added in v0.5.0

func (_m *SceneReaderWriter) CountMissingOSHash() (int, error)

CountMissingOSHash provides a mock function with given fields:

func (*SceneReaderWriter) Create

func (_m *SceneReaderWriter) Create(newScene models.Scene) (*models.Scene, error)

Create provides a mock function with given fields: newScene

func (*SceneReaderWriter) DecrementOCounter added in v0.5.0

func (_m *SceneReaderWriter) DecrementOCounter(id int) (int, error)

DecrementOCounter provides a mock function with given fields: id

func (*SceneReaderWriter) Destroy added in v0.5.0

func (_m *SceneReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*SceneReaderWriter) DestroyCover added in v0.5.0

func (_m *SceneReaderWriter) DestroyCover(sceneID int) error

DestroyCover provides a mock function with given fields: sceneID

func (*SceneReaderWriter) Duration added in v0.9.0

func (_m *SceneReaderWriter) Duration() (float64, error)

Duration provides a mock function with given fields:

func (*SceneReaderWriter) Find added in v0.5.0

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

Find provides a mock function with given fields: id

func (*SceneReaderWriter) FindByChecksum

func (_m *SceneReaderWriter) FindByChecksum(checksum string) (*models.Scene, error)

FindByChecksum provides a mock function with given fields: checksum

func (*SceneReaderWriter) FindByGalleryID added in v0.5.0

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

FindByGalleryID provides a mock function with given fields: performerID

func (*SceneReaderWriter) FindByMovieID

func (_m *SceneReaderWriter) FindByMovieID(movieID int) ([]*models.Scene, error)

FindByMovieID provides a mock function with given fields: movieID

func (*SceneReaderWriter) FindByOSHash

func (_m *SceneReaderWriter) FindByOSHash(oshash string) (*models.Scene, error)

FindByOSHash provides a mock function with given fields: oshash

func (*SceneReaderWriter) FindByPath added in v0.5.0

func (_m *SceneReaderWriter) FindByPath(path string) (*models.Scene, error)

FindByPath provides a mock function with given fields: path

func (*SceneReaderWriter) FindByPerformerID added in v0.5.0

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

FindByPerformerID provides a mock function with given fields: performerID

func (*SceneReaderWriter) FindDuplicates added in v0.7.0

func (_m *SceneReaderWriter) FindDuplicates(distance int) ([][]*models.Scene, error)

FindDuplicates provides a mock function with given fields: distance

func (*SceneReaderWriter) FindMany

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

FindMany provides a mock function with given fields: ids

func (*SceneReaderWriter) GetCaptions added in v0.15.0

func (_m *SceneReaderWriter) GetCaptions(sceneID int) ([]*models.SceneCaption, error)

GetCaptions provides a mock function with given fields: sceneID

func (*SceneReaderWriter) GetCover added in v0.5.0

func (_m *SceneReaderWriter) GetCover(sceneID int) ([]byte, error)

GetCover provides a mock function with given fields: sceneID

func (*SceneReaderWriter) GetGalleryIDs added in v0.5.0

func (_m *SceneReaderWriter) GetGalleryIDs(sceneID int) ([]int, error)

GetGalleryIDs provides a mock function with given fields: sceneID

func (*SceneReaderWriter) GetMovies added in v0.5.0

func (_m *SceneReaderWriter) GetMovies(sceneID int) ([]models.MoviesScenes, error)

GetMovies provides a mock function with given fields: sceneID

func (*SceneReaderWriter) GetPerformerIDs added in v0.5.0

func (_m *SceneReaderWriter) GetPerformerIDs(sceneID int) ([]int, error)

GetPerformerIDs provides a mock function with given fields: sceneID

func (*SceneReaderWriter) GetStashIDs added in v0.5.0

func (_m *SceneReaderWriter) GetStashIDs(sceneID int) ([]*models.StashID, error)

GetStashIDs provides a mock function with given fields: sceneID

func (*SceneReaderWriter) GetTagIDs added in v0.5.0

func (_m *SceneReaderWriter) GetTagIDs(sceneID int) ([]int, error)

GetTagIDs provides a mock function with given fields: sceneID

func (*SceneReaderWriter) IncrementOCounter added in v0.5.0

func (_m *SceneReaderWriter) IncrementOCounter(id int) (int, error)

IncrementOCounter provides a mock function with given fields: id

func (*SceneReaderWriter) Query added in v0.5.0

Query provides a mock function with given fields: options

func (*SceneReaderWriter) ResetOCounter added in v0.5.0

func (_m *SceneReaderWriter) ResetOCounter(id int) (int, error)

ResetOCounter provides a mock function with given fields: id

func (*SceneReaderWriter) Size added in v0.5.0

func (_m *SceneReaderWriter) Size() (float64, error)

Size provides a mock function with given fields:

func (*SceneReaderWriter) Update

func (_m *SceneReaderWriter) Update(updatedScene models.ScenePartial) (*models.Scene, error)

Update provides a mock function with given fields: updatedScene

func (*SceneReaderWriter) UpdateCaptions added in v0.15.0

func (_m *SceneReaderWriter) UpdateCaptions(id int, captions []*models.SceneCaption) error

UpdateCaptions provides a mock function with given fields: id, captions

func (*SceneReaderWriter) UpdateCover added in v0.5.0

func (_m *SceneReaderWriter) UpdateCover(sceneID int, cover []byte) error

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

func (*SceneReaderWriter) UpdateFileModTime added in v0.5.0

func (_m *SceneReaderWriter) UpdateFileModTime(id int, modTime models.NullSQLiteTimestamp) error

UpdateFileModTime provides a mock function with given fields: id, modTime

func (*SceneReaderWriter) UpdateFull

func (_m *SceneReaderWriter) UpdateFull(updatedScene models.Scene) (*models.Scene, error)

UpdateFull provides a mock function with given fields: updatedScene

func (*SceneReaderWriter) UpdateGalleries added in v0.5.0

func (_m *SceneReaderWriter) UpdateGalleries(sceneID int, galleryIDs []int) error

UpdateGalleries provides a mock function with given fields: sceneID, galleryIDs

func (*SceneReaderWriter) UpdateMovies added in v0.5.0

func (_m *SceneReaderWriter) UpdateMovies(sceneID int, movies []models.MoviesScenes) error

UpdateMovies provides a mock function with given fields: sceneID, movies

func (*SceneReaderWriter) UpdatePerformers added in v0.5.0

func (_m *SceneReaderWriter) UpdatePerformers(sceneID int, performerIDs []int) error

UpdatePerformers provides a mock function with given fields: sceneID, performerIDs

func (*SceneReaderWriter) UpdateStashIDs added in v0.5.0

func (_m *SceneReaderWriter) UpdateStashIDs(sceneID int, stashIDs []models.StashID) error

UpdateStashIDs provides a mock function with given fields: sceneID, stashIDs

func (*SceneReaderWriter) UpdateTags added in v0.5.0

func (_m *SceneReaderWriter) UpdateTags(sceneID int, tagIDs []int) error

UpdateTags provides a mock function with given fields: sceneID, tagIDs

func (*SceneReaderWriter) Wall added in v0.5.0

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

Wall provides a mock function with given fields: q

type ScrapedItemReaderWriter added in v0.5.0

type ScrapedItemReaderWriter struct {
	mock.Mock
}

ScrapedItemReaderWriter is an autogenerated mock type for the ScrapedItemReaderWriter type

func (*ScrapedItemReaderWriter) All added in v0.5.0

All provides a mock function with given fields:

func (*ScrapedItemReaderWriter) Create added in v0.5.0

Create provides a mock function with given fields: newObject

type StudioReaderWriter

type StudioReaderWriter struct {
	mock.Mock
}

StudioReaderWriter is an autogenerated mock type for the StudioReaderWriter type

func (*StudioReaderWriter) All

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

All provides a mock function with given fields:

func (*StudioReaderWriter) Count added in v0.5.0

func (_m *StudioReaderWriter) Count() (int, error)

Count provides a mock function with given fields:

func (*StudioReaderWriter) Create

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

Create provides a mock function with given fields: newStudio

func (*StudioReaderWriter) Destroy added in v0.5.0

func (_m *StudioReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*StudioReaderWriter) DestroyImage added in v0.5.0

func (_m *StudioReaderWriter) DestroyImage(studioID int) error

DestroyImage provides a mock function with given fields: studioID

func (*StudioReaderWriter) Find

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

Find provides a mock function with given fields: id

func (*StudioReaderWriter) FindByName

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

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

func (*StudioReaderWriter) FindByStashID added in v0.11.0

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

FindByStashID provides a mock function with given fields: stashID

func (*StudioReaderWriter) FindChildren added in v0.5.0

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

FindChildren provides a mock function with given fields: id

func (*StudioReaderWriter) FindMany

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

FindMany provides a mock function with given fields: ids

func (*StudioReaderWriter) GetAliases added in v0.10.0

func (_m *StudioReaderWriter) GetAliases(studioID int) ([]string, error)

GetAliases provides a mock function with given fields: studioID

func (*StudioReaderWriter) GetImage added in v0.5.0

func (_m *StudioReaderWriter) GetImage(studioID int) ([]byte, error)

GetImage provides a mock function with given fields: studioID

func (*StudioReaderWriter) GetStashIDs added in v0.5.0

func (_m *StudioReaderWriter) GetStashIDs(studioID int) ([]*models.StashID, error)

GetStashIDs provides a mock function with given fields: studioID

func (*StudioReaderWriter) HasImage added in v0.5.0

func (_m *StudioReaderWriter) HasImage(studioID int) (bool, error)

HasImage provides a mock function with given fields: studioID

func (*StudioReaderWriter) Query added in v0.5.0

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

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

func (*StudioReaderWriter) QueryForAutoTag added in v0.7.0

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

QueryForAutoTag provides a mock function with given fields: words

func (*StudioReaderWriter) Update

func (_m *StudioReaderWriter) Update(updatedStudio models.StudioPartial) (*models.Studio, error)

Update provides a mock function with given fields: updatedStudio

func (*StudioReaderWriter) UpdateAliases added in v0.10.0

func (_m *StudioReaderWriter) UpdateAliases(studioID int, aliases []string) error

UpdateAliases provides a mock function with given fields: studioID, aliases

func (*StudioReaderWriter) UpdateFull

func (_m *StudioReaderWriter) UpdateFull(updatedStudio models.Studio) (*models.Studio, error)

UpdateFull provides a mock function with given fields: updatedStudio

func (*StudioReaderWriter) UpdateImage added in v0.5.0

func (_m *StudioReaderWriter) UpdateImage(studioID int, image []byte) error

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

func (*StudioReaderWriter) UpdateStashIDs added in v0.5.0

func (_m *StudioReaderWriter) UpdateStashIDs(studioID int, stashIDs []models.StashID) error

UpdateStashIDs provides a mock function with given fields: studioID, stashIDs

type TagReaderWriter

type TagReaderWriter struct {
	mock.Mock
}

TagReaderWriter is an autogenerated mock type for the TagReaderWriter type

func (*TagReaderWriter) All

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

All provides a mock function with given fields:

func (*TagReaderWriter) Count added in v0.5.0

func (_m *TagReaderWriter) Count() (int, error)

Count provides a mock function with given fields:

func (*TagReaderWriter) Create

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

Create provides a mock function with given fields: newTag

func (*TagReaderWriter) Destroy added in v0.5.0

func (_m *TagReaderWriter) Destroy(id int) error

Destroy provides a mock function with given fields: id

func (*TagReaderWriter) DestroyImage added in v0.5.0

func (_m *TagReaderWriter) DestroyImage(tagID int) error

DestroyImage provides a mock function with given fields: tagID

func (*TagReaderWriter) Find

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

Find provides a mock function with given fields: id

func (*TagReaderWriter) FindAllAncestors added in v0.10.0

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

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

func (*TagReaderWriter) FindAllDescendants added in v0.10.0

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

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

func (*TagReaderWriter) FindByChildTagID added in v0.10.0

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

FindByChildTagID provides a mock function with given fields: childID

func (*TagReaderWriter) FindByGalleryID

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

FindByGalleryID provides a mock function with given fields: galleryID

func (*TagReaderWriter) FindByImageID

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

FindByImageID provides a mock function with given fields: imageID

func (*TagReaderWriter) FindByName

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

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

func (*TagReaderWriter) FindByNames

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

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

func (*TagReaderWriter) FindByParentTagID added in v0.10.0

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

FindByParentTagID provides a mock function with given fields: parentID

func (*TagReaderWriter) FindByPerformerID added in v0.6.0

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

FindByPerformerID provides a mock function with given fields: performerID

func (*TagReaderWriter) FindBySceneID

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

FindBySceneID provides a mock function with given fields: sceneID

func (*TagReaderWriter) FindBySceneMarkerID

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

FindBySceneMarkerID provides a mock function with given fields: sceneMarkerID

func (*TagReaderWriter) FindMany

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

FindMany provides a mock function with given fields: ids

func (*TagReaderWriter) GetAliases added in v0.8.0

func (_m *TagReaderWriter) GetAliases(tagID int) ([]string, error)

GetAliases provides a mock function with given fields: tagID

func (*TagReaderWriter) GetImage added in v0.5.0

func (_m *TagReaderWriter) GetImage(tagID int) ([]byte, error)

GetImage provides a mock function with given fields: tagID

func (*TagReaderWriter) Merge added in v0.8.0

func (_m *TagReaderWriter) Merge(source []int, destination int) error

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

func (*TagReaderWriter) Query added in v0.5.0

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

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

func (*TagReaderWriter) QueryForAutoTag added in v0.7.0

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

QueryForAutoTag provides a mock function with given fields: words

func (*TagReaderWriter) Update

func (_m *TagReaderWriter) Update(updateTag models.TagPartial) (*models.Tag, error)

Update provides a mock function with given fields: updateTag

func (*TagReaderWriter) UpdateAliases added in v0.8.0

func (_m *TagReaderWriter) UpdateAliases(tagID int, aliases []string) error

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

func (*TagReaderWriter) UpdateChildTags added in v0.10.0

func (_m *TagReaderWriter) UpdateChildTags(tagID int, parentIDs []int) error

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

func (*TagReaderWriter) UpdateFull added in v0.8.0

func (_m *TagReaderWriter) UpdateFull(updatedTag models.Tag) (*models.Tag, error)

UpdateFull provides a mock function with given fields: updatedTag

func (*TagReaderWriter) UpdateImage added in v0.5.0

func (_m *TagReaderWriter) UpdateImage(tagID int, image []byte) error

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

func (*TagReaderWriter) UpdateParentTags added in v0.10.0

func (_m *TagReaderWriter) UpdateParentTags(tagID int, parentIDs []int) error

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

type TransactionManager added in v0.5.0

type TransactionManager struct {
	// contains filtered or unexported fields
}

func NewTransactionManager added in v0.5.0

func NewTransactionManager() *TransactionManager

func (*TransactionManager) Gallery added in v0.5.0

func (*TransactionManager) GalleryMock added in v0.11.0

func (t *TransactionManager) GalleryMock() *GalleryReaderWriter

func (*TransactionManager) Image added in v0.5.0

func (*TransactionManager) ImageMock added in v0.11.0

func (t *TransactionManager) ImageMock() *ImageReaderWriter

func (*TransactionManager) Movie added in v0.5.0

func (*TransactionManager) MovieMock added in v0.11.0

func (t *TransactionManager) MovieMock() *MovieReaderWriter

func (*TransactionManager) Performer added in v0.5.0

func (*TransactionManager) PerformerMock added in v0.11.0

func (t *TransactionManager) PerformerMock() *PerformerReaderWriter

func (*TransactionManager) SavedFilter added in v0.8.0

func (*TransactionManager) SavedFilterMock added in v0.11.0

func (t *TransactionManager) SavedFilterMock() *SavedFilterReaderWriter

func (*TransactionManager) Scene added in v0.5.0

func (*TransactionManager) SceneMarker added in v0.5.0

func (*TransactionManager) SceneMarkerMock added in v0.11.0

func (t *TransactionManager) SceneMarkerMock() *SceneMarkerReaderWriter

func (*TransactionManager) SceneMock added in v0.11.0

func (t *TransactionManager) SceneMock() *SceneReaderWriter

func (*TransactionManager) ScrapedItem added in v0.5.0

func (*TransactionManager) ScrapedItemMock added in v0.11.0

func (t *TransactionManager) ScrapedItemMock() *ScrapedItemReaderWriter

func (*TransactionManager) Studio added in v0.5.0

func (*TransactionManager) StudioMock added in v0.11.0

func (t *TransactionManager) StudioMock() *StudioReaderWriter

func (*TransactionManager) Tag added in v0.5.0

func (*TransactionManager) TagMock added in v0.11.0

func (t *TransactionManager) TagMock() *TagReaderWriter

func (*TransactionManager) WithReadTxn added in v0.5.0

func (t *TransactionManager) WithReadTxn(ctx context.Context, fn func(r models.ReaderRepository) error) error

func (*TransactionManager) WithTxn added in v0.5.0

func (t *TransactionManager) WithTxn(ctx context.Context, fn func(r models.Repository) error) error

Jump to

Keyboard shortcuts

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