Documentation ¶
Index ¶
- type ICollectionDb
- func (_m *ICollectionDb) DeleteAll() error
- func (_m *ICollectionDb) DeleteCollectionByID(collectionID string) (int, error)
- func (_m *ICollectionDb) GetCollectionEntry(collectionID *string, databaseName *string) (*dbmodel.Collection, error)
- func (_m *ICollectionDb) GetCollections(collectionID *string, collectionName *string, tenantID string, ...) ([]*dbmodel.CollectionAndMetadata, error)
- func (_m *ICollectionDb) GetSoftDeletedCollections(collectionID *string, tenantID string, databaseName string, limit int32) ([]*dbmodel.CollectionAndMetadata, error)
- func (_m *ICollectionDb) Insert(in *dbmodel.Collection) error
- func (_m *ICollectionDb) Update(in *dbmodel.Collection) error
- func (_m *ICollectionDb) UpdateLogPositionAndVersion(collectionID string, logPosition int64, currentCollectionVersion int32) (int32, error)
- type ICollectionMetadataDb
- type IDatabaseDb
- type IMetaDomain
- func (_m *IMetaDomain) CollectionDb(ctx context.Context) dbmodel.ICollectionDb
- func (_m *IMetaDomain) CollectionMetadataDb(ctx context.Context) dbmodel.ICollectionMetadataDb
- func (_m *IMetaDomain) DatabaseDb(ctx context.Context) dbmodel.IDatabaseDb
- func (_m *IMetaDomain) SegmentDb(ctx context.Context) dbmodel.ISegmentDb
- func (_m *IMetaDomain) SegmentMetadataDb(ctx context.Context) dbmodel.ISegmentMetadataDb
- func (_m *IMetaDomain) TenantDb(ctx context.Context) dbmodel.ITenantDb
- type ISegmentDb
- func (_m *ISegmentDb) DeleteAll() error
- func (_m *ISegmentDb) DeleteSegmentByID(id string) error
- func (_m *ISegmentDb) GetSegments(id types.UniqueID, segmentType *string, scope *string, ...) ([]*dbmodel.SegmentAndMetadata, error)
- func (_m *ISegmentDb) Insert(_a0 *dbmodel.Segment) error
- func (_m *ISegmentDb) RegisterFilePaths(flushSegmentCompactions []*model.FlushSegmentCompaction) error
- func (_m *ISegmentDb) Update(_a0 *dbmodel.UpdateSegment) error
- type ISegmentMetadataDb
- type ITenantDb
- func (_m *ITenantDb) DeleteAll() error
- func (_m *ITenantDb) GetAllTenants() ([]*dbmodel.Tenant, error)
- func (_m *ITenantDb) GetTenants(tenantID string) ([]*dbmodel.Tenant, error)
- func (_m *ITenantDb) GetTenantsLastCompactionTime(tenantIDs []string) ([]*dbmodel.Tenant, error)
- func (_m *ITenantDb) Insert(in *dbmodel.Tenant) error
- func (_m *ITenantDb) UpdateTenantLastCompactionTime(tenantID string, lastCompactionTime int64) error
- type ITransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICollectionDb ¶
ICollectionDb is an autogenerated mock type for the ICollectionDb type
func NewICollectionDb ¶
func NewICollectionDb(t interface { mock.TestingT Cleanup(func()) }) *ICollectionDb
NewICollectionDb creates a new instance of ICollectionDb. 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 (*ICollectionDb) DeleteAll ¶
func (_m *ICollectionDb) DeleteAll() error
DeleteAll provides a mock function with given fields:
func (*ICollectionDb) DeleteCollectionByID ¶
func (_m *ICollectionDb) DeleteCollectionByID(collectionID string) (int, error)
DeleteCollectionByID provides a mock function with given fields: collectionID
func (*ICollectionDb) GetCollectionEntry ¶
func (_m *ICollectionDb) GetCollectionEntry(collectionID *string, databaseName *string) (*dbmodel.Collection, error)
GetCollectionEntry provides a mock function with given fields: collectionID, databaseName
func (*ICollectionDb) GetCollections ¶
func (_m *ICollectionDb) GetCollections(collectionID *string, collectionName *string, tenantID string, databaseName string, limit *int32, offset *int32) ([]*dbmodel.CollectionAndMetadata, error)
GetCollections provides a mock function with given fields: collectionID, collectionName, tenantID, databaseName, limit, offset
func (*ICollectionDb) GetSoftDeletedCollections ¶
func (_m *ICollectionDb) GetSoftDeletedCollections(collectionID *string, tenantID string, databaseName string, limit int32) ([]*dbmodel.CollectionAndMetadata, error)
GetSoftDeletedCollections provides a mock function with given fields: collectionID, tenantID, databaseName, limit
func (*ICollectionDb) Insert ¶
func (_m *ICollectionDb) Insert(in *dbmodel.Collection) error
Insert provides a mock function with given fields: in
func (*ICollectionDb) Update ¶
func (_m *ICollectionDb) Update(in *dbmodel.Collection) error
Update provides a mock function with given fields: in
func (*ICollectionDb) UpdateLogPositionAndVersion ¶
func (_m *ICollectionDb) UpdateLogPositionAndVersion(collectionID string, logPosition int64, currentCollectionVersion int32) (int32, error)
UpdateLogPositionAndVersion provides a mock function with given fields: collectionID, logPosition, currentCollectionVersion
type ICollectionMetadataDb ¶
ICollectionMetadataDb is an autogenerated mock type for the ICollectionMetadataDb type
func NewICollectionMetadataDb ¶
func NewICollectionMetadataDb(t interface { mock.TestingT Cleanup(func()) }) *ICollectionMetadataDb
NewICollectionMetadataDb creates a new instance of ICollectionMetadataDb. 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 (*ICollectionMetadataDb) DeleteAll ¶
func (_m *ICollectionMetadataDb) DeleteAll() error
DeleteAll provides a mock function with given fields:
func (*ICollectionMetadataDb) DeleteByCollectionID ¶
func (_m *ICollectionMetadataDb) DeleteByCollectionID(collectionID string) (int, error)
DeleteByCollectionID provides a mock function with given fields: collectionID
func (*ICollectionMetadataDb) Insert ¶
func (_m *ICollectionMetadataDb) Insert(in []*dbmodel.CollectionMetadata) error
Insert provides a mock function with given fields: in
type IDatabaseDb ¶
IDatabaseDb is an autogenerated mock type for the IDatabaseDb type
func NewIDatabaseDb ¶
func NewIDatabaseDb(t interface { mock.TestingT Cleanup(func()) }) *IDatabaseDb
NewIDatabaseDb creates a new instance of IDatabaseDb. 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 (*IDatabaseDb) DeleteAll ¶
func (_m *IDatabaseDb) DeleteAll() error
DeleteAll provides a mock function with given fields:
func (*IDatabaseDb) GetAllDatabases ¶
func (_m *IDatabaseDb) GetAllDatabases() ([]*dbmodel.Database, error)
GetAllDatabases provides a mock function with given fields:
func (*IDatabaseDb) GetDatabases ¶
func (_m *IDatabaseDb) GetDatabases(tenantID string, databaseName string) ([]*dbmodel.Database, error)
GetDatabases provides a mock function with given fields: tenantID, databaseName
type IMetaDomain ¶
IMetaDomain is an autogenerated mock type for the IMetaDomain type
func NewIMetaDomain ¶
func NewIMetaDomain(t interface { mock.TestingT Cleanup(func()) }) *IMetaDomain
NewIMetaDomain creates a new instance of IMetaDomain. 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 (*IMetaDomain) CollectionDb ¶
func (_m *IMetaDomain) CollectionDb(ctx context.Context) dbmodel.ICollectionDb
CollectionDb provides a mock function with given fields: ctx
func (*IMetaDomain) CollectionMetadataDb ¶
func (_m *IMetaDomain) CollectionMetadataDb(ctx context.Context) dbmodel.ICollectionMetadataDb
CollectionMetadataDb provides a mock function with given fields: ctx
func (*IMetaDomain) DatabaseDb ¶
func (_m *IMetaDomain) DatabaseDb(ctx context.Context) dbmodel.IDatabaseDb
DatabaseDb provides a mock function with given fields: ctx
func (*IMetaDomain) SegmentDb ¶
func (_m *IMetaDomain) SegmentDb(ctx context.Context) dbmodel.ISegmentDb
SegmentDb provides a mock function with given fields: ctx
func (*IMetaDomain) SegmentMetadataDb ¶
func (_m *IMetaDomain) SegmentMetadataDb(ctx context.Context) dbmodel.ISegmentMetadataDb
SegmentMetadataDb provides a mock function with given fields: ctx
type ISegmentDb ¶
ISegmentDb is an autogenerated mock type for the ISegmentDb type
func NewISegmentDb ¶
func NewISegmentDb(t interface { mock.TestingT Cleanup(func()) }) *ISegmentDb
NewISegmentDb creates a new instance of ISegmentDb. 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 (*ISegmentDb) DeleteAll ¶
func (_m *ISegmentDb) DeleteAll() error
DeleteAll provides a mock function with given fields:
func (*ISegmentDb) DeleteSegmentByID ¶
func (_m *ISegmentDb) DeleteSegmentByID(id string) error
DeleteSegmentByID provides a mock function with given fields: id
func (*ISegmentDb) GetSegments ¶
func (_m *ISegmentDb) GetSegments(id types.UniqueID, segmentType *string, scope *string, collectionID types.UniqueID) ([]*dbmodel.SegmentAndMetadata, error)
GetSegments provides a mock function with given fields: id, segmentType, scope, collectionID
func (*ISegmentDb) Insert ¶
func (_m *ISegmentDb) Insert(_a0 *dbmodel.Segment) error
Insert provides a mock function with given fields: _a0
func (*ISegmentDb) RegisterFilePaths ¶
func (_m *ISegmentDb) RegisterFilePaths(flushSegmentCompactions []*model.FlushSegmentCompaction) error
RegisterFilePaths provides a mock function with given fields: flushSegmentCompactions
func (*ISegmentDb) Update ¶
func (_m *ISegmentDb) Update(_a0 *dbmodel.UpdateSegment) error
Update provides a mock function with given fields: _a0
type ISegmentMetadataDb ¶
ISegmentMetadataDb is an autogenerated mock type for the ISegmentMetadataDb type
func NewISegmentMetadataDb ¶
func NewISegmentMetadataDb(t interface { mock.TestingT Cleanup(func()) }) *ISegmentMetadataDb
NewISegmentMetadataDb creates a new instance of ISegmentMetadataDb. 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 (*ISegmentMetadataDb) DeleteAll ¶
func (_m *ISegmentMetadataDb) DeleteAll() error
DeleteAll provides a mock function with given fields:
func (*ISegmentMetadataDb) DeleteBySegmentID ¶
func (_m *ISegmentMetadataDb) DeleteBySegmentID(segmentID string) error
DeleteBySegmentID provides a mock function with given fields: segmentID
func (*ISegmentMetadataDb) DeleteBySegmentIDAndKeys ¶
func (_m *ISegmentMetadataDb) DeleteBySegmentIDAndKeys(segmentID string, keys []string) error
DeleteBySegmentIDAndKeys provides a mock function with given fields: segmentID, keys
func (*ISegmentMetadataDb) Insert ¶
func (_m *ISegmentMetadataDb) Insert(in []*dbmodel.SegmentMetadata) error
Insert provides a mock function with given fields: in
type ITenantDb ¶
ITenantDb is an autogenerated mock type for the ITenantDb type
func NewITenantDb ¶
NewITenantDb creates a new instance of ITenantDb. 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 (*ITenantDb) GetAllTenants ¶
GetAllTenants provides a mock function with given fields:
func (*ITenantDb) GetTenants ¶
GetTenants provides a mock function with given fields: tenantID
func (*ITenantDb) GetTenantsLastCompactionTime ¶
GetTenantsLastCompactionTime provides a mock function with given fields: tenantIDs
type ITransaction ¶
ITransaction is an autogenerated mock type for the ITransaction type
func NewITransaction ¶
func NewITransaction(t interface { mock.TestingT Cleanup(func()) }) *ITransaction
NewITransaction creates a new instance of ITransaction. 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 (*ITransaction) Transaction ¶
Transaction provides a mock function with given fields: ctx, fn