Documentation ¶
Index ¶
- type Catalog
- func (_m *Catalog) CreateCollection(ctx context.Context, createCollection *model.CreateCollection, ts int64) (*model.Collection, error)
- func (_m *Catalog) CreateDatabase(ctx context.Context, createDatabase *model.CreateDatabase, ts int64) (*model.Database, error)
- func (_m *Catalog) CreateSegment(ctx context.Context, createSegment *model.CreateSegment, ts int64) (*model.Segment, error)
- func (_m *Catalog) CreateTenant(ctx context.Context, createTenant *model.CreateTenant, ts int64) (*model.Tenant, error)
- func (_m *Catalog) DeleteCollection(ctx context.Context, deleteCollection *model.DeleteCollection) error
- func (_m *Catalog) DeleteSegment(ctx context.Context, segmentID types.UniqueID) error
- func (_m *Catalog) FlushCollectionCompaction(ctx context.Context, ...) (*model.FlushCollectionInfo, error)
- func (_m *Catalog) GetAllDatabases(ctx context.Context, ts int64) ([]*model.Database, error)
- func (_m *Catalog) GetAllTenants(ctx context.Context, ts int64) ([]*model.Tenant, error)
- func (_m *Catalog) GetCollections(ctx context.Context, collectionID types.UniqueID, collectionName *string, ...) ([]*model.Collection, error)
- func (_m *Catalog) GetDatabases(ctx context.Context, getDatabase *model.GetDatabase, ts int64) (*model.Database, error)
- func (_m *Catalog) GetSegments(ctx context.Context, segmentID types.UniqueID, segmentType *string, ...) ([]*model.Segment, error)
- func (_m *Catalog) GetTenants(ctx context.Context, getTenant *model.GetTenant, ts int64) (*model.Tenant, error)
- func (_m *Catalog) GetTenantsLastCompactionTime(ctx context.Context, tenantIDs []string) ([]*dbmodel.Tenant, error)
- func (_m *Catalog) ResetState(ctx context.Context) error
- func (_m *Catalog) SetTenantLastCompactionTime(ctx context.Context, tenantID string, lastCompactionTime int64) error
- func (_m *Catalog) UpdateCollection(ctx context.Context, updateCollection *model.UpdateCollection, ts int64) (*model.Collection, error)
- func (_m *Catalog) UpdateSegment(ctx context.Context, segmentInfo *model.UpdateSegment, ts int64) (*model.Segment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
Catalog is an autogenerated mock type for the Catalog type
func NewCatalog ¶
NewCatalog creates a new instance of Catalog. 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 (*Catalog) CreateCollection ¶
func (_m *Catalog) CreateCollection(ctx context.Context, createCollection *model.CreateCollection, ts int64) (*model.Collection, error)
CreateCollection provides a mock function with given fields: ctx, createCollection, ts
func (*Catalog) CreateDatabase ¶
func (_m *Catalog) CreateDatabase(ctx context.Context, createDatabase *model.CreateDatabase, ts int64) (*model.Database, error)
CreateDatabase provides a mock function with given fields: ctx, createDatabase, ts
func (*Catalog) CreateSegment ¶
func (_m *Catalog) CreateSegment(ctx context.Context, createSegment *model.CreateSegment, ts int64) (*model.Segment, error)
CreateSegment provides a mock function with given fields: ctx, createSegment, ts
func (*Catalog) CreateTenant ¶
func (_m *Catalog) CreateTenant(ctx context.Context, createTenant *model.CreateTenant, ts int64) (*model.Tenant, error)
CreateTenant provides a mock function with given fields: ctx, createTenant, ts
func (*Catalog) DeleteCollection ¶
func (_m *Catalog) DeleteCollection(ctx context.Context, deleteCollection *model.DeleteCollection) error
DeleteCollection provides a mock function with given fields: ctx, deleteCollection
func (*Catalog) DeleteSegment ¶
DeleteSegment provides a mock function with given fields: ctx, segmentID
func (*Catalog) FlushCollectionCompaction ¶
func (_m *Catalog) FlushCollectionCompaction(ctx context.Context, flushCollectionCompaction *model.FlushCollectionCompaction) (*model.FlushCollectionInfo, error)
FlushCollectionCompaction provides a mock function with given fields: ctx, flushCollectionCompaction
func (*Catalog) GetAllDatabases ¶
GetAllDatabases provides a mock function with given fields: ctx, ts
func (*Catalog) GetAllTenants ¶
GetAllTenants provides a mock function with given fields: ctx, ts
func (*Catalog) GetCollections ¶
func (_m *Catalog) GetCollections(ctx context.Context, collectionID types.UniqueID, collectionName *string, tenantID string, databaseName string, limit *int32, offset *int32) ([]*model.Collection, error)
GetCollections provides a mock function with given fields: ctx, collectionID, collectionName, tenantID, databaseName, limit, offset
func (*Catalog) GetDatabases ¶
func (_m *Catalog) GetDatabases(ctx context.Context, getDatabase *model.GetDatabase, ts int64) (*model.Database, error)
GetDatabases provides a mock function with given fields: ctx, getDatabase, ts
func (*Catalog) GetSegments ¶
func (_m *Catalog) GetSegments(ctx context.Context, segmentID types.UniqueID, segmentType *string, scope *string, collectionID types.UniqueID) ([]*model.Segment, error)
GetSegments provides a mock function with given fields: ctx, segmentID, segmentType, scope, collectionID
func (*Catalog) GetTenants ¶
func (_m *Catalog) GetTenants(ctx context.Context, getTenant *model.GetTenant, ts int64) (*model.Tenant, error)
GetTenants provides a mock function with given fields: ctx, getTenant, ts
func (*Catalog) GetTenantsLastCompactionTime ¶
func (_m *Catalog) GetTenantsLastCompactionTime(ctx context.Context, tenantIDs []string) ([]*dbmodel.Tenant, error)
GetTenantsLastCompactionTime provides a mock function with given fields: ctx, tenantIDs
func (*Catalog) ResetState ¶
ResetState provides a mock function with given fields: ctx
func (*Catalog) SetTenantLastCompactionTime ¶
func (_m *Catalog) SetTenantLastCompactionTime(ctx context.Context, tenantID string, lastCompactionTime int64) error
SetTenantLastCompactionTime provides a mock function with given fields: ctx, tenantID, lastCompactionTime
func (*Catalog) UpdateCollection ¶
func (_m *Catalog) UpdateCollection(ctx context.Context, updateCollection *model.UpdateCollection, ts int64) (*model.Collection, error)
UpdateCollection provides a mock function with given fields: ctx, updateCollection, ts