mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) BeginTx

func (m *MockDatabase) BeginTx(arg0 context.Context, arg1 ...*driver.TxOptions) (driver.Tx, error)

BeginTx mocks base method.

func (*MockDatabase) Count

func (m *MockDatabase) Count(arg0 context.Context, arg1 string, arg2 driver.Filter) (int64, error)

Count mocks base method.

func (*MockDatabase) CreateBranch

func (m *MockDatabase) CreateBranch(arg0 context.Context, arg1 string) (*driver.CreateBranchResponse, error)

CreateBranch mocks base method.

func (*MockDatabase) CreateOrUpdateCollection

func (m *MockDatabase) CreateOrUpdateCollection(arg0 context.Context, arg1 string, arg2 driver.Schema, arg3 ...*driver.CreateCollectionOptions) error

CreateOrUpdateCollection mocks base method.

func (*MockDatabase) CreateOrUpdateCollections

func (m *MockDatabase) CreateOrUpdateCollections(arg0 context.Context, arg1 []driver.Schema, arg2 ...*driver.CreateCollectionOptions) (*driver.CreateOrUpdateCollectionsResponse, error)

CreateOrUpdateCollections mocks base method.

func (*MockDatabase) Delete

func (m *MockDatabase) Delete(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 ...*driver.DeleteOptions) (*driver.DeleteResponse, error)

Delete mocks base method.

func (*MockDatabase) DeleteBranch

func (m *MockDatabase) DeleteBranch(arg0 context.Context, arg1 string) (*driver.DeleteBranchResponse, error)

DeleteBranch mocks base method.

func (*MockDatabase) DescribeCollection

DescribeCollection mocks base method.

func (*MockDatabase) DropAllCollections

func (m *MockDatabase) DropAllCollections(arg0 context.Context, arg1 ...*driver.CollectionOptions) error

DropAllCollections mocks base method.

func (*MockDatabase) DropCollection

func (m *MockDatabase) DropCollection(arg0 context.Context, arg1 string, arg2 ...*driver.CollectionOptions) error

DropCollection mocks base method.

func (*MockDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatabase) Explain

func (m *MockDatabase) Explain(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 driver.Projection, arg4 ...*driver.ReadOptions) (*driver.ExplainResponse, error)

Explain mocks base method.

func (*MockDatabase) Insert

func (m *MockDatabase) Insert(arg0 context.Context, arg1 string, arg2 []driver.Document, arg3 ...*driver.InsertOptions) (*driver.InsertResponse, error)

Insert mocks base method.

func (*MockDatabase) ListCollections

func (m *MockDatabase) ListCollections(arg0 context.Context, arg1 ...*driver.CollectionOptions) ([]string, error)

ListCollections mocks base method.

func (*MockDatabase) Read

func (m *MockDatabase) Read(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 driver.Projection, arg4 ...*driver.ReadOptions) (driver.Iterator, error)

Read mocks base method.

func (*MockDatabase) Replace

func (m *MockDatabase) Replace(arg0 context.Context, arg1 string, arg2 []driver.Document, arg3 ...*driver.ReplaceOptions) (*driver.ReplaceResponse, error)

Replace mocks base method.

func (*MockDatabase) Search

Search mocks base method.

func (*MockDatabase) Update

func (m *MockDatabase) Update(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 driver.Update, arg4 ...*driver.UpdateOptions) (*driver.UpdateResponse, error)

Update mocks base method.

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) BeginTx

func (mr *MockDatabaseMockRecorder) BeginTx(arg0 interface{}, arg1 ...interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockDatabaseMockRecorder) Count

func (mr *MockDatabaseMockRecorder) Count(arg0, arg1, arg2 interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockDatabaseMockRecorder) CreateBranch

func (mr *MockDatabaseMockRecorder) CreateBranch(arg0, arg1 interface{}) *gomock.Call

CreateBranch indicates an expected call of CreateBranch.

func (*MockDatabaseMockRecorder) CreateOrUpdateCollection

func (mr *MockDatabaseMockRecorder) CreateOrUpdateCollection(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

CreateOrUpdateCollection indicates an expected call of CreateOrUpdateCollection.

func (*MockDatabaseMockRecorder) CreateOrUpdateCollections

func (mr *MockDatabaseMockRecorder) CreateOrUpdateCollections(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateOrUpdateCollections indicates an expected call of CreateOrUpdateCollections.

func (*MockDatabaseMockRecorder) Delete

func (mr *MockDatabaseMockRecorder) Delete(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockDatabaseMockRecorder) DeleteBranch

func (mr *MockDatabaseMockRecorder) DeleteBranch(arg0, arg1 interface{}) *gomock.Call

DeleteBranch indicates an expected call of DeleteBranch.

func (*MockDatabaseMockRecorder) DescribeCollection

func (mr *MockDatabaseMockRecorder) DescribeCollection(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DescribeCollection indicates an expected call of DescribeCollection.

func (*MockDatabaseMockRecorder) DropAllCollections

func (mr *MockDatabaseMockRecorder) DropAllCollections(arg0 interface{}, arg1 ...interface{}) *gomock.Call

DropAllCollections indicates an expected call of DropAllCollections.

func (*MockDatabaseMockRecorder) DropCollection

func (mr *MockDatabaseMockRecorder) DropCollection(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DropCollection indicates an expected call of DropCollection.

func (*MockDatabaseMockRecorder) Explain

func (mr *MockDatabaseMockRecorder) Explain(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

Explain indicates an expected call of Explain.

func (*MockDatabaseMockRecorder) Insert

func (mr *MockDatabaseMockRecorder) Insert(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockDatabaseMockRecorder) ListCollections

func (mr *MockDatabaseMockRecorder) ListCollections(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ListCollections indicates an expected call of ListCollections.

func (*MockDatabaseMockRecorder) Read

func (mr *MockDatabaseMockRecorder) Read(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockDatabaseMockRecorder) Replace

func (mr *MockDatabaseMockRecorder) Replace(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Replace indicates an expected call of Replace.

func (*MockDatabaseMockRecorder) Search

func (mr *MockDatabaseMockRecorder) Search(arg0, arg1, arg2 interface{}) *gomock.Call

Search indicates an expected call of Search.

func (*MockDatabaseMockRecorder) Update

func (mr *MockDatabaseMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockDriver

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

MockDriver is a mock of Driver interface.

func NewMockDriver

func NewMockDriver(ctrl *gomock.Controller) *MockDriver

NewMockDriver creates a new mock instance.

func (*MockDriver) Close

func (m *MockDriver) Close() error

Close mocks base method.

func (*MockDriver) CreateAppKey

func (m *MockDriver) CreateAppKey(arg0 context.Context, arg1, arg2, arg3 string) (*driver.AppKey, error)

CreateAppKey mocks base method.

func (*MockDriver) CreateGlobalAppKey

func (m *MockDriver) CreateGlobalAppKey(arg0 context.Context, arg1, arg2 string) (*driver.GlobalAppKey, error)

CreateGlobalAppKey mocks base method.

func (*MockDriver) CreateProject

func (m *MockDriver) CreateProject(arg0 context.Context, arg1 string, arg2 ...*driver.CreateProjectOptions) (*driver.CreateProjectResponse, error)

CreateProject mocks base method.

func (*MockDriver) DeleteAppKey

func (m *MockDriver) DeleteAppKey(arg0 context.Context, arg1, arg2 string) error

DeleteAppKey mocks base method.

func (*MockDriver) DeleteGlobalAppKey

func (m *MockDriver) DeleteGlobalAppKey(arg0 context.Context, arg1 string) error

DeleteGlobalAppKey mocks base method.

func (*MockDriver) DeleteProject

func (m *MockDriver) DeleteProject(arg0 context.Context, arg1 string, arg2 ...*driver.DeleteProjectOptions) (*driver.DeleteProjectResponse, error)

DeleteProject mocks base method.

func (*MockDriver) DescribeDatabase

func (m *MockDriver) DescribeDatabase(arg0 context.Context, arg1 string, arg2 ...*driver.DescribeProjectOptions) (*driver.DescribeDatabaseResponse, error)

DescribeDatabase mocks base method.

func (*MockDriver) EXPECT

func (m *MockDriver) EXPECT() *MockDriverMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDriver) Health

func (m *MockDriver) Health(arg0 context.Context) (*driver.HealthResponse, error)

Health mocks base method.

func (*MockDriver) Info

func (m *MockDriver) Info(arg0 context.Context) (*driver.InfoResponse, error)

Info mocks base method.

func (*MockDriver) ListAppKeys

func (m *MockDriver) ListAppKeys(arg0 context.Context, arg1 string) ([]*driver.AppKey, error)

ListAppKeys mocks base method.

func (*MockDriver) ListGlobalAppKeys

func (m *MockDriver) ListGlobalAppKeys(arg0 context.Context) ([]*driver.GlobalAppKey, error)

ListGlobalAppKeys mocks base method.

func (*MockDriver) ListProjects

func (m *MockDriver) ListProjects(arg0 context.Context) ([]string, error)

ListProjects mocks base method.

func (*MockDriver) RotateAppKeySecret

func (m *MockDriver) RotateAppKeySecret(arg0 context.Context, arg1, arg2 string) (*driver.AppKey, error)

RotateAppKeySecret mocks base method.

func (*MockDriver) RotateGlobalAppKeySecret

func (m *MockDriver) RotateGlobalAppKeySecret(arg0 context.Context, arg1 string) (*driver.GlobalAppKey, error)

RotateGlobalAppKeySecret mocks base method.

func (*MockDriver) UpdateAppKey

func (m *MockDriver) UpdateAppKey(arg0 context.Context, arg1, arg2, arg3, arg4 string) (*driver.AppKey, error)

UpdateAppKey mocks base method.

func (*MockDriver) UpdateGlobalAppKey

func (m *MockDriver) UpdateGlobalAppKey(arg0 context.Context, arg1, arg2, arg3 string) (*driver.GlobalAppKey, error)

UpdateGlobalAppKey mocks base method.

func (*MockDriver) UseDatabase

func (m *MockDriver) UseDatabase(arg0 string) driver.Database

UseDatabase mocks base method.

func (*MockDriver) UseSearch

func (m *MockDriver) UseSearch(arg0 string) driver.SearchClient

UseSearch mocks base method.

type MockDriverMockRecorder

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

MockDriverMockRecorder is the mock recorder for MockDriver.

func (*MockDriverMockRecorder) Close

func (mr *MockDriverMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDriverMockRecorder) CreateAppKey

func (mr *MockDriverMockRecorder) CreateAppKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateAppKey indicates an expected call of CreateAppKey.

func (*MockDriverMockRecorder) CreateGlobalAppKey

func (mr *MockDriverMockRecorder) CreateGlobalAppKey(arg0, arg1, arg2 interface{}) *gomock.Call

CreateGlobalAppKey indicates an expected call of CreateGlobalAppKey.

func (*MockDriverMockRecorder) CreateProject

func (mr *MockDriverMockRecorder) CreateProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateProject indicates an expected call of CreateProject.

func (*MockDriverMockRecorder) DeleteAppKey

func (mr *MockDriverMockRecorder) DeleteAppKey(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteAppKey indicates an expected call of DeleteAppKey.

func (*MockDriverMockRecorder) DeleteGlobalAppKey

func (mr *MockDriverMockRecorder) DeleteGlobalAppKey(arg0, arg1 interface{}) *gomock.Call

DeleteGlobalAppKey indicates an expected call of DeleteGlobalAppKey.

func (*MockDriverMockRecorder) DeleteProject

func (mr *MockDriverMockRecorder) DeleteProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DeleteProject indicates an expected call of DeleteProject.

func (*MockDriverMockRecorder) DescribeDatabase

func (mr *MockDriverMockRecorder) DescribeDatabase(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DescribeDatabase indicates an expected call of DescribeDatabase.

func (*MockDriverMockRecorder) Health

func (mr *MockDriverMockRecorder) Health(arg0 interface{}) *gomock.Call

Health indicates an expected call of Health.

func (*MockDriverMockRecorder) Info

func (mr *MockDriverMockRecorder) Info(arg0 interface{}) *gomock.Call

Info indicates an expected call of Info.

func (*MockDriverMockRecorder) ListAppKeys

func (mr *MockDriverMockRecorder) ListAppKeys(arg0, arg1 interface{}) *gomock.Call

ListAppKeys indicates an expected call of ListAppKeys.

func (*MockDriverMockRecorder) ListGlobalAppKeys

func (mr *MockDriverMockRecorder) ListGlobalAppKeys(arg0 interface{}) *gomock.Call

ListGlobalAppKeys indicates an expected call of ListGlobalAppKeys.

func (*MockDriverMockRecorder) ListProjects

func (mr *MockDriverMockRecorder) ListProjects(arg0 interface{}) *gomock.Call

ListProjects indicates an expected call of ListProjects.

func (*MockDriverMockRecorder) RotateAppKeySecret

func (mr *MockDriverMockRecorder) RotateAppKeySecret(arg0, arg1, arg2 interface{}) *gomock.Call

RotateAppKeySecret indicates an expected call of RotateAppKeySecret.

func (*MockDriverMockRecorder) RotateGlobalAppKeySecret

func (mr *MockDriverMockRecorder) RotateGlobalAppKeySecret(arg0, arg1 interface{}) *gomock.Call

RotateGlobalAppKeySecret indicates an expected call of RotateGlobalAppKeySecret.

func (*MockDriverMockRecorder) UpdateAppKey

func (mr *MockDriverMockRecorder) UpdateAppKey(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

UpdateAppKey indicates an expected call of UpdateAppKey.

func (*MockDriverMockRecorder) UpdateGlobalAppKey

func (mr *MockDriverMockRecorder) UpdateGlobalAppKey(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpdateGlobalAppKey indicates an expected call of UpdateGlobalAppKey.

func (*MockDriverMockRecorder) UseDatabase

func (mr *MockDriverMockRecorder) UseDatabase(arg0 interface{}) *gomock.Call

UseDatabase indicates an expected call of UseDatabase.

func (*MockDriverMockRecorder) UseSearch

func (mr *MockDriverMockRecorder) UseSearch(arg0 interface{}) *gomock.Call

UseSearch indicates an expected call of UseSearch.

type MockIterator

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

MockIterator is a mock of Iterator interface.

func NewMockIterator

func NewMockIterator(ctrl *gomock.Controller) *MockIterator

NewMockIterator creates a new mock instance.

func (*MockIterator) Close

func (m *MockIterator) Close()

Close mocks base method.

func (*MockIterator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIterator) Err

func (m *MockIterator) Err() error

Err mocks base method.

func (*MockIterator) Next

func (m *MockIterator) Next(arg0 *driver.Document) bool

Next mocks base method.

type MockIteratorMockRecorder

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

MockIteratorMockRecorder is the mock recorder for MockIterator.

func (*MockIteratorMockRecorder) Close

func (mr *MockIteratorMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockIteratorMockRecorder) Err

Err indicates an expected call of Err.

func (*MockIteratorMockRecorder) Next

func (mr *MockIteratorMockRecorder) Next(arg0 interface{}) *gomock.Call

Next indicates an expected call of Next.

type MockSearchClient

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

MockSearchClient is a mock of SearchClient interface.

func NewMockSearchClient

func NewMockSearchClient(ctrl *gomock.Controller) *MockSearchClient

NewMockSearchClient creates a new mock instance.

func (*MockSearchClient) Create

func (m *MockSearchClient) Create(arg0 context.Context, arg1 string, arg2 []driver.Document) ([]*api.DocStatus, error)

Create mocks base method.

func (*MockSearchClient) CreateByID

func (m *MockSearchClient) CreateByID(arg0 context.Context, arg1, arg2 string, arg3 driver.Document) error

CreateByID mocks base method.

func (*MockSearchClient) CreateOrReplace

func (m *MockSearchClient) CreateOrReplace(arg0 context.Context, arg1 string, arg2 []driver.Document) ([]*api.DocStatus, error)

CreateOrReplace mocks base method.

func (*MockSearchClient) CreateOrUpdateIndex

func (m *MockSearchClient) CreateOrUpdateIndex(arg0 context.Context, arg1 string, arg2 driver.Schema) error

CreateOrUpdateIndex mocks base method.

func (*MockSearchClient) Delete

func (m *MockSearchClient) Delete(arg0 context.Context, arg1 string, arg2 []string) ([]*api.DocStatus, error)

Delete mocks base method.

func (*MockSearchClient) DeleteByQuery

func (m *MockSearchClient) DeleteByQuery(arg0 context.Context, arg1 string, arg2 driver.Filter) (int32, error)

DeleteByQuery mocks base method.

func (*MockSearchClient) DeleteIndex

func (m *MockSearchClient) DeleteIndex(arg0 context.Context, arg1 string) error

DeleteIndex mocks base method.

func (*MockSearchClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSearchClient) Get

func (m *MockSearchClient) Get(arg0 context.Context, arg1 string, arg2 []string) ([]*api.SearchHit, error)

Get mocks base method.

func (*MockSearchClient) GetIndex

func (m *MockSearchClient) GetIndex(arg0 context.Context, arg1 string) (*api.IndexInfo, error)

GetIndex mocks base method.

func (*MockSearchClient) ListIndexes

func (m *MockSearchClient) ListIndexes(arg0 context.Context, arg1 *api.IndexSource) ([]*api.IndexInfo, error)

ListIndexes mocks base method.

func (*MockSearchClient) Search

Search mocks base method.

func (*MockSearchClient) Update

func (m *MockSearchClient) Update(arg0 context.Context, arg1 string, arg2 []driver.Document) ([]*api.DocStatus, error)

Update mocks base method.

type MockSearchClientMockRecorder

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

MockSearchClientMockRecorder is the mock recorder for MockSearchClient.

func (*MockSearchClientMockRecorder) Create

func (mr *MockSearchClientMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSearchClientMockRecorder) CreateByID

func (mr *MockSearchClientMockRecorder) CreateByID(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateByID indicates an expected call of CreateByID.

func (*MockSearchClientMockRecorder) CreateOrReplace

func (mr *MockSearchClientMockRecorder) CreateOrReplace(arg0, arg1, arg2 interface{}) *gomock.Call

CreateOrReplace indicates an expected call of CreateOrReplace.

func (*MockSearchClientMockRecorder) CreateOrUpdateIndex

func (mr *MockSearchClientMockRecorder) CreateOrUpdateIndex(arg0, arg1, arg2 interface{}) *gomock.Call

CreateOrUpdateIndex indicates an expected call of CreateOrUpdateIndex.

func (*MockSearchClientMockRecorder) Delete

func (mr *MockSearchClientMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSearchClientMockRecorder) DeleteByQuery

func (mr *MockSearchClientMockRecorder) DeleteByQuery(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteByQuery indicates an expected call of DeleteByQuery.

func (*MockSearchClientMockRecorder) DeleteIndex

func (mr *MockSearchClientMockRecorder) DeleteIndex(arg0, arg1 interface{}) *gomock.Call

DeleteIndex indicates an expected call of DeleteIndex.

func (*MockSearchClientMockRecorder) Get

func (mr *MockSearchClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSearchClientMockRecorder) GetIndex

func (mr *MockSearchClientMockRecorder) GetIndex(arg0, arg1 interface{}) *gomock.Call

GetIndex indicates an expected call of GetIndex.

func (*MockSearchClientMockRecorder) ListIndexes

func (mr *MockSearchClientMockRecorder) ListIndexes(arg0, arg1 interface{}) *gomock.Call

ListIndexes indicates an expected call of ListIndexes.

func (*MockSearchClientMockRecorder) Search

func (mr *MockSearchClientMockRecorder) Search(arg0, arg1, arg2 interface{}) *gomock.Call

Search indicates an expected call of Search.

func (*MockSearchClientMockRecorder) Update

func (mr *MockSearchClientMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockSearchIndexResultIterator

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

MockSearchIndexResultIterator is a mock of SearchIndexResultIterator interface.

func NewMockSearchIndexResultIterator

func NewMockSearchIndexResultIterator(ctrl *gomock.Controller) *MockSearchIndexResultIterator

NewMockSearchIndexResultIterator creates a new mock instance.

func (*MockSearchIndexResultIterator) Close

func (m *MockSearchIndexResultIterator) Close()

Close mocks base method.

func (*MockSearchIndexResultIterator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSearchIndexResultIterator) Err

Err mocks base method.

func (*MockSearchIndexResultIterator) Next

Next mocks base method.

type MockSearchIndexResultIteratorMockRecorder

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

MockSearchIndexResultIteratorMockRecorder is the mock recorder for MockSearchIndexResultIterator.

func (*MockSearchIndexResultIteratorMockRecorder) Close

Close indicates an expected call of Close.

func (*MockSearchIndexResultIteratorMockRecorder) Err

Err indicates an expected call of Err.

func (*MockSearchIndexResultIteratorMockRecorder) Next

func (mr *MockSearchIndexResultIteratorMockRecorder) Next(arg0 interface{}) *gomock.Call

Next indicates an expected call of Next.

type MockSearchResultIterator

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

MockSearchResultIterator is a mock of SearchResultIterator interface.

func NewMockSearchResultIterator

func NewMockSearchResultIterator(ctrl *gomock.Controller) *MockSearchResultIterator

NewMockSearchResultIterator creates a new mock instance.

func (*MockSearchResultIterator) Close

func (m *MockSearchResultIterator) Close()

Close mocks base method.

func (*MockSearchResultIterator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSearchResultIterator) Err

Err mocks base method.

func (*MockSearchResultIterator) Next

Next mocks base method.

type MockSearchResultIteratorMockRecorder

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

MockSearchResultIteratorMockRecorder is the mock recorder for MockSearchResultIterator.

func (*MockSearchResultIteratorMockRecorder) Close

Close indicates an expected call of Close.

func (*MockSearchResultIteratorMockRecorder) Err

Err indicates an expected call of Err.

func (*MockSearchResultIteratorMockRecorder) Next

func (mr *MockSearchResultIteratorMockRecorder) Next(arg0 interface{}) *gomock.Call

Next indicates an expected call of Next.

type MockTx

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

MockTx is a mock of Tx interface.

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance.

func (*MockTx) BeginTx

func (m *MockTx) BeginTx(arg0 context.Context, arg1 ...*driver.TxOptions) (driver.Tx, error)

BeginTx mocks base method.

func (*MockTx) Commit

func (m *MockTx) Commit(arg0 context.Context) error

Commit mocks base method.

func (*MockTx) Count

func (m *MockTx) Count(arg0 context.Context, arg1 string, arg2 driver.Filter) (int64, error)

Count mocks base method.

func (*MockTx) CreateBranch

func (m *MockTx) CreateBranch(arg0 context.Context, arg1 string) (*driver.CreateBranchResponse, error)

CreateBranch mocks base method.

func (*MockTx) CreateOrUpdateCollection

func (m *MockTx) CreateOrUpdateCollection(arg0 context.Context, arg1 string, arg2 driver.Schema, arg3 ...*driver.CreateCollectionOptions) error

CreateOrUpdateCollection mocks base method.

func (*MockTx) CreateOrUpdateCollections

func (m *MockTx) CreateOrUpdateCollections(arg0 context.Context, arg1 []driver.Schema, arg2 ...*driver.CreateCollectionOptions) (*driver.CreateOrUpdateCollectionsResponse, error)

CreateOrUpdateCollections mocks base method.

func (*MockTx) Delete

func (m *MockTx) Delete(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 ...*driver.DeleteOptions) (*driver.DeleteResponse, error)

Delete mocks base method.

func (*MockTx) DeleteBranch

func (m *MockTx) DeleteBranch(arg0 context.Context, arg1 string) (*driver.DeleteBranchResponse, error)

DeleteBranch mocks base method.

func (*MockTx) DescribeCollection

func (m *MockTx) DescribeCollection(arg0 context.Context, arg1 string, arg2 ...*driver.DescribeCollectionOptions) (*driver.DescribeCollectionResponse, error)

DescribeCollection mocks base method.

func (*MockTx) DropAllCollections

func (m *MockTx) DropAllCollections(arg0 context.Context, arg1 ...*driver.CollectionOptions) error

DropAllCollections mocks base method.

func (*MockTx) DropCollection

func (m *MockTx) DropCollection(arg0 context.Context, arg1 string, arg2 ...*driver.CollectionOptions) error

DropCollection mocks base method.

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTx) Explain

func (m *MockTx) Explain(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 driver.Projection, arg4 ...*driver.ReadOptions) (*driver.ExplainResponse, error)

Explain mocks base method.

func (*MockTx) Insert

func (m *MockTx) Insert(arg0 context.Context, arg1 string, arg2 []driver.Document, arg3 ...*driver.InsertOptions) (*driver.InsertResponse, error)

Insert mocks base method.

func (*MockTx) ListCollections

func (m *MockTx) ListCollections(arg0 context.Context, arg1 ...*driver.CollectionOptions) ([]string, error)

ListCollections mocks base method.

func (*MockTx) Read

func (m *MockTx) Read(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 driver.Projection, arg4 ...*driver.ReadOptions) (driver.Iterator, error)

Read mocks base method.

func (*MockTx) Replace

func (m *MockTx) Replace(arg0 context.Context, arg1 string, arg2 []driver.Document, arg3 ...*driver.ReplaceOptions) (*driver.ReplaceResponse, error)

Replace mocks base method.

func (*MockTx) Rollback

func (m *MockTx) Rollback(arg0 context.Context) error

Rollback mocks base method.

func (*MockTx) Search

Search mocks base method.

func (*MockTx) Update

func (m *MockTx) Update(arg0 context.Context, arg1 string, arg2 driver.Filter, arg3 driver.Update, arg4 ...*driver.UpdateOptions) (*driver.UpdateResponse, error)

Update mocks base method.

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx.

func (*MockTxMockRecorder) BeginTx

func (mr *MockTxMockRecorder) BeginTx(arg0 interface{}, arg1 ...interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockTxMockRecorder) Commit

func (mr *MockTxMockRecorder) Commit(arg0 interface{}) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxMockRecorder) Count

func (mr *MockTxMockRecorder) Count(arg0, arg1, arg2 interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockTxMockRecorder) CreateBranch

func (mr *MockTxMockRecorder) CreateBranch(arg0, arg1 interface{}) *gomock.Call

CreateBranch indicates an expected call of CreateBranch.

func (*MockTxMockRecorder) CreateOrUpdateCollection

func (mr *MockTxMockRecorder) CreateOrUpdateCollection(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

CreateOrUpdateCollection indicates an expected call of CreateOrUpdateCollection.

func (*MockTxMockRecorder) CreateOrUpdateCollections

func (mr *MockTxMockRecorder) CreateOrUpdateCollections(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

CreateOrUpdateCollections indicates an expected call of CreateOrUpdateCollections.

func (*MockTxMockRecorder) Delete

func (mr *MockTxMockRecorder) Delete(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTxMockRecorder) DeleteBranch

func (mr *MockTxMockRecorder) DeleteBranch(arg0, arg1 interface{}) *gomock.Call

DeleteBranch indicates an expected call of DeleteBranch.

func (*MockTxMockRecorder) DescribeCollection

func (mr *MockTxMockRecorder) DescribeCollection(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DescribeCollection indicates an expected call of DescribeCollection.

func (*MockTxMockRecorder) DropAllCollections

func (mr *MockTxMockRecorder) DropAllCollections(arg0 interface{}, arg1 ...interface{}) *gomock.Call

DropAllCollections indicates an expected call of DropAllCollections.

func (*MockTxMockRecorder) DropCollection

func (mr *MockTxMockRecorder) DropCollection(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

DropCollection indicates an expected call of DropCollection.

func (*MockTxMockRecorder) Explain

func (mr *MockTxMockRecorder) Explain(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

Explain indicates an expected call of Explain.

func (*MockTxMockRecorder) Insert

func (mr *MockTxMockRecorder) Insert(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockTxMockRecorder) ListCollections

func (mr *MockTxMockRecorder) ListCollections(arg0 interface{}, arg1 ...interface{}) *gomock.Call

ListCollections indicates an expected call of ListCollections.

func (*MockTxMockRecorder) Read

func (mr *MockTxMockRecorder) Read(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockTxMockRecorder) Replace

func (mr *MockTxMockRecorder) Replace(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Replace indicates an expected call of Replace.

func (*MockTxMockRecorder) Rollback

func (mr *MockTxMockRecorder) Rollback(arg0 interface{}) *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockTxMockRecorder) Search

func (mr *MockTxMockRecorder) Search(arg0, arg1, arg2 interface{}) *gomock.Call

Search indicates an expected call of Search.

func (*MockTxMockRecorder) Update

func (mr *MockTxMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

Update indicates an expected call of Update.

Directories

Path Synopsis
Package api is a generated GoMock package.
Package api is a generated GoMock package.

Jump to

Keyboard shortcuts

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