Documentation ¶
Index ¶
- type GenericNoteHistoryRepository
- func (_m *GenericNoteHistoryRepository) CommitTx(tx *pg.Tx) error
- func (_m *GenericNoteHistoryRepository) FindHistoryByNoteId(id []int) ([]repository.GenericNoteHistory, error)
- func (_m *GenericNoteHistoryRepository) RollbackTx(tx *pg.Tx) error
- func (_m *GenericNoteHistoryRepository) SaveHistory(tx *pg.Tx, model *repository.GenericNoteHistory) error
- func (_m *GenericNoteHistoryRepository) StartTx() (*pg.Tx, error)
- type GenericNoteRepository
- func (_m *GenericNoteRepository) CommitTx(tx *pg.Tx) error
- func (_m *GenericNoteRepository) FindByAppId(id int) (*repository.GenericNote, error)
- func (_m *GenericNoteRepository) FindByClusterId(id int) (*repository.GenericNote, error)
- func (_m *GenericNoteRepository) FindByIdentifier(identifier int, identifierType repository.NoteType) (*repository.GenericNote, error)
- func (_m *GenericNoteRepository) GetDescriptionFromAppIds(appIds []int) ([]*repository.GenericNote, error)
- func (_m *GenericNoteRepository) GetGenericNotesForAppIds(appIds []int) ([]*repository.GenericNote, error)
- func (_m *GenericNoteRepository) RollbackTx(tx *pg.Tx) error
- func (_m *GenericNoteRepository) Save(tx *pg.Tx, model *repository.GenericNote) error
- func (_m *GenericNoteRepository) StartTx() (*pg.Tx, error)
- func (_m *GenericNoteRepository) Update(tx *pg.Tx, model *repository.GenericNote) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericNoteHistoryRepository ¶
GenericNoteHistoryRepository is an autogenerated mock type for the GenericNoteHistoryRepository type
func NewGenericNoteHistoryRepository ¶
func NewGenericNoteHistoryRepository(t mockConstructorTestingTNewGenericNoteHistoryRepository) *GenericNoteHistoryRepository
NewGenericNoteHistoryRepository creates a new instance of GenericNoteHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GenericNoteHistoryRepository) CommitTx ¶
func (_m *GenericNoteHistoryRepository) CommitTx(tx *pg.Tx) error
CommitTx provides a mock function with given fields: tx
func (*GenericNoteHistoryRepository) FindHistoryByNoteId ¶
func (_m *GenericNoteHistoryRepository) FindHistoryByNoteId(id []int) ([]repository.GenericNoteHistory, error)
FindHistoryByNoteId provides a mock function with given fields: id
func (*GenericNoteHistoryRepository) RollbackTx ¶
func (_m *GenericNoteHistoryRepository) RollbackTx(tx *pg.Tx) error
RollbackTx provides a mock function with given fields: tx
func (*GenericNoteHistoryRepository) SaveHistory ¶
func (_m *GenericNoteHistoryRepository) SaveHistory(tx *pg.Tx, model *repository.GenericNoteHistory) error
SaveHistory provides a mock function with given fields: tx, model
type GenericNoteRepository ¶
GenericNoteRepository is an autogenerated mock type for the GenericNoteRepository type
func NewGenericNoteRepository ¶
func NewGenericNoteRepository(t mockConstructorTestingTNewGenericNoteRepository) *GenericNoteRepository
NewGenericNoteRepository creates a new instance of GenericNoteRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GenericNoteRepository) CommitTx ¶
func (_m *GenericNoteRepository) CommitTx(tx *pg.Tx) error
CommitTx provides a mock function with given fields: tx
func (*GenericNoteRepository) FindByAppId ¶
func (_m *GenericNoteRepository) FindByAppId(id int) (*repository.GenericNote, error)
FindByAppId provides a mock function with given fields: id
func (*GenericNoteRepository) FindByClusterId ¶
func (_m *GenericNoteRepository) FindByClusterId(id int) (*repository.GenericNote, error)
FindByClusterId provides a mock function with given fields: id
func (*GenericNoteRepository) FindByIdentifier ¶
func (_m *GenericNoteRepository) FindByIdentifier(identifier int, identifierType repository.NoteType) (*repository.GenericNote, error)
FindByIdentifier provides a mock function with given fields: identifier, identifierType
func (*GenericNoteRepository) GetDescriptionFromAppIds ¶
func (_m *GenericNoteRepository) GetDescriptionFromAppIds(appIds []int) ([]*repository.GenericNote, error)
GetDescriptionFromAppIds provides a mock function with given fields: appIds
func (*GenericNoteRepository) GetGenericNotesForAppIds ¶
func (_m *GenericNoteRepository) GetGenericNotesForAppIds(appIds []int) ([]*repository.GenericNote, error)
GetGenericNotesForAppIds provides a mock function with given fields: appIds
func (*GenericNoteRepository) RollbackTx ¶
func (_m *GenericNoteRepository) RollbackTx(tx *pg.Tx) error
RollbackTx provides a mock function with given fields: tx
func (*GenericNoteRepository) Save ¶
func (_m *GenericNoteRepository) Save(tx *pg.Tx, model *repository.GenericNote) error
Save provides a mock function with given fields: tx, model
func (*GenericNoteRepository) StartTx ¶
func (_m *GenericNoteRepository) StartTx() (*pg.Tx, error)
StartTx provides a mock function with given fields:
func (*GenericNoteRepository) Update ¶
func (_m *GenericNoteRepository) Update(tx *pg.Tx, model *repository.GenericNote) error
Update provides a mock function with given fields: tx, model