mocks

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: AGPL-3.0 Imports: 5 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 NewTxnRepository added in v0.17.0

func NewTxnRepository() models.Repository

func SceneQueryResult added in v0.11.0

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

Types

type GalleryChapterReaderWriter added in v0.20.0

type GalleryChapterReaderWriter struct {
	mock.Mock
}

GalleryChapterReaderWriter is an autogenerated mock type for the GalleryChapterReaderWriter type

func (*GalleryChapterReaderWriter) Create added in v0.20.0

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

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

func (*GalleryChapterReaderWriter) Destroy added in v0.20.0

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

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

func (*GalleryChapterReaderWriter) Find added in v0.20.0

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

func (*GalleryChapterReaderWriter) FindByGalleryID added in v0.20.0

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

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

func (*GalleryChapterReaderWriter) FindMany added in v0.20.0

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

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

func (*GalleryChapterReaderWriter) Update added in v0.20.0

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

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

func (*GalleryChapterReaderWriter) UpdatePartial added in v0.22.0

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

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

type GalleryReaderWriter

type GalleryReaderWriter struct {
	mock.Mock
}

GalleryReaderWriter is an autogenerated mock type for the GalleryReaderWriter type

func (*GalleryReaderWriter) All

All provides a mock function with given fields: ctx

func (*GalleryReaderWriter) Count added in v0.5.0

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

Count provides a mock function with given fields: ctx

func (*GalleryReaderWriter) Create

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

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

func (*GalleryReaderWriter) Destroy added in v0.5.0

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

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

func (*GalleryReaderWriter) Find added in v0.5.0

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

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

func (*GalleryReaderWriter) FindByChecksum

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

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

func (*GalleryReaderWriter) FindByChecksums added in v0.5.0

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

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

func (*GalleryReaderWriter) FindByImageID

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

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

func (*GalleryReaderWriter) FindByPath

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

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

func (*GalleryReaderWriter) FindBySceneID

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

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

func (*GalleryReaderWriter) FindMany

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

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

func (*GalleryReaderWriter) GetImageIDs added in v0.5.0

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

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

func (*GalleryReaderWriter) GetPerformerIDs added in v0.5.0

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

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

func (*GalleryReaderWriter) GetSceneIDs added in v0.5.0

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

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

func (*GalleryReaderWriter) GetTagIDs added in v0.5.0

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

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

func (*GalleryReaderWriter) 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) Update

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

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

func (*GalleryReaderWriter) UpdateImages added in v0.5.0

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

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

func (*GalleryReaderWriter) UpdatePartial added in v0.5.0

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

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

type ImageReaderWriter

type ImageReaderWriter struct {
	mock.Mock
}

ImageReaderWriter is an autogenerated mock type for the ImageReaderWriter type

func (*ImageReaderWriter) All

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

All provides a mock function with given fields: ctx

func (*ImageReaderWriter) Count added in v0.5.0

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

Count provides a mock function with given fields: ctx

func (*ImageReaderWriter) CountByGalleryID added in v0.5.0

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

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

func (*ImageReaderWriter) Create

func (_m *ImageReaderWriter) Create(ctx context.Context, newImage *models.ImageCreateInput) error

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

func (*ImageReaderWriter) DecrementOCounter added in v0.5.0

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

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

func (*ImageReaderWriter) Destroy added in v0.5.0

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

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

func (*ImageReaderWriter) Find added in v0.5.0

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

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

func (*ImageReaderWriter) FindByChecksum

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

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

func (*ImageReaderWriter) 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) FindMany

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

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

func (*ImageReaderWriter) GetGalleryIDs added in v0.5.0

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

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

func (*ImageReaderWriter) GetPerformerIDs added in v0.5.0

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

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

func (*ImageReaderWriter) GetTagIDs added in v0.5.0

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

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

func (*ImageReaderWriter) IncrementOCounter added in v0.5.0

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

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

func (*ImageReaderWriter) OCountByPerformerID added in v0.21.0

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

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

func (*ImageReaderWriter) Query added in v0.5.0

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

func (*ImageReaderWriter) QueryCount added in v0.7.0

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

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

func (*ImageReaderWriter) ResetOCounter added in v0.5.0

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

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

func (*ImageReaderWriter) Size added in v0.5.0

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

Size provides a mock function with given fields: ctx

func (*ImageReaderWriter) Update

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

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

func (*ImageReaderWriter) UpdatePartial added in v0.17.0

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

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

type MovieReaderWriter

type MovieReaderWriter struct {
	mock.Mock
}

MovieReaderWriter is an autogenerated mock type for the MovieReaderWriter type

func (*MovieReaderWriter) All

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

All provides a mock function with given fields: ctx

func (*MovieReaderWriter) Count added in v0.5.0

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

Count provides a mock function with given fields: ctx

func (*MovieReaderWriter) CountByPerformerID added in v0.10.0

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

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

func (*MovieReaderWriter) CountByStudioID added in v0.10.0

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

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

func (*MovieReaderWriter) Create

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

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

func (*MovieReaderWriter) Destroy added in v0.5.0

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

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

func (*MovieReaderWriter) Find

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

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

func (*MovieReaderWriter) FindByName

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

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

func (*MovieReaderWriter) FindByNames

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

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

func (*MovieReaderWriter) FindByPerformerID added in v0.10.0

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

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

func (*MovieReaderWriter) FindByStudioID added in v0.10.0

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

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

func (*MovieReaderWriter) FindMany

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

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

func (*MovieReaderWriter) GetBackImage

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

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

func (*MovieReaderWriter) GetFrontImage

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

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

func (*MovieReaderWriter) HasBackImage added in v0.20.0

func (_m *MovieReaderWriter) HasBackImage(ctx context.Context, movieID int) (bool, error)

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

func (*MovieReaderWriter) HasFrontImage added in v0.21.0

func (_m *MovieReaderWriter) HasFrontImage(ctx context.Context, movieID int) (bool, error)

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

func (*MovieReaderWriter) Query added in v0.5.0

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

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

func (*MovieReaderWriter) QueryCount added in v0.22.0

func (_m *MovieReaderWriter) QueryCount(ctx context.Context, movieFilter *models.MovieFilterType, findFilter *models.FindFilterType) (int, error)

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

func (*MovieReaderWriter) Update

func (_m *MovieReaderWriter) Update(ctx context.Context, updatedMovie *models.Movie) error

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

func (*MovieReaderWriter) UpdateBackImage added in v0.20.0

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

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

func (*MovieReaderWriter) UpdateFrontImage added in v0.20.0

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

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

func (*MovieReaderWriter) UpdatePartial added in v0.22.0

func (_m *MovieReaderWriter) UpdatePartial(ctx context.Context, id int, updatedMovie models.MoviePartial) (*models.Movie, error)

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

type PerformerReaderWriter

type PerformerReaderWriter struct {
	mock.Mock
}

PerformerReaderWriter is an autogenerated mock type for the PerformerReaderWriter type

func (*PerformerReaderWriter) All

All provides a mock function with given fields: ctx

func (*PerformerReaderWriter) Count added in v0.5.0

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

Count provides a mock function with given fields: ctx

func (*PerformerReaderWriter) CountByTagID added in v0.6.0

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

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

func (*PerformerReaderWriter) Create

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

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

func (*PerformerReaderWriter) Destroy added in v0.5.0

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

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

func (*PerformerReaderWriter) Find added in v0.5.0

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

func (*PerformerReaderWriter) FindByGalleryID

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

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

func (*PerformerReaderWriter) FindByImageID

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

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

func (*PerformerReaderWriter) FindByNames

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

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

func (*PerformerReaderWriter) FindBySceneID

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

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

func (*PerformerReaderWriter) FindByStashID added in v0.11.0

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

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

func (*PerformerReaderWriter) FindByStashIDStatus added in v0.7.0

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

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

func (*PerformerReaderWriter) FindMany

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

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

func (*PerformerReaderWriter) GetAliases added in v0.19.0

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

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

func (*PerformerReaderWriter) GetImage added in v0.5.0

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

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

func (*PerformerReaderWriter) GetStashIDs added in v0.5.0

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

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

func (*PerformerReaderWriter) GetTagIDs added in v0.6.0

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

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

func (*PerformerReaderWriter) HasImage added in v0.21.0

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

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

func (*PerformerReaderWriter) Query added in v0.5.0

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

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

func (*PerformerReaderWriter) QueryCount added in v0.19.0

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

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

func (*PerformerReaderWriter) QueryForAutoTag added in v0.7.0

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

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

func (*PerformerReaderWriter) Update

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

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

func (*PerformerReaderWriter) UpdateImage added in v0.5.0

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

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

func (*PerformerReaderWriter) UpdatePartial added in v0.18.0

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

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

type SavedFilterReaderWriter added in v0.8.0

type SavedFilterReaderWriter struct {
	mock.Mock
}

SavedFilterReaderWriter is an autogenerated mock type for the SavedFilterReaderWriter type

func (*SavedFilterReaderWriter) All added in v0.16.0

All provides a mock function with given fields: ctx

func (*SavedFilterReaderWriter) Create added in v0.8.0

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

func (*SavedFilterReaderWriter) Destroy added in v0.8.0

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

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

func (*SavedFilterReaderWriter) Find added in v0.8.0

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

func (*SavedFilterReaderWriter) FindByMode added in v0.8.0

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

func (*SavedFilterReaderWriter) FindDefault added in v0.8.0

FindDefault 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) SetDefault added in v0.8.0

func (_m *SavedFilterReaderWriter) SetDefault(ctx context.Context, obj *models.SavedFilter) error

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

func (*SavedFilterReaderWriter) Update added in v0.8.0

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

type SceneMarkerReaderWriter

type SceneMarkerReaderWriter struct {
	mock.Mock
}

SceneMarkerReaderWriter is an autogenerated mock type for the SceneMarkerReaderWriter type

func (*SceneMarkerReaderWriter) All added in v0.19.1

All provides a mock function with given fields: ctx

func (*SceneMarkerReaderWriter) Count added in v0.19.1

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

Count provides a mock function with given fields: ctx

func (*SceneMarkerReaderWriter) CountByTagID added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) Create

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

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

func (*SceneMarkerReaderWriter) Destroy added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) Find added in v0.5.0

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

func (*SceneMarkerReaderWriter) FindBySceneID

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

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

func (*SceneMarkerReaderWriter) FindMany added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) GetMarkerStrings added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) GetTagIDs added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) Query added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) QueryCount added in v0.22.0

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

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

func (*SceneMarkerReaderWriter) Update

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

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

func (*SceneMarkerReaderWriter) UpdatePartial added in v0.22.0

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

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

func (*SceneMarkerReaderWriter) UpdateTags added in v0.5.0

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

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

func (*SceneMarkerReaderWriter) Wall added in v0.5.0

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

type SceneReaderWriter

type SceneReaderWriter struct {
	mock.Mock
}

SceneReaderWriter is an autogenerated mock type for the SceneReaderWriter type

func (*SceneReaderWriter) All

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

All provides a mock function with given fields: ctx

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) CountByMovieID added in v0.5.0

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

CountByMovieID provides a mock function with given fields: ctx, movieID

func (*SceneReaderWriter) CountByPerformerID added in v0.5.0

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

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

func (*SceneReaderWriter) CountByStudioID added in v0.5.0

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

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

func (*SceneReaderWriter) CountByTagID added in v0.5.0

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

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

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

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

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

func (*SceneReaderWriter) DecrementOCounter added in v0.5.0

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

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

func (*SceneReaderWriter) Destroy added in v0.5.0

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

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

func (*SceneReaderWriter) Duration added in v0.9.0

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

Duration provides a mock function with given fields: ctx

func (*SceneReaderWriter) Find added in v0.5.0

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

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

func (*SceneReaderWriter) FindByChecksum

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

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

func (*SceneReaderWriter) 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) FindByMovieID

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

FindByMovieID provides a mock function with given fields: ctx, movieID

func (*SceneReaderWriter) FindByOSHash

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

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

func (*SceneReaderWriter) FindByPath added in v0.5.0

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

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

func (*SceneReaderWriter) FindByPerformerID added in v0.5.0

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

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

func (*SceneReaderWriter) FindDuplicates added in v0.7.0

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

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

func (*SceneReaderWriter) FindMany

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

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

func (*SceneReaderWriter) GetCover added in v0.5.0

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

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

func (*SceneReaderWriter) GetFiles added in v0.17.0

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

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

func (*SceneReaderWriter) GetGalleryIDs added in v0.5.0

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

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

func (*SceneReaderWriter) GetMovies added in v0.5.0

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

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

func (*SceneReaderWriter) GetPerformerIDs added in v0.5.0

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

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

func (*SceneReaderWriter) GetStashIDs added in v0.5.0

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

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

func (*SceneReaderWriter) GetTagIDs added in v0.5.0

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

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

func (*SceneReaderWriter) GetURLs added in v0.22.0

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

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

func (*SceneReaderWriter) HasCover added in v0.20.0

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

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

func (*SceneReaderWriter) IncrementOCounter added in v0.5.0

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

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

func (*SceneReaderWriter) IncrementWatchCount added in v0.18.0

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

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

func (*SceneReaderWriter) OCount added in v0.22.0

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

OCount provides a mock function with given fields: ctx

func (*SceneReaderWriter) OCountByPerformerID added in v0.21.0

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

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

func (*SceneReaderWriter) PlayCount added in v0.22.0

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

PlayCount provides a mock function with given fields: ctx

func (*SceneReaderWriter) PlayDuration added in v0.22.0

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

PlayDuration provides a mock function with given fields: ctx

func (*SceneReaderWriter) Query added in v0.5.0

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

func (*SceneReaderWriter) QueryCount added in v0.22.0

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

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

func (*SceneReaderWriter) ResetOCounter added in v0.5.0

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

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

func (*SceneReaderWriter) SaveActivity added in v0.18.0

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

SaveActivity provides a mock function with given fields: ctx, id, 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) UniqueScenePlayCount added in v0.22.0

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

UniqueScenePlayCount provides a mock function with given fields: ctx

func (*SceneReaderWriter) Update

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

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

func (*SceneReaderWriter) UpdateCover added in v0.5.0

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

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

func (*SceneReaderWriter) UpdatePartial added in v0.17.0

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

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

func (*SceneReaderWriter) Wall added in v0.5.0

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

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

type StudioReaderWriter

type StudioReaderWriter struct {
	mock.Mock
}

StudioReaderWriter is an autogenerated mock type for the StudioReaderWriter type

func (*StudioReaderWriter) All

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

All provides a mock function with given fields: ctx

func (*StudioReaderWriter) Count added in v0.5.0

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

Count provides a mock function with given fields: ctx

func (*StudioReaderWriter) Create

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

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

func (*StudioReaderWriter) Destroy added in v0.5.0

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

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

func (*StudioReaderWriter) Find

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

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

func (*StudioReaderWriter) FindByName

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

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

func (*StudioReaderWriter) FindByStashID added in v0.11.0

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

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

func (*StudioReaderWriter) FindByStashIDStatus added in v0.22.0

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

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

func (*StudioReaderWriter) FindChildren added in v0.5.0

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

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

func (*StudioReaderWriter) FindMany

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

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

func (*StudioReaderWriter) GetAliases added in v0.10.0

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

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

func (*StudioReaderWriter) GetImage added in v0.5.0

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

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

func (*StudioReaderWriter) GetStashIDs added in v0.5.0

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

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

func (*StudioReaderWriter) HasImage added in v0.5.0

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

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

func (*StudioReaderWriter) Query added in v0.5.0

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

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

func (*StudioReaderWriter) QueryForAutoTag added in v0.7.0

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

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

func (*StudioReaderWriter) Update

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

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

func (*StudioReaderWriter) UpdateImage added in v0.5.0

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

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

func (*StudioReaderWriter) UpdatePartial added in v0.22.0

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

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

type TagReaderWriter

type TagReaderWriter struct {
	mock.Mock
}

TagReaderWriter is an autogenerated mock type for the TagReaderWriter type

func (*TagReaderWriter) All

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

All provides a mock function with given fields: ctx

func (*TagReaderWriter) Count added in v0.5.0

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

Count provides a mock function with given fields: ctx

func (*TagReaderWriter) Create

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

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

func (*TagReaderWriter) Destroy added in v0.5.0

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

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

func (*TagReaderWriter) Find

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

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

func (*TagReaderWriter) FindAllAncestors added in v0.10.0

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

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

func (*TagReaderWriter) FindAllDescendants added in v0.10.0

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

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

func (*TagReaderWriter) FindByChildTagID added in v0.10.0

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

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

func (*TagReaderWriter) FindByGalleryID

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

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

func (*TagReaderWriter) FindByImageID

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

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

func (*TagReaderWriter) FindByName

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

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

func (*TagReaderWriter) FindByNames

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

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

func (*TagReaderWriter) FindByParentTagID added in v0.10.0

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

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

func (*TagReaderWriter) FindByPerformerID added in v0.6.0

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

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

func (*TagReaderWriter) FindBySceneID

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

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

func (*TagReaderWriter) FindBySceneMarkerID

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

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

func (*TagReaderWriter) FindMany

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

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

func (*TagReaderWriter) GetAliases added in v0.8.0

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

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

func (*TagReaderWriter) GetImage added in v0.5.0

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

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

func (*TagReaderWriter) HasImage added in v0.21.0

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

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

func (*TagReaderWriter) Merge added in v0.8.0

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

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

func (*TagReaderWriter) Query added in v0.5.0

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

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

func (*TagReaderWriter) QueryForAutoTag added in v0.7.0

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

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

func (*TagReaderWriter) Update

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

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

func (*TagReaderWriter) UpdateAliases added in v0.8.0

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

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

func (*TagReaderWriter) UpdateChildTags added in v0.10.0

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

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

func (*TagReaderWriter) UpdateImage added in v0.5.0

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

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

func (*TagReaderWriter) UpdateParentTags added in v0.10.0

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

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

func (*TagReaderWriter) UpdatePartial added in v0.22.0

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

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

type TxnManager added in v0.17.0

type TxnManager struct{}

func (*TxnManager) AddPostCommitHook added in v0.17.0

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

func (*TxnManager) AddPostRollbackHook added in v0.17.0

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

func (*TxnManager) Begin added in v0.17.0

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

func (*TxnManager) Commit added in v0.17.0

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

func (*TxnManager) Complete added in v0.18.0

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

func (*TxnManager) IsLocked added in v0.17.0

func (*TxnManager) IsLocked(err error) bool

func (*TxnManager) Reset added in v0.17.0

func (*TxnManager) Reset() error

func (*TxnManager) Rollback added in v0.17.0

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

func (*TxnManager) WithDatabase added in v0.17.0

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

Jump to

Keyboard shortcuts

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