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