Documentation ¶
Index ¶
- type EntityTypeConverter
- type EntityTypeRepository
- func (_m *EntityTypeRepository) Create(ctx context.Context, tenant string, item *model.EntityType) error
- func (_m *EntityTypeRepository) CreateGlobal(ctx context.Context, _a1 *model.EntityType) error
- func (_m *EntityTypeRepository) Delete(ctx context.Context, tenant string, id string) error
- func (_m *EntityTypeRepository) DeleteGlobal(ctx context.Context, id string) error
- func (_m *EntityTypeRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)
- func (_m *EntityTypeRepository) GetByID(ctx context.Context, tenant string, id string) (*model.EntityType, error)
- func (_m *EntityTypeRepository) GetByIDGlobal(ctx context.Context, id string) (*model.EntityType, error)
- func (_m *EntityTypeRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, ...) ([]*model.EntityType, error)
- func (_m *EntityTypeRepository) Update(ctx context.Context, tenant string, item *model.EntityType) error
- func (_m *EntityTypeRepository) UpdateGlobal(ctx context.Context, _a1 *model.EntityType) error
- type UIDService
- type VersionConverter
- func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version
- func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput
- func (_m *VersionConverter) ToEntity(_a0 model.Version) version.Version
- func (_m *VersionConverter) ToGraphQL(in *model.Version) *graphql.Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityTypeConverter ¶
EntityTypeConverter is an autogenerated mock type for the EntityTypeConverter type
func NewEntityTypeConverter ¶
func NewEntityTypeConverter(t interface { mock.TestingT Cleanup(func()) }) *EntityTypeConverter
NewEntityTypeConverter creates a new instance of EntityTypeConverter. 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 (*EntityTypeConverter) FromEntity ¶
func (_m *EntityTypeConverter) FromEntity(entity *entitytype.Entity) *model.EntityType
FromEntity provides a mock function with given fields: entity
func (*EntityTypeConverter) ToEntity ¶
func (_m *EntityTypeConverter) ToEntity(in *model.EntityType) *entitytype.Entity
ToEntity provides a mock function with given fields: in
type EntityTypeRepository ¶
EntityTypeRepository is an autogenerated mock type for the EntityTypeRepository type
func NewEntityTypeRepository ¶
func NewEntityTypeRepository(t interface { mock.TestingT Cleanup(func()) }) *EntityTypeRepository
NewEntityTypeRepository creates a new instance of EntityTypeRepository. 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 (*EntityTypeRepository) Create ¶
func (_m *EntityTypeRepository) Create(ctx context.Context, tenant string, item *model.EntityType) error
Create provides a mock function with given fields: ctx, tenant, item
func (*EntityTypeRepository) CreateGlobal ¶
func (_m *EntityTypeRepository) CreateGlobal(ctx context.Context, _a1 *model.EntityType) error
CreateGlobal provides a mock function with given fields: ctx, _a1
func (*EntityTypeRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenant, id
func (*EntityTypeRepository) DeleteGlobal ¶
func (_m *EntityTypeRepository) DeleteGlobal(ctx context.Context, id string) error
DeleteGlobal provides a mock function with given fields: ctx, id
func (*EntityTypeRepository) Exists ¶
Exists provides a mock function with given fields: ctx, tenant, id
func (*EntityTypeRepository) GetByID ¶
func (_m *EntityTypeRepository) GetByID(ctx context.Context, tenant string, id string) (*model.EntityType, error)
GetByID provides a mock function with given fields: ctx, tenant, id
func (*EntityTypeRepository) GetByIDGlobal ¶
func (_m *EntityTypeRepository) GetByIDGlobal(ctx context.Context, id string) (*model.EntityType, error)
GetByIDGlobal provides a mock function with given fields: ctx, id
func (*EntityTypeRepository) ListByResourceID ¶
func (_m *EntityTypeRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, resourceType resource.Type) ([]*model.EntityType, error)
ListByResourceID provides a mock function with given fields: ctx, tenantID, resourceID, resourceType
func (*EntityTypeRepository) Update ¶
func (_m *EntityTypeRepository) Update(ctx context.Context, tenant string, item *model.EntityType) error
Update provides a mock function with given fields: ctx, tenant, item
func (*EntityTypeRepository) UpdateGlobal ¶
func (_m *EntityTypeRepository) UpdateGlobal(ctx context.Context, _a1 *model.EntityType) error
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:
type VersionConverter ¶
VersionConverter is an autogenerated mock type for the VersionConverter type
func NewVersionConverter ¶
func NewVersionConverter(t interface { mock.TestingT Cleanup(func()) }) *VersionConverter
NewVersionConverter creates a new instance of VersionConverter. 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 (*VersionConverter) FromEntity ¶
func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version
FromEntity provides a mock function with given fields: _a0
func (*VersionConverter) InputFromGraphQL ¶
func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput
InputFromGraphQL provides a mock function with given fields: in