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