Documentation ¶
Index ¶
- type ApplicationService
- type BundleService
- type Converter
- type DocumentConverter
- type DocumentRepository
- func (_m *DocumentRepository) Create(ctx context.Context, tenant string, item *model.Document) error
- func (_m *DocumentRepository) CreateGlobal(ctx context.Context, item *model.Document) error
- func (_m *DocumentRepository) Delete(ctx context.Context, tenant string, id string) error
- func (_m *DocumentRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)
- func (_m *DocumentRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Document, error)
- func (_m *DocumentRepository) GetForBundle(ctx context.Context, tenant string, id string, bundleID string) (*model.Document, error)
- func (_m *DocumentRepository) ListByBundleIDs(ctx context.Context, tenantID string, bundleIDs []string, pageSize int, ...) ([]*model.DocumentPage, error)
- type DocumentService
- func (_m *DocumentService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, ...) (string, error)
- func (_m *DocumentService) Delete(ctx context.Context, id string) error
- func (_m *DocumentService) Get(ctx context.Context, id string) (*model.Document, error)
- func (_m *DocumentService) ListFetchRequests(ctx context.Context, documentIDs []string) ([]*model.FetchRequest, error)
- 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) Delete(ctx context.Context, tenant string, id string, ...) error
- func (_m *FetchRequestRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, ...) ([]*model.FetchRequest, error)
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationService ¶
ApplicationService is an autogenerated mock type for the ApplicationService type
func NewApplicationService ¶
func NewApplicationService(t interface { mock.TestingT Cleanup(func()) }) *ApplicationService
NewApplicationService creates a new instance of ApplicationService. 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.
type BundleService ¶
BundleService is an autogenerated mock type for the BundleService type
func NewBundleService ¶
func NewBundleService(t interface { mock.TestingT Cleanup(func()) }) *BundleService
NewBundleService creates a new instance of BundleService. 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.
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 DocumentConverter ¶
DocumentConverter is an autogenerated mock type for the DocumentConverter type
func NewDocumentConverter ¶
func NewDocumentConverter(t interface { mock.TestingT Cleanup(func()) }) *DocumentConverter
NewDocumentConverter creates a new instance of DocumentConverter. 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 (*DocumentConverter) InputFromGraphQL ¶
func (_m *DocumentConverter) InputFromGraphQL(in *graphql.DocumentInput) (*model.DocumentInput, error)
InputFromGraphQL provides a mock function with given fields: in
type DocumentRepository ¶
DocumentRepository is an autogenerated mock type for the DocumentRepository type
func NewDocumentRepository ¶
func NewDocumentRepository(t interface { mock.TestingT Cleanup(func()) }) *DocumentRepository
NewDocumentRepository creates a new instance of DocumentRepository. 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 (*DocumentRepository) Create ¶
func (_m *DocumentRepository) Create(ctx context.Context, tenant string, item *model.Document) error
Create provides a mock function with given fields: ctx, tenant, item
func (*DocumentRepository) CreateGlobal ¶
CreateGlobal provides a mock function with given fields: ctx, item
func (*DocumentRepository) Delete ¶
Delete provides a mock function with given fields: ctx, tenant, id
func (*DocumentRepository) Exists ¶
Exists provides a mock function with given fields: ctx, tenant, id
func (*DocumentRepository) GetByID ¶
func (_m *DocumentRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Document, error)
GetByID provides a mock function with given fields: ctx, tenant, id
func (*DocumentRepository) GetForBundle ¶
func (_m *DocumentRepository) GetForBundle(ctx context.Context, tenant string, id string, bundleID string) (*model.Document, error)
GetForBundle provides a mock function with given fields: ctx, tenant, id, bundleID
func (*DocumentRepository) ListByBundleIDs ¶
func (_m *DocumentRepository) ListByBundleIDs(ctx context.Context, tenantID string, bundleIDs []string, pageSize int, cursor string) ([]*model.DocumentPage, error)
ListByBundleIDs provides a mock function with given fields: ctx, tenantID, bundleIDs, pageSize, cursor
type DocumentService ¶
DocumentService is an autogenerated mock type for the DocumentService type
func NewDocumentService ¶
func NewDocumentService(t interface { mock.TestingT Cleanup(func()) }) *DocumentService
NewDocumentService creates a new instance of DocumentService. 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 (*DocumentService) CreateInBundle ¶
func (_m *DocumentService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, bundleID string, in model.DocumentInput) (string, error)
CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, in
func (*DocumentService) Delete ¶
func (_m *DocumentService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*DocumentService) ListFetchRequests ¶
func (_m *DocumentService) ListFetchRequests(ctx context.Context, documentIDs []string) ([]*model.FetchRequest, error)
ListFetchRequests provides a mock function with given fields: ctx, documentIDs
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) Delete ¶
func (_m *FetchRequestRepository) Delete(ctx context.Context, tenant string, id string, objectType model.FetchRequestReferenceObjectType) error
Delete provides a mock function with given fields: ctx, tenant, id, objectType
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
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: