Documentation ¶
Index ¶
- type EntityConverter
- type ProductRepository
- func (_m *ProductRepository) Create(ctx context.Context, tenant string, item *model.Product) error
- func (_m *ProductRepository) CreateGlobal(ctx context.Context, _a1 *model.Product) error
- func (_m *ProductRepository) Delete(ctx context.Context, tenant string, id string) error
- func (_m *ProductRepository) DeleteGlobal(ctx context.Context, id string) error
- func (_m *ProductRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)
- func (_m *ProductRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Product, error)
- func (_m *ProductRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Product, error)
- func (_m *ProductRepository) ListByResourceID(ctx context.Context, tenantID string, appID string, resourceType resource.Type) ([]*model.Product, error)
- func (_m *ProductRepository) ListGlobal(ctx context.Context) ([]*model.Product, error)
- func (_m *ProductRepository) Update(ctx context.Context, tenant string, item *model.Product) error
- func (_m *ProductRepository) UpdateGlobal(ctx context.Context, _a1 *model.Product) error
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityConverter ¶
EntityConverter is an autogenerated mock type for the EntityConverter type
func NewEntityConverter ¶
func NewEntityConverter(t interface { mock.TestingT Cleanup(func()) }) *EntityConverter
NewEntityConverter creates a new instance of EntityConverter. 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 (*EntityConverter) FromEntity ¶
FromEntity provides a mock function with given fields: entity
type ProductRepository ¶
ProductRepository is an autogenerated mock type for the ProductRepository type
func NewProductRepository ¶
func NewProductRepository(t interface { mock.TestingT Cleanup(func()) }) *ProductRepository
NewProductRepository creates a new instance of ProductRepository. 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 (*ProductRepository) Create ¶
Create provides a mock function with given fields: ctx, tenant, item
func (*ProductRepository) CreateGlobal ¶
CreateGlobal provides a mock function with given fields: ctx, _a1
func (*ProductRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenant, id
func (*ProductRepository) DeleteGlobal ¶
func (_m *ProductRepository) DeleteGlobal(ctx context.Context, id string) error
DeleteGlobal provides a mock function with given fields: ctx, id
func (*ProductRepository) Exists ¶
Exists provides a mock function with given fields: ctx, tenant, id
func (*ProductRepository) GetByID ¶
func (_m *ProductRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Product, error)
GetByID provides a mock function with given fields: ctx, tenant, id
func (*ProductRepository) GetByIDGlobal ¶
GetByIDGlobal provides a mock function with given fields: ctx, id
func (*ProductRepository) ListByResourceID ¶
func (_m *ProductRepository) ListByResourceID(ctx context.Context, tenantID string, appID string, resourceType resource.Type) ([]*model.Product, error)
ListByResourceID provides a mock function with given fields: ctx, tenantID, appID, resourceType
func (*ProductRepository) ListGlobal ¶
ListGlobal provides a mock function with given fields: ctx
func (*ProductRepository) Update ¶
Update provides a mock function with given fields: ctx, tenant, item
func (*ProductRepository) UpdateGlobal ¶
UpdateGlobal provides a mock function with given fields: ctx, _a1
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: