Documentation ¶
Index ¶
- type Converter
- type FetchRequestConverter
- type FetchRequestRepository
- func (_m *FetchRequestRepository) Create(ctx context.Context, tenant string, item *model.FetchRequest) error
- func (_m *FetchRequestRepository) CreateGlobal(ctx context.Context, item *model.FetchRequest) error
- func (_m *FetchRequestRepository) DeleteByReferenceObjectID(ctx context.Context, tenant string, ...) error
- func (_m *FetchRequestRepository) DeleteByReferenceObjectIDGlobal(ctx context.Context, objectType model.FetchRequestReferenceObjectType, ...) error
- func (_m *FetchRequestRepository) GetByReferenceObjectID(ctx context.Context, tenant string, ...) (*model.FetchRequest, error)
- func (_m *FetchRequestRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, ...) ([]*model.FetchRequest, error)
- func (_m *FetchRequestRepository) ListByReferenceObjectIDsGlobal(ctx context.Context, objectType model.FetchRequestReferenceObjectType, ...) ([]*model.FetchRequest, error)
- type FetchRequestService
- type SpecRepository
- func (_m *SpecRepository) Create(ctx context.Context, tenant string, item *model.Spec) error
- func (_m *SpecRepository) CreateGlobal(ctx context.Context, item *model.Spec) error
- func (_m *SpecRepository) Delete(ctx context.Context, tenant string, id string, ...) error
- func (_m *SpecRepository) DeleteByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, ...) error
- func (_m *SpecRepository) DeleteByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) error
- func (_m *SpecRepository) Exists(ctx context.Context, tenantID string, id string, ...) (bool, error)
- func (_m *SpecRepository) GetByID(ctx context.Context, tenantID string, id string, ...) (*model.Spec, error)
- func (_m *SpecRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Spec, error)
- func (_m *SpecRepository) ListByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, ...) ([]*model.Spec, error)
- func (_m *SpecRepository) ListByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) ([]*model.Spec, error)
- func (_m *SpecRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, ...) ([]*model.Spec, error)
- func (_m *SpecRepository) ListIDByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, ...) ([]string, error)
- func (_m *SpecRepository) ListIDByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) ([]string, error)
- func (_m *SpecRepository) Update(ctx context.Context, tenant string, item *model.Spec) error
- func (_m *SpecRepository) UpdateGlobal(ctx context.Context, item *model.Spec) 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 FetchRequestConverter ¶
FetchRequestConverter is an autogenerated mock type for the FetchRequestConverter type
func NewFetchRequestConverter ¶
func NewFetchRequestConverter(t interface { mock.TestingT Cleanup(func()) }) *FetchRequestConverter
NewFetchRequestConverter creates a new instance of FetchRequestConverter. 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 (*FetchRequestConverter) InputFromGraphQL ¶
func (_m *FetchRequestConverter) InputFromGraphQL(in *graphql.FetchRequestInput) (*model.FetchRequestInput, error)
InputFromGraphQL provides a mock function with given fields: in
func (*FetchRequestConverter) ToGraphQL ¶
func (_m *FetchRequestConverter) ToGraphQL(in *model.FetchRequest) (*graphql.FetchRequest, error)
ToGraphQL provides a mock function with given fields: in
type FetchRequestRepository ¶
FetchRequestRepository is an autogenerated mock type for the FetchRequestRepository type
func NewFetchRequestRepository ¶
func NewFetchRequestRepository(t interface { mock.TestingT Cleanup(func()) }) *FetchRequestRepository
NewFetchRequestRepository creates a new instance of FetchRequestRepository. 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 (*FetchRequestRepository) Create ¶
func (_m *FetchRequestRepository) Create(ctx context.Context, tenant string, item *model.FetchRequest) error
Create provides a mock function with given fields: ctx, tenant, item
func (*FetchRequestRepository) CreateGlobal ¶
func (_m *FetchRequestRepository) CreateGlobal(ctx context.Context, item *model.FetchRequest) error
CreateGlobal provides a mock function with given fields: ctx, item
func (*FetchRequestRepository) DeleteByReferenceObjectID ¶
func (_m *FetchRequestRepository) DeleteByReferenceObjectID(ctx context.Context, tenant string, objectType model.FetchRequestReferenceObjectType, objectID string) error
DeleteByReferenceObjectID provides a mock function with given fields: ctx, tenant, objectType, objectID
func (*FetchRequestRepository) DeleteByReferenceObjectIDGlobal ¶
func (_m *FetchRequestRepository) DeleteByReferenceObjectIDGlobal(ctx context.Context, objectType model.FetchRequestReferenceObjectType, objectID string) error
DeleteByReferenceObjectIDGlobal provides a mock function with given fields: ctx, objectType, objectID
func (*FetchRequestRepository) GetByReferenceObjectID ¶
func (_m *FetchRequestRepository) GetByReferenceObjectID(ctx context.Context, tenant string, objectType model.FetchRequestReferenceObjectType, objectID string) (*model.FetchRequest, error)
GetByReferenceObjectID provides a mock function with given fields: ctx, tenant, objectType, objectID
func (*FetchRequestRepository) ListByReferenceObjectIDs ¶
func (_m *FetchRequestRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, objectType model.FetchRequestReferenceObjectType, objectIDs []string) ([]*model.FetchRequest, error)
ListByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectType, objectIDs
func (*FetchRequestRepository) ListByReferenceObjectIDsGlobal ¶
func (_m *FetchRequestRepository) ListByReferenceObjectIDsGlobal(ctx context.Context, objectType model.FetchRequestReferenceObjectType, objectIDs []string) ([]*model.FetchRequest, error)
ListByReferenceObjectIDsGlobal provides a mock function with given fields: ctx, objectType, objectIDs
type FetchRequestService ¶
FetchRequestService is an autogenerated mock type for the FetchRequestService type
func NewFetchRequestService ¶
func NewFetchRequestService(t interface { mock.TestingT Cleanup(func()) }) *FetchRequestService
NewFetchRequestService creates a new instance of FetchRequestService. 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 (*FetchRequestService) HandleSpec ¶
func (_m *FetchRequestService) HandleSpec(ctx context.Context, fr *model.FetchRequest) *string
HandleSpec provides a mock function with given fields: ctx, fr
type SpecRepository ¶
SpecRepository is an autogenerated mock type for the SpecRepository type
func NewSpecRepository ¶
func NewSpecRepository(t interface { mock.TestingT Cleanup(func()) }) *SpecRepository
NewSpecRepository creates a new instance of SpecRepository. 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 (*SpecRepository) Create ¶
Create provides a mock function with given fields: ctx, tenant, item
func (*SpecRepository) CreateGlobal ¶
CreateGlobal provides a mock function with given fields: ctx, item
func (*SpecRepository) Delete ¶
func (_m *SpecRepository) Delete(ctx context.Context, tenant string, id string, objectType model.SpecReferenceObjectType) error
Delete provides a mock function with given fields: ctx, tenant, id, objectType
func (*SpecRepository) DeleteByReferenceObjectID ¶
func (_m *SpecRepository) DeleteByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectID string) error
DeleteByReferenceObjectID provides a mock function with given fields: ctx, tenant, objectType, objectID
func (*SpecRepository) DeleteByReferenceObjectIDGlobal ¶
func (_m *SpecRepository) DeleteByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) error
DeleteByReferenceObjectIDGlobal provides a mock function with given fields: ctx, objectType, objectID
func (*SpecRepository) Exists ¶
func (_m *SpecRepository) Exists(ctx context.Context, tenantID string, id string, objectType model.SpecReferenceObjectType) (bool, error)
Exists provides a mock function with given fields: ctx, tenantID, id, objectType
func (*SpecRepository) GetByID ¶
func (_m *SpecRepository) GetByID(ctx context.Context, tenantID string, id string, objectType model.SpecReferenceObjectType) (*model.Spec, error)
GetByID provides a mock function with given fields: ctx, tenantID, id, objectType
func (*SpecRepository) GetByIDGlobal ¶
GetByIDGlobal provides a mock function with given fields: ctx, id
func (*SpecRepository) ListByReferenceObjectID ¶
func (_m *SpecRepository) ListByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectID string) ([]*model.Spec, error)
ListByReferenceObjectID provides a mock function with given fields: ctx, tenant, objectType, objectID
func (*SpecRepository) ListByReferenceObjectIDGlobal ¶
func (_m *SpecRepository) ListByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) ([]*model.Spec, error)
ListByReferenceObjectIDGlobal provides a mock function with given fields: ctx, objectType, objectID
func (*SpecRepository) ListByReferenceObjectIDs ¶
func (_m *SpecRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectIDs []string) ([]*model.Spec, error)
ListByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectType, objectIDs
func (*SpecRepository) ListIDByReferenceObjectID ¶
func (_m *SpecRepository) ListIDByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectID string) ([]string, error)
ListIDByReferenceObjectID provides a mock function with given fields: ctx, tenant, objectType, objectID
func (*SpecRepository) ListIDByReferenceObjectIDGlobal ¶
func (_m *SpecRepository) ListIDByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) ([]string, error)
ListIDByReferenceObjectIDGlobal provides a mock function with given fields: ctx, objectType, objectID
func (*SpecRepository) Update ¶
Update provides a mock function with given fields: ctx, tenant, item
func (*SpecRepository) UpdateGlobal ¶
UpdateGlobal provides a mock function with given fields: ctx, item
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: