Documentation ¶
Index ¶
- type VariableEntityMappingRepository
- func (_m *VariableEntityMappingRepository) CommitTx(tx *pg.Tx) error
- func (_m *VariableEntityMappingRepository) DeleteAllVariablesForEntities(entities []repository.Entity, userId int32) error
- func (_m *VariableEntityMappingRepository) DeleteVariablesForEntity(tx *pg.Tx, variableIDs []string, entity repository.Entity, userId int32) error
- func (_m *VariableEntityMappingRepository) GetVariablesForEntities(entities []repository.Entity) ([]*repository.VariableEntityMapping, error)
- func (_m *VariableEntityMappingRepository) RollbackTx(tx *pg.Tx) error
- func (_m *VariableEntityMappingRepository) SaveVariableEntityMappings(tx *pg.Tx, mappings []*repository.VariableEntityMapping) error
- func (_m *VariableEntityMappingRepository) StartTx() (*pg.Tx, error)
- type VariableEntityMappingService
- func (_m *VariableEntityMappingService) DeleteMappingsForEntities(entities []repository.Entity, userId int32) error
- func (_m *VariableEntityMappingService) GetAllMappingsForEntities(entities []repository.Entity) (map[repository.Entity][]string, error)
- func (_m *VariableEntityMappingService) UpdateVariablesForEntity(variableNames []string, entity repository.Entity, userId int32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VariableEntityMappingRepository ¶
VariableEntityMappingRepository is an autogenerated mock type for the VariableEntityMappingRepository type
func NewVariableEntityMappingRepository ¶
func NewVariableEntityMappingRepository(t interface { mock.TestingT Cleanup(func()) }) *VariableEntityMappingRepository
NewVariableEntityMappingRepository creates a new instance of VariableEntityMappingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*VariableEntityMappingRepository) CommitTx ¶
func (_m *VariableEntityMappingRepository) CommitTx(tx *pg.Tx) error
CommitTx provides a mock function with given fields: tx
func (*VariableEntityMappingRepository) DeleteAllVariablesForEntities ¶
func (_m *VariableEntityMappingRepository) DeleteAllVariablesForEntities(entities []repository.Entity, userId int32) error
DeleteAllVariablesForEntities provides a mock function with given fields: entities, userId
func (*VariableEntityMappingRepository) DeleteVariablesForEntity ¶
func (_m *VariableEntityMappingRepository) DeleteVariablesForEntity(tx *pg.Tx, variableIDs []string, entity repository.Entity, userId int32) error
DeleteVariablesForEntity provides a mock function with given fields: tx, variableIDs, entity, userId
func (*VariableEntityMappingRepository) GetVariablesForEntities ¶
func (_m *VariableEntityMappingRepository) GetVariablesForEntities(entities []repository.Entity) ([]*repository.VariableEntityMapping, error)
GetVariablesForEntities provides a mock function with given fields: entities
func (*VariableEntityMappingRepository) RollbackTx ¶
func (_m *VariableEntityMappingRepository) RollbackTx(tx *pg.Tx) error
RollbackTx provides a mock function with given fields: tx
func (*VariableEntityMappingRepository) SaveVariableEntityMappings ¶
func (_m *VariableEntityMappingRepository) SaveVariableEntityMappings(tx *pg.Tx, mappings []*repository.VariableEntityMapping) error
SaveVariableEntityMappings provides a mock function with given fields: tx, mappings
type VariableEntityMappingService ¶
VariableEntityMappingService is an autogenerated mock type for the VariableEntityMappingService type
func NewVariableEntityMappingService ¶
func NewVariableEntityMappingService(t interface { mock.TestingT Cleanup(func()) }) *VariableEntityMappingService
NewVariableEntityMappingService creates a new instance of VariableEntityMappingService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*VariableEntityMappingService) DeleteMappingsForEntities ¶
func (_m *VariableEntityMappingService) DeleteMappingsForEntities(entities []repository.Entity, userId int32) error
DeleteMappingsForEntities provides a mock function with given fields: entities, userId
func (*VariableEntityMappingService) GetAllMappingsForEntities ¶
func (_m *VariableEntityMappingService) GetAllMappingsForEntities(entities []repository.Entity) (map[repository.Entity][]string, error)
GetAllMappingsForEntities provides a mock function with given fields: entities
func (*VariableEntityMappingService) UpdateVariablesForEntity ¶
func (_m *VariableEntityMappingService) UpdateVariablesForEntity(variableNames []string, entity repository.Entity, userId int32) error
UpdateVariablesForEntity provides a mock function with given fields: variableNames, entity, userId