broker

package
v0.10.3-0...-0b9edb6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCoordinatorBroker

func NewCoordinatorBroker(rootCoord types.RootCoordClient) *coordinatorBroker

Types

type Broker

type Broker interface {
	DescribeCollectionInternal(ctx context.Context, collectionID int64) (*milvuspb.DescribeCollectionResponse, error)
	ShowPartitionsInternal(ctx context.Context, collectionID int64) ([]int64, error)
	ShowCollections(ctx context.Context, dbName string) (*milvuspb.ShowCollectionsResponse, error)
	ListDatabases(ctx context.Context) (*milvuspb.ListDatabasesResponse, error)
	HasCollection(ctx context.Context, collectionID int64) (bool, error)
}

type MockBroker

type MockBroker struct {
	mock.Mock
}

MockBroker is an autogenerated mock type for the Broker type

func NewMockBroker

func NewMockBroker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBroker

NewMockBroker creates a new instance of MockBroker. 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 (*MockBroker) DescribeCollectionInternal

func (_m *MockBroker) DescribeCollectionInternal(ctx context.Context, collectionID int64) (*milvuspb.DescribeCollectionResponse, error)

DescribeCollectionInternal provides a mock function with given fields: ctx, collectionID

func (*MockBroker) EXPECT

func (_m *MockBroker) EXPECT() *MockBroker_Expecter

func (*MockBroker) HasCollection

func (_m *MockBroker) HasCollection(ctx context.Context, collectionID int64) (bool, error)

HasCollection provides a mock function with given fields: ctx, collectionID

func (*MockBroker) ListDatabases

func (_m *MockBroker) ListDatabases(ctx context.Context) (*milvuspb.ListDatabasesResponse, error)

ListDatabases provides a mock function with given fields: ctx

func (*MockBroker) ShowCollections

func (_m *MockBroker) ShowCollections(ctx context.Context, dbName string) (*milvuspb.ShowCollectionsResponse, error)

ShowCollections provides a mock function with given fields: ctx, dbName

func (*MockBroker) ShowPartitionsInternal

func (_m *MockBroker) ShowPartitionsInternal(ctx context.Context, collectionID int64) ([]int64, error)

ShowPartitionsInternal provides a mock function with given fields: ctx, collectionID

type MockBroker_DescribeCollectionInternal_Call

type MockBroker_DescribeCollectionInternal_Call struct {
	*mock.Call
}

MockBroker_DescribeCollectionInternal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeCollectionInternal'

func (*MockBroker_DescribeCollectionInternal_Call) Return

func (*MockBroker_DescribeCollectionInternal_Call) Run

type MockBroker_Expecter

type MockBroker_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockBroker_Expecter) DescribeCollectionInternal

func (_e *MockBroker_Expecter) DescribeCollectionInternal(ctx interface{}, collectionID interface{}) *MockBroker_DescribeCollectionInternal_Call

DescribeCollectionInternal is a helper method to define mock.On call

  • ctx context.Context
  • collectionID int64

func (*MockBroker_Expecter) HasCollection

func (_e *MockBroker_Expecter) HasCollection(ctx interface{}, collectionID interface{}) *MockBroker_HasCollection_Call

HasCollection is a helper method to define mock.On call

  • ctx context.Context
  • collectionID int64

func (*MockBroker_Expecter) ListDatabases

func (_e *MockBroker_Expecter) ListDatabases(ctx interface{}) *MockBroker_ListDatabases_Call

ListDatabases is a helper method to define mock.On call

  • ctx context.Context

func (*MockBroker_Expecter) ShowCollections

func (_e *MockBroker_Expecter) ShowCollections(ctx interface{}, dbName interface{}) *MockBroker_ShowCollections_Call

ShowCollections is a helper method to define mock.On call

  • ctx context.Context
  • dbName string

func (*MockBroker_Expecter) ShowPartitionsInternal

func (_e *MockBroker_Expecter) ShowPartitionsInternal(ctx interface{}, collectionID interface{}) *MockBroker_ShowPartitionsInternal_Call

ShowPartitionsInternal is a helper method to define mock.On call

  • ctx context.Context
  • collectionID int64

type MockBroker_HasCollection_Call

type MockBroker_HasCollection_Call struct {
	*mock.Call
}

MockBroker_HasCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCollection'

func (*MockBroker_HasCollection_Call) Return

func (*MockBroker_HasCollection_Call) Run

func (*MockBroker_HasCollection_Call) RunAndReturn

type MockBroker_ListDatabases_Call

type MockBroker_ListDatabases_Call struct {
	*mock.Call
}

MockBroker_ListDatabases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDatabases'

func (*MockBroker_ListDatabases_Call) Return

func (*MockBroker_ListDatabases_Call) Run

func (*MockBroker_ListDatabases_Call) RunAndReturn

type MockBroker_ShowCollections_Call

type MockBroker_ShowCollections_Call struct {
	*mock.Call
}

MockBroker_ShowCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowCollections'

func (*MockBroker_ShowCollections_Call) Return

func (*MockBroker_ShowCollections_Call) Run

func (*MockBroker_ShowCollections_Call) RunAndReturn

type MockBroker_ShowPartitionsInternal_Call

type MockBroker_ShowPartitionsInternal_Call struct {
	*mock.Call
}

MockBroker_ShowPartitionsInternal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPartitionsInternal'

func (*MockBroker_ShowPartitionsInternal_Call) Return

func (*MockBroker_ShowPartitionsInternal_Call) Run

func (*MockBroker_ShowPartitionsInternal_Call) RunAndReturn

Jump to

Keyboard shortcuts

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