Documentation
¶
Index ¶
- type TenantParentRepository
- func (_m *TenantParentRepository) Delete(ctx context.Context, tenantID string, parentID string) error
- func (_m *TenantParentRepository) ListByParent(ctx context.Context, parentID string) ([]string, error)
- func (_m *TenantParentRepository) ListParents(ctx context.Context, tenantID string) ([]string, error)
- func (_m *TenantParentRepository) Upsert(ctx context.Context, tenantID string, parentID string) error
- func (_m *TenantParentRepository) UpsertMultiple(ctx context.Context, tenantID string, parentIDs []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TenantParentRepository ¶
TenantParentRepository is an autogenerated mock type for the TenantParentRepository type
func NewTenantParentRepository ¶
func NewTenantParentRepository(t interface { mock.TestingT Cleanup(func()) }) *TenantParentRepository
NewTenantParentRepository creates a new instance of TenantParentRepository. 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 (*TenantParentRepository) Delete ¶
func (_m *TenantParentRepository) Delete(ctx context.Context, tenantID string, parentID string) error
Delete provides a mock function with given fields: ctx, tenantID, parentID
func (*TenantParentRepository) ListByParent ¶
func (_m *TenantParentRepository) ListByParent(ctx context.Context, parentID string) ([]string, error)
ListByParent provides a mock function with given fields: ctx, parentID
func (*TenantParentRepository) ListParents ¶
func (_m *TenantParentRepository) ListParents(ctx context.Context, tenantID string) ([]string, error)
ListParents provides a mock function with given fields: ctx, tenantID
func (*TenantParentRepository) Upsert ¶
func (_m *TenantParentRepository) Upsert(ctx context.Context, tenantID string, parentID string) error
Upsert provides a mock function with given fields: ctx, tenantID, parentID
func (*TenantParentRepository) UpsertMultiple ¶
func (_m *TenantParentRepository) UpsertMultiple(ctx context.Context, tenantID string, parentIDs []string) error
UpsertMultiple provides a mock function with given fields: ctx, tenantID, parentIDs