Documentation ¶
Index ¶
- type Converter
- type LabelDefinitionRepository
- func (_m *LabelDefinitionRepository) Create(ctx context.Context, def model.LabelDefinition) error
- func (_m *LabelDefinitionRepository) Exists(ctx context.Context, tenant string, key string) (bool, error)
- func (_m *LabelDefinitionRepository) GetByKey(ctx context.Context, tenant string, key string) (*model.LabelDefinition, error)
- type LabelRepository
- func (_m *LabelRepository) Create(ctx context.Context, tenant string, _a2 *model.Label) error
- func (_m *LabelRepository) Delete(ctx context.Context, tenantID string, objectType model.LabelableObject, ...) error
- func (_m *LabelRepository) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, ...) (*model.Label, error)
- func (_m *LabelRepository) GetByKeyGlobal(ctx context.Context, objectType model.LabelableObject, objectID string, ...) (*model.Label, error)
- func (_m *LabelRepository) ListForObject(ctx context.Context, tenantID string, objectType model.LabelableObject, ...) (map[string]*model.Label, error)
- func (_m *LabelRepository) UpdateWithVersion(ctx context.Context, tenant string, _a2 *model.Label) error
- func (_m *LabelRepository) Upsert(ctx context.Context, tenant string, _a2 *model.Label) error
- func (_m *LabelRepository) UpsertGlobal(ctx context.Context, _a1 *model.Label) error
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
Converter is an autogenerated mock type for the Converter type
func NewConverter ¶
NewConverter creates a new instance of Converter. 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 (*Converter) FromEntity ¶
FromEntity provides a mock function with given fields: in
type LabelDefinitionRepository ¶
LabelDefinitionRepository is an autogenerated mock type for the LabelDefinitionRepository type
func NewLabelDefinitionRepository ¶
func NewLabelDefinitionRepository(t interface { mock.TestingT Cleanup(func()) }) *LabelDefinitionRepository
NewLabelDefinitionRepository creates a new instance of LabelDefinitionRepository. 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 (*LabelDefinitionRepository) Create ¶
func (_m *LabelDefinitionRepository) Create(ctx context.Context, def model.LabelDefinition) error
Create provides a mock function with given fields: ctx, def
func (*LabelDefinitionRepository) Exists ¶
func (_m *LabelDefinitionRepository) Exists(ctx context.Context, tenant string, key string) (bool, error)
Exists provides a mock function with given fields: ctx, tenant, key
func (*LabelDefinitionRepository) GetByKey ¶
func (_m *LabelDefinitionRepository) GetByKey(ctx context.Context, tenant string, key string) (*model.LabelDefinition, error)
GetByKey provides a mock function with given fields: ctx, tenant, key
type LabelRepository ¶
LabelRepository is an autogenerated mock type for the LabelRepository type
func NewLabelRepository ¶
func NewLabelRepository(t interface { mock.TestingT Cleanup(func()) }) *LabelRepository
NewLabelRepository creates a new instance of LabelRepository. 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 (*LabelRepository) Create ¶
Create provides a mock function with given fields: ctx, tenant, _a2
func (*LabelRepository) Delete ¶
func (_m *LabelRepository) Delete(ctx context.Context, tenantID string, objectType model.LabelableObject, objectID string, key string) error
Delete provides a mock function with given fields: ctx, tenantID, objectType, objectID, key
func (*LabelRepository) GetByKey ¶
func (_m *LabelRepository) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)
GetByKey provides a mock function with given fields: ctx, tenant, objectType, objectID, key
func (*LabelRepository) GetByKeyGlobal ¶
func (_m *LabelRepository) GetByKeyGlobal(ctx context.Context, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)
GetByKeyGlobal provides a mock function with given fields: ctx, objectType, objectID, key
func (*LabelRepository) ListForObject ¶
func (_m *LabelRepository) ListForObject(ctx context.Context, tenantID string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)
ListForObject provides a mock function with given fields: ctx, tenantID, objectType, objectID
func (*LabelRepository) UpdateWithVersion ¶
func (_m *LabelRepository) UpdateWithVersion(ctx context.Context, tenant string, _a2 *model.Label) error
UpdateWithVersion provides a mock function with given fields: ctx, tenant, _a2
func (*LabelRepository) Upsert ¶
Upsert provides a mock function with given fields: ctx, tenant, _a2
func (*LabelRepository) UpsertGlobal ¶
UpsertGlobal 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: