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