mocks

package
v0.0.0-...-4b6a958 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	mock.Mock
}

Catalog is an autogenerated mock type for the Catalog type

func NewCatalog

func NewCatalog(t interface {
	mock.TestingT
	Cleanup(func())
}) *Catalog

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

func (_m *Catalog) DeleteSegment(ctx context.Context, segmentID types.UniqueID) error

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

func (_m *Catalog) GetAllDatabases(ctx context.Context, ts int64) ([]*model.Database, error)

GetAllDatabases provides a mock function with given fields: ctx, ts

func (*Catalog) GetAllTenants

func (_m *Catalog) GetAllTenants(ctx context.Context, ts int64) ([]*model.Tenant, error)

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

func (_m *Catalog) ResetState(ctx context.Context) error

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

func (*Catalog) UpdateSegment

func (_m *Catalog) UpdateSegment(ctx context.Context, segmentInfo *model.UpdateSegment, ts int64) (*model.Segment, error)

UpdateSegment provides a mock function with given fields: ctx, segmentInfo, ts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL