mocks

package
v0.6.25 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageTaggingRepository

type ImageTaggingRepository struct {
	mock.Mock
}

ImageTaggingRepository is an autogenerated mock type for the ImageTaggingRepository type

func NewImageTaggingRepository

func NewImageTaggingRepository(t mockConstructorTestingTNewImageTaggingRepository) *ImageTaggingRepository

NewImageTaggingRepository creates a new instance of ImageTaggingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ImageTaggingRepository) CommitTx

func (_m *ImageTaggingRepository) CommitTx(tx *pg.Tx) error

CommitTx provides a mock function with given fields: tx

func (*ImageTaggingRepository) DeleteReleaseTagInBulk

func (_m *ImageTaggingRepository) DeleteReleaseTagInBulk(tx *pg.Tx, imageTags []*repository.ImageTag) error

DeleteReleaseTagInBulk provides a mock function with given fields: tx, imageTags

func (*ImageTaggingRepository) GetImageComment

func (_m *ImageTaggingRepository) GetImageComment(artifactId int) (repository.ImageComment, error)

GetImageComment provides a mock function with given fields: artifactId

func (*ImageTaggingRepository) GetImageCommentsByArtifactIds

func (_m *ImageTaggingRepository) GetImageCommentsByArtifactIds(artifactIds []int) ([]*repository.ImageComment, error)

GetImageCommentsByArtifactIds provides a mock function with given fields: artifactIds

func (*ImageTaggingRepository) GetTagsByAppId

func (_m *ImageTaggingRepository) GetTagsByAppId(appId int) ([]*repository.ImageTag, error)

GetTagsByAppId provides a mock function with given fields: appId

func (*ImageTaggingRepository) GetTagsByArtifactId

func (_m *ImageTaggingRepository) GetTagsByArtifactId(artifactId int) ([]*repository.ImageTag, error)

GetTagsByArtifactId provides a mock function with given fields: artifactId

func (*ImageTaggingRepository) RollbackTx

func (_m *ImageTaggingRepository) RollbackTx(tx *pg.Tx) error

RollbackTx provides a mock function with given fields: tx

func (*ImageTaggingRepository) SaveAuditLogsInBulk

func (_m *ImageTaggingRepository) SaveAuditLogsInBulk(tx *pg.Tx, imageTaggingAudit []*repository.ImageTaggingAudit) error

SaveAuditLogsInBulk provides a mock function with given fields: tx, imageTaggingAudit

func (*ImageTaggingRepository) SaveImageComment

func (_m *ImageTaggingRepository) SaveImageComment(tx *pg.Tx, imageComment *repository.ImageComment) error

SaveImageComment provides a mock function with given fields: tx, imageComment

func (*ImageTaggingRepository) SaveReleaseTagsInBulk

func (_m *ImageTaggingRepository) SaveReleaseTagsInBulk(tx *pg.Tx, imageTags []*repository.ImageTag) error

SaveReleaseTagsInBulk provides a mock function with given fields: tx, imageTags

func (*ImageTaggingRepository) StartTx

func (_m *ImageTaggingRepository) StartTx() (*pg.Tx, error)

StartTx provides a mock function with given fields:

func (*ImageTaggingRepository) UpdateImageComment

func (_m *ImageTaggingRepository) UpdateImageComment(tx *pg.Tx, imageComment *repository.ImageComment) error

UpdateImageComment provides a mock function with given fields: tx, imageComment

func (*ImageTaggingRepository) UpdateReleaseTagInBulk

func (_m *ImageTaggingRepository) UpdateReleaseTagInBulk(tx *pg.Tx, imageTags []*repository.ImageTag) error

UpdateReleaseTagInBulk provides a mock function with given fields: tx, imageTags

Jump to

Keyboard shortcuts

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