Documentation ¶
Index ¶
- type EntityTypeMappingConverter
- type EntityTypeMappingRepository
- func (_m *EntityTypeMappingRepository) Create(ctx context.Context, tenant string, item *model.EntityTypeMapping) error
- func (_m *EntityTypeMappingRepository) CreateGlobal(ctx context.Context, _a1 *model.EntityTypeMapping) error
- func (_m *EntityTypeMappingRepository) Delete(ctx context.Context, tenant string, id string) error
- func (_m *EntityTypeMappingRepository) DeleteGlobal(ctx context.Context, id string) error
- func (_m *EntityTypeMappingRepository) GetByID(ctx context.Context, tenant string, id string) (*model.EntityTypeMapping, error)
- func (_m *EntityTypeMappingRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, ...) ([]*model.EntityTypeMapping, error)
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityTypeMappingConverter ¶
EntityTypeMappingConverter is an autogenerated mock type for the EntityTypeMappingConverter type
func NewEntityTypeMappingConverter ¶
func NewEntityTypeMappingConverter(t interface { mock.TestingT Cleanup(func()) }) *EntityTypeMappingConverter
NewEntityTypeMappingConverter creates a new instance of EntityTypeMappingConverter. 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 (*EntityTypeMappingConverter) FromEntity ¶
func (_m *EntityTypeMappingConverter) FromEntity(entity *entitytypemapping.Entity) *model.EntityTypeMapping
FromEntity provides a mock function with given fields: entity
func (*EntityTypeMappingConverter) ToEntity ¶
func (_m *EntityTypeMappingConverter) ToEntity(in *model.EntityTypeMapping) *entitytypemapping.Entity
ToEntity provides a mock function with given fields: in
type EntityTypeMappingRepository ¶
EntityTypeMappingRepository is an autogenerated mock type for the EntityTypeMappingRepository type
func NewEntityTypeMappingRepository ¶
func NewEntityTypeMappingRepository(t interface { mock.TestingT Cleanup(func()) }) *EntityTypeMappingRepository
NewEntityTypeMappingRepository creates a new instance of EntityTypeMappingRepository. 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 (*EntityTypeMappingRepository) Create ¶
func (_m *EntityTypeMappingRepository) Create(ctx context.Context, tenant string, item *model.EntityTypeMapping) error
Create provides a mock function with given fields: ctx, tenant, item
func (*EntityTypeMappingRepository) CreateGlobal ¶
func (_m *EntityTypeMappingRepository) CreateGlobal(ctx context.Context, _a1 *model.EntityTypeMapping) error
CreateGlobal provides a mock function with given fields: ctx, _a1
func (*EntityTypeMappingRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenant, id
func (*EntityTypeMappingRepository) DeleteGlobal ¶
func (_m *EntityTypeMappingRepository) DeleteGlobal(ctx context.Context, id string) error
DeleteGlobal provides a mock function with given fields: ctx, id
func (*EntityTypeMappingRepository) GetByID ¶
func (_m *EntityTypeMappingRepository) GetByID(ctx context.Context, tenant string, id string) (*model.EntityTypeMapping, error)
GetByID provides a mock function with given fields: ctx, tenant, id
func (*EntityTypeMappingRepository) ListByResourceID ¶
func (_m *EntityTypeMappingRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, resourceType resource.Type) ([]*model.EntityTypeMapping, error)
ListByResourceID provides a mock function with given fields: ctx, tenantID, resourceID, resourceType
type UIDService ¶
UIDService is an autogenerated mock type for the UIDService type
func NewUIDService ¶
func NewUIDService(t interface { mock.TestingT Cleanup(func()) }) *UIDService
NewUIDService creates a new instance of UIDService. 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 (*UIDService) Generate ¶
func (_m *UIDService) Generate() string
Generate provides a mock function with given fields: