Documentation
¶
Index ¶
- type ImageTaggingRepository
- func (_m *ImageTaggingRepository) CommitTx(tx *pg.Tx) error
- func (_m *ImageTaggingRepository) DeleteReleaseTagInBulk(tx *pg.Tx, imageTags []*repository.ImageTag) error
- func (_m *ImageTaggingRepository) GetImageComment(artifactId int) (repository.ImageComment, error)
- func (_m *ImageTaggingRepository) GetImageCommentsByArtifactIds(artifactIds []int) ([]*repository.ImageComment, error)
- func (_m *ImageTaggingRepository) GetTagsByAppId(appId int) ([]*repository.ImageTag, error)
- func (_m *ImageTaggingRepository) GetTagsByArtifactId(artifactId int) ([]*repository.ImageTag, error)
- func (_m *ImageTaggingRepository) RollbackTx(tx *pg.Tx) error
- func (_m *ImageTaggingRepository) SaveAuditLogsInBulk(tx *pg.Tx, imageTaggingAudit []*repository.ImageTaggingAudit) error
- func (_m *ImageTaggingRepository) SaveImageComment(tx *pg.Tx, imageComment *repository.ImageComment) error
- func (_m *ImageTaggingRepository) SaveReleaseTagsInBulk(tx *pg.Tx, imageTags []*repository.ImageTag) error
- func (_m *ImageTaggingRepository) StartTx() (*pg.Tx, error)
- func (_m *ImageTaggingRepository) UpdateImageComment(tx *pg.Tx, imageComment *repository.ImageComment) error
- func (_m *ImageTaggingRepository) UpdateReleaseTagInBulk(tx *pg.Tx, imageTags []*repository.ImageTag) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageTaggingRepository ¶
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