mock_pmongo

package
v0.0.0-...-da5174d Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mock_pmongo is a generated GoMock package.

Package mock_pmongo is a generated GoMock package.

Package mock_pmongo is a generated GoMock package.

Package mock_pmongo is a generated GoMock package.

Package mock_pmongo is a generated GoMock package.

Package mock_pmongo is a generated GoMock package.

Package mock_pmongo is a generated GoMock package.

Package mock_pmongo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBucketInterface

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

MockBucketInterface is a mock of BucketInterface interface.

func NewMockBucketInterface

func NewMockBucketInterface(ctrl *gomock.Controller) *MockBucketInterface

NewMockBucketInterface creates a new mock instance.

func (*MockBucketInterface) Delete

func (m *MockBucketInterface) Delete(fileID interface{}) error

Delete mocks base method.

func (*MockBucketInterface) DownloadToStream

func (m *MockBucketInterface) DownloadToStream(fileID interface{}, stream io.Writer) (int64, error)

DownloadToStream mocks base method.

func (*MockBucketInterface) DownloadToStreamByName

func (m *MockBucketInterface) DownloadToStreamByName(filename string, stream io.Writer, opts ...*options.NameOptions) (int64, error)

DownloadToStreamByName mocks base method.

func (*MockBucketInterface) Drop

func (m *MockBucketInterface) Drop() error

Drop mocks base method.

func (*MockBucketInterface) EXPECT

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

func (*MockBucketInterface) Find

func (m *MockBucketInterface) Find(filter interface{}, opts ...*options.GridFSFindOptions) (pmongo.CursorInterface, error)

Find mocks base method.

func (*MockBucketInterface) OpenDownloadStream

func (m *MockBucketInterface) OpenDownloadStream(fileID interface{}) (pmongo.DownloadStreamInterface, error)

OpenDownloadStream mocks base method.

func (*MockBucketInterface) OpenDownloadStreamByName

func (m *MockBucketInterface) OpenDownloadStreamByName(filename string, opts ...*options.NameOptions) (pmongo.DownloadStreamInterface, error)

OpenDownloadStreamByName mocks base method.

func (*MockBucketInterface) OpenUploadStream

func (m *MockBucketInterface) OpenUploadStream(filename string, opts ...*options.UploadOptions) (pmongo.UploadStreamInterface, error)

OpenUploadStream mocks base method.

func (*MockBucketInterface) OpenUploadStreamWithID

func (m *MockBucketInterface) OpenUploadStreamWithID(fileID interface{}, filename string, opts ...*options.UploadOptions) (pmongo.UploadStreamInterface, error)

OpenUploadStreamWithID mocks base method.

func (*MockBucketInterface) Rename

func (m *MockBucketInterface) Rename(fileID interface{}, newFilename string) error

Rename mocks base method.

func (*MockBucketInterface) SetReadDeadline

func (m *MockBucketInterface) SetReadDeadline(t time.Time) error

SetReadDeadline mocks base method.

func (*MockBucketInterface) SetWriteDeadline

func (m *MockBucketInterface) SetWriteDeadline(t time.Time) error

SetWriteDeadline mocks base method.

func (*MockBucketInterface) UploadFromStream

func (m *MockBucketInterface) UploadFromStream(filename string, source io.Reader, opts ...*options.UploadOptions) (primitive.ObjectID, error)

UploadFromStream mocks base method.

func (*MockBucketInterface) UploadFromStreamWithID

func (m *MockBucketInterface) UploadFromStreamWithID(fileID interface{}, filename string, source io.Reader, opts ...*options.UploadOptions) error

UploadFromStreamWithID mocks base method.

type MockBucketInterfaceMockRecorder

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

MockBucketInterfaceMockRecorder is the mock recorder for MockBucketInterface.

func (*MockBucketInterfaceMockRecorder) Delete

func (mr *MockBucketInterfaceMockRecorder) Delete(fileID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockBucketInterfaceMockRecorder) DownloadToStream

func (mr *MockBucketInterfaceMockRecorder) DownloadToStream(fileID, stream interface{}) *gomock.Call

DownloadToStream indicates an expected call of DownloadToStream.

func (*MockBucketInterfaceMockRecorder) DownloadToStreamByName

func (mr *MockBucketInterfaceMockRecorder) DownloadToStreamByName(filename, stream interface{}, opts ...interface{}) *gomock.Call

DownloadToStreamByName indicates an expected call of DownloadToStreamByName.

func (*MockBucketInterfaceMockRecorder) Drop

Drop indicates an expected call of Drop.

func (*MockBucketInterfaceMockRecorder) Find

func (mr *MockBucketInterfaceMockRecorder) Find(filter interface{}, opts ...interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockBucketInterfaceMockRecorder) OpenDownloadStream

func (mr *MockBucketInterfaceMockRecorder) OpenDownloadStream(fileID interface{}) *gomock.Call

OpenDownloadStream indicates an expected call of OpenDownloadStream.

func (*MockBucketInterfaceMockRecorder) OpenDownloadStreamByName

func (mr *MockBucketInterfaceMockRecorder) OpenDownloadStreamByName(filename interface{}, opts ...interface{}) *gomock.Call

OpenDownloadStreamByName indicates an expected call of OpenDownloadStreamByName.

func (*MockBucketInterfaceMockRecorder) OpenUploadStream

func (mr *MockBucketInterfaceMockRecorder) OpenUploadStream(filename interface{}, opts ...interface{}) *gomock.Call

OpenUploadStream indicates an expected call of OpenUploadStream.

func (*MockBucketInterfaceMockRecorder) OpenUploadStreamWithID

func (mr *MockBucketInterfaceMockRecorder) OpenUploadStreamWithID(fileID, filename interface{}, opts ...interface{}) *gomock.Call

OpenUploadStreamWithID indicates an expected call of OpenUploadStreamWithID.

func (*MockBucketInterfaceMockRecorder) Rename

func (mr *MockBucketInterfaceMockRecorder) Rename(fileID, newFilename interface{}) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockBucketInterfaceMockRecorder) SetReadDeadline

func (mr *MockBucketInterfaceMockRecorder) SetReadDeadline(t interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockBucketInterfaceMockRecorder) SetWriteDeadline

func (mr *MockBucketInterfaceMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockBucketInterfaceMockRecorder) UploadFromStream

func (mr *MockBucketInterfaceMockRecorder) UploadFromStream(filename, source interface{}, opts ...interface{}) *gomock.Call

UploadFromStream indicates an expected call of UploadFromStream.

func (*MockBucketInterfaceMockRecorder) UploadFromStreamWithID

func (mr *MockBucketInterfaceMockRecorder) UploadFromStreamWithID(fileID, filename, source interface{}, opts ...interface{}) *gomock.Call

UploadFromStreamWithID indicates an expected call of UploadFromStreamWithID.

type MockClientInterface

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

MockClientInterface is a mock of ClientInterface interface.

func NewMockClientInterface

func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface

NewMockClientInterface creates a new mock instance.

func (*MockClientInterface) Connect

func (m *MockClientInterface) Connect(ctx context.Context) error

Connect mocks base method.

func (*MockClientInterface) Database

Database mocks base method.

func (*MockClientInterface) Disconnect

func (m *MockClientInterface) Disconnect(ctx context.Context) error

Disconnect mocks base method.

func (*MockClientInterface) EXPECT

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

func (*MockClientInterface) ListDatabaseNames

func (m *MockClientInterface) ListDatabaseNames(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions) ([]string, error)

ListDatabaseNames mocks base method.

func (*MockClientInterface) ListDatabases

func (m *MockClientInterface) ListDatabases(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions) (mongo.ListDatabasesResult, error)

ListDatabases mocks base method.

func (*MockClientInterface) NumberSessionsInProgress

func (m *MockClientInterface) NumberSessionsInProgress() int

NumberSessionsInProgress mocks base method.

func (*MockClientInterface) Ping

Ping mocks base method.

func (*MockClientInterface) StartSession

StartSession mocks base method.

func (*MockClientInterface) UseSession

func (m *MockClientInterface) UseSession(ctx context.Context, fn func(mongo.SessionContext) error) error

UseSession mocks base method.

func (*MockClientInterface) UseSessionWithOptions

func (m *MockClientInterface) UseSessionWithOptions(ctx context.Context, opts *options.SessionOptions, fn func(mongo.SessionContext) error) error

UseSessionWithOptions mocks base method.

func (*MockClientInterface) Watch

func (m *MockClientInterface) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (*mongo.ChangeStream, error)

Watch mocks base method.

type MockClientInterfaceMockRecorder

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

MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.

func (*MockClientInterfaceMockRecorder) Connect

func (mr *MockClientInterfaceMockRecorder) Connect(ctx interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockClientInterfaceMockRecorder) Database

func (mr *MockClientInterfaceMockRecorder) Database(name interface{}, opts ...interface{}) *gomock.Call

Database indicates an expected call of Database.

func (*MockClientInterfaceMockRecorder) Disconnect

func (mr *MockClientInterfaceMockRecorder) Disconnect(ctx interface{}) *gomock.Call

Disconnect indicates an expected call of Disconnect.

func (*MockClientInterfaceMockRecorder) ListDatabaseNames

func (mr *MockClientInterfaceMockRecorder) ListDatabaseNames(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListDatabaseNames indicates an expected call of ListDatabaseNames.

func (*MockClientInterfaceMockRecorder) ListDatabases

func (mr *MockClientInterfaceMockRecorder) ListDatabases(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListDatabases indicates an expected call of ListDatabases.

func (*MockClientInterfaceMockRecorder) NumberSessionsInProgress

func (mr *MockClientInterfaceMockRecorder) NumberSessionsInProgress() *gomock.Call

NumberSessionsInProgress indicates an expected call of NumberSessionsInProgress.

func (*MockClientInterfaceMockRecorder) Ping

func (mr *MockClientInterfaceMockRecorder) Ping(ctx, rp interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockClientInterfaceMockRecorder) StartSession

func (mr *MockClientInterfaceMockRecorder) StartSession(opts ...interface{}) *gomock.Call

StartSession indicates an expected call of StartSession.

func (*MockClientInterfaceMockRecorder) UseSession

func (mr *MockClientInterfaceMockRecorder) UseSession(ctx, fn interface{}) *gomock.Call

UseSession indicates an expected call of UseSession.

func (*MockClientInterfaceMockRecorder) UseSessionWithOptions

func (mr *MockClientInterfaceMockRecorder) UseSessionWithOptions(ctx, opts, fn interface{}) *gomock.Call

UseSessionWithOptions indicates an expected call of UseSessionWithOptions.

func (*MockClientInterfaceMockRecorder) Watch

func (mr *MockClientInterfaceMockRecorder) Watch(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type MockCollectionInterface

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

MockCollectionInterface is a mock of CollectionInterface interface.

func NewMockCollectionInterface

func NewMockCollectionInterface(ctrl *gomock.Controller) *MockCollectionInterface

NewMockCollectionInterface creates a new mock instance.

func (*MockCollectionInterface) Aggregate

func (m *MockCollectionInterface) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (pmongo.CursorInterface, error)

Aggregate mocks base method.

func (*MockCollectionInterface) BulkWrite

BulkWrite mocks base method.

func (*MockCollectionInterface) Clone

Clone mocks base method.

func (*MockCollectionInterface) CountDocuments

func (m *MockCollectionInterface) CountDocuments(ctx context.Context, filter interface{}, opts ...*options.CountOptions) (int64, error)

CountDocuments mocks base method.

func (*MockCollectionInterface) Database

Database mocks base method.

func (*MockCollectionInterface) DeleteMany

func (m *MockCollectionInterface) DeleteMany(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteMany mocks base method.

func (*MockCollectionInterface) DeleteOne

func (m *MockCollectionInterface) DeleteOne(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteOne mocks base method.

func (*MockCollectionInterface) Distinct

func (m *MockCollectionInterface) Distinct(ctx context.Context, fieldName string, filter interface{}, opts ...*options.DistinctOptions) ([]interface{}, error)

Distinct mocks base method.

func (*MockCollectionInterface) Drop

Drop mocks base method.

func (*MockCollectionInterface) EXPECT

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

func (*MockCollectionInterface) EstimatedDocumentCount

func (m *MockCollectionInterface) EstimatedDocumentCount(ctx context.Context, opts ...*options.EstimatedDocumentCountOptions) (int64, error)

EstimatedDocumentCount mocks base method.

func (*MockCollectionInterface) Find

func (m *MockCollectionInterface) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) (pmongo.CursorInterface, error)

Find mocks base method.

func (*MockCollectionInterface) FindOne

func (m *MockCollectionInterface) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) pmongo.SingleResultInterface

FindOne mocks base method.

func (*MockCollectionInterface) FindOneAndDelete

func (m *MockCollectionInterface) FindOneAndDelete(ctx context.Context, filter interface{}, opts ...*options.FindOneAndDeleteOptions) pmongo.SingleResultInterface

FindOneAndDelete mocks base method.

func (*MockCollectionInterface) FindOneAndReplace

func (m *MockCollectionInterface) FindOneAndReplace(ctx context.Context, filter, replacement interface{}, opts ...*options.FindOneAndReplaceOptions) pmongo.SingleResultInterface

FindOneAndReplace mocks base method.

func (*MockCollectionInterface) FindOneAndUpdate

func (m *MockCollectionInterface) FindOneAndUpdate(ctx context.Context, filter, update interface{}, opts ...*options.FindOneAndUpdateOptions) pmongo.SingleResultInterface

FindOneAndUpdate mocks base method.

func (*MockCollectionInterface) Indexes

Indexes mocks base method.

func (*MockCollectionInterface) InsertMany

func (m *MockCollectionInterface) InsertMany(ctx context.Context, documents []interface{}, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)

InsertMany mocks base method.

func (*MockCollectionInterface) InsertOne

func (m *MockCollectionInterface) InsertOne(ctx context.Context, document interface{}, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)

InsertOne mocks base method.

func (*MockCollectionInterface) Name

func (m *MockCollectionInterface) Name() string

Name mocks base method.

func (*MockCollectionInterface) ReplaceOne

func (m *MockCollectionInterface) ReplaceOne(ctx context.Context, filter, replacement interface{}, opts ...*options.ReplaceOptions) (*mongo.UpdateResult, error)

ReplaceOne mocks base method.

func (*MockCollectionInterface) UpdateMany

func (m *MockCollectionInterface) UpdateMany(ctx context.Context, filter, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateMany mocks base method.

func (*MockCollectionInterface) UpdateOne

func (m *MockCollectionInterface) UpdateOne(ctx context.Context, filter, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateOne mocks base method.

func (*MockCollectionInterface) Watch

func (m *MockCollectionInterface) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (*mongo.ChangeStream, error)

Watch mocks base method.

type MockCollectionInterfaceMockRecorder

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

MockCollectionInterfaceMockRecorder is the mock recorder for MockCollectionInterface.

func (*MockCollectionInterfaceMockRecorder) Aggregate

func (mr *MockCollectionInterfaceMockRecorder) Aggregate(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockCollectionInterfaceMockRecorder) BulkWrite

func (mr *MockCollectionInterfaceMockRecorder) BulkWrite(ctx, models interface{}, opts ...interface{}) *gomock.Call

BulkWrite indicates an expected call of BulkWrite.

func (*MockCollectionInterfaceMockRecorder) Clone

func (mr *MockCollectionInterfaceMockRecorder) Clone(opts ...interface{}) *gomock.Call

Clone indicates an expected call of Clone.

func (*MockCollectionInterfaceMockRecorder) CountDocuments

func (mr *MockCollectionInterfaceMockRecorder) CountDocuments(ctx, filter interface{}, opts ...interface{}) *gomock.Call

CountDocuments indicates an expected call of CountDocuments.

func (*MockCollectionInterfaceMockRecorder) Database

Database indicates an expected call of Database.

func (*MockCollectionInterfaceMockRecorder) DeleteMany

func (mr *MockCollectionInterfaceMockRecorder) DeleteMany(ctx, filter interface{}, opts ...interface{}) *gomock.Call

DeleteMany indicates an expected call of DeleteMany.

func (*MockCollectionInterfaceMockRecorder) DeleteOne

func (mr *MockCollectionInterfaceMockRecorder) DeleteOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call

DeleteOne indicates an expected call of DeleteOne.

func (*MockCollectionInterfaceMockRecorder) Distinct

func (mr *MockCollectionInterfaceMockRecorder) Distinct(ctx, fieldName, filter interface{}, opts ...interface{}) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockCollectionInterfaceMockRecorder) Drop

func (mr *MockCollectionInterfaceMockRecorder) Drop(ctx interface{}) *gomock.Call

Drop indicates an expected call of Drop.

func (*MockCollectionInterfaceMockRecorder) EstimatedDocumentCount

func (mr *MockCollectionInterfaceMockRecorder) EstimatedDocumentCount(ctx interface{}, opts ...interface{}) *gomock.Call

EstimatedDocumentCount indicates an expected call of EstimatedDocumentCount.

func (*MockCollectionInterfaceMockRecorder) Find

func (mr *MockCollectionInterfaceMockRecorder) Find(ctx, filter interface{}, opts ...interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockCollectionInterfaceMockRecorder) FindOne

func (mr *MockCollectionInterfaceMockRecorder) FindOne(ctx, filter interface{}, opts ...interface{}) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockCollectionInterfaceMockRecorder) FindOneAndDelete

func (mr *MockCollectionInterfaceMockRecorder) FindOneAndDelete(ctx, filter interface{}, opts ...interface{}) *gomock.Call

FindOneAndDelete indicates an expected call of FindOneAndDelete.

func (*MockCollectionInterfaceMockRecorder) FindOneAndReplace

func (mr *MockCollectionInterfaceMockRecorder) FindOneAndReplace(ctx, filter, replacement interface{}, opts ...interface{}) *gomock.Call

FindOneAndReplace indicates an expected call of FindOneAndReplace.

func (*MockCollectionInterfaceMockRecorder) FindOneAndUpdate

func (mr *MockCollectionInterfaceMockRecorder) FindOneAndUpdate(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call

FindOneAndUpdate indicates an expected call of FindOneAndUpdate.

func (*MockCollectionInterfaceMockRecorder) Indexes

Indexes indicates an expected call of Indexes.

func (*MockCollectionInterfaceMockRecorder) InsertMany

func (mr *MockCollectionInterfaceMockRecorder) InsertMany(ctx, documents interface{}, opts ...interface{}) *gomock.Call

InsertMany indicates an expected call of InsertMany.

func (*MockCollectionInterfaceMockRecorder) InsertOne

func (mr *MockCollectionInterfaceMockRecorder) InsertOne(ctx, document interface{}, opts ...interface{}) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockCollectionInterfaceMockRecorder) Name

Name indicates an expected call of Name.

func (*MockCollectionInterfaceMockRecorder) ReplaceOne

func (mr *MockCollectionInterfaceMockRecorder) ReplaceOne(ctx, filter, replacement interface{}, opts ...interface{}) *gomock.Call

ReplaceOne indicates an expected call of ReplaceOne.

func (*MockCollectionInterfaceMockRecorder) UpdateMany

func (mr *MockCollectionInterfaceMockRecorder) UpdateMany(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call

UpdateMany indicates an expected call of UpdateMany.

func (*MockCollectionInterfaceMockRecorder) UpdateOne

func (mr *MockCollectionInterfaceMockRecorder) UpdateOne(ctx, filter, update interface{}, opts ...interface{}) *gomock.Call

UpdateOne indicates an expected call of UpdateOne.

func (*MockCollectionInterfaceMockRecorder) Watch

func (mr *MockCollectionInterfaceMockRecorder) Watch(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type MockCursorInterface

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

MockCursorInterface is a mock of CursorInterface interface.

func NewMockCursorInterface

func NewMockCursorInterface(ctrl *gomock.Controller) *MockCursorInterface

NewMockCursorInterface creates a new mock instance.

func (*MockCursorInterface) All

func (m *MockCursorInterface) All(ctx context.Context, results interface{}) error

All mocks base method.

func (*MockCursorInterface) Close

func (m *MockCursorInterface) Close(ctx context.Context) error

Close mocks base method.

func (*MockCursorInterface) Decode

func (m *MockCursorInterface) Decode(val interface{}) error

Decode mocks base method.

func (*MockCursorInterface) EXPECT

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

func (*MockCursorInterface) Err

func (m *MockCursorInterface) Err() error

Err mocks base method.

func (*MockCursorInterface) ID

func (m *MockCursorInterface) ID() int64

ID mocks base method.

func (*MockCursorInterface) Next

func (m *MockCursorInterface) Next(ctx context.Context) bool

Next mocks base method.

func (*MockCursorInterface) TryNext

func (m *MockCursorInterface) TryNext(ctx context.Context) bool

TryNext mocks base method.

type MockCursorInterfaceMockRecorder

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

MockCursorInterfaceMockRecorder is the mock recorder for MockCursorInterface.

func (*MockCursorInterfaceMockRecorder) All

func (mr *MockCursorInterfaceMockRecorder) All(ctx, results interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockCursorInterfaceMockRecorder) Close

func (mr *MockCursorInterfaceMockRecorder) Close(ctx interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockCursorInterfaceMockRecorder) Decode

func (mr *MockCursorInterfaceMockRecorder) Decode(val interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockCursorInterfaceMockRecorder) Err

Err indicates an expected call of Err.

func (*MockCursorInterfaceMockRecorder) ID

ID indicates an expected call of ID.

func (*MockCursorInterfaceMockRecorder) Next

func (mr *MockCursorInterfaceMockRecorder) Next(ctx interface{}) *gomock.Call

Next indicates an expected call of Next.

func (*MockCursorInterfaceMockRecorder) TryNext

func (mr *MockCursorInterfaceMockRecorder) TryNext(ctx interface{}) *gomock.Call

TryNext indicates an expected call of TryNext.

type MockDatabaseInterface

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

MockDatabaseInterface is a mock of DatabaseInterface interface.

func NewMockDatabaseInterface

func NewMockDatabaseInterface(ctrl *gomock.Controller) *MockDatabaseInterface

NewMockDatabaseInterface creates a new mock instance.

func (*MockDatabaseInterface) Aggregate

func (m *MockDatabaseInterface) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (pmongo.CursorInterface, error)

Aggregate mocks base method.

func (*MockDatabaseInterface) Client

Client mocks base method.

func (*MockDatabaseInterface) Collection

Collection mocks base method.

func (*MockDatabaseInterface) Drop

Drop mocks base method.

func (*MockDatabaseInterface) EXPECT

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

func (*MockDatabaseInterface) ListCollectionNames

func (m *MockDatabaseInterface) ListCollectionNames(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) ([]string, error)

ListCollectionNames mocks base method.

func (*MockDatabaseInterface) ListCollections

func (m *MockDatabaseInterface) ListCollections(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) (pmongo.CursorInterface, error)

ListCollections mocks base method.

func (*MockDatabaseInterface) Name

func (m *MockDatabaseInterface) Name() string

Name mocks base method.

func (*MockDatabaseInterface) NewBucket

NewBucket mocks base method.

func (*MockDatabaseInterface) ReadConcern

func (m *MockDatabaseInterface) ReadConcern() *readconcern.ReadConcern

ReadConcern mocks base method.

func (*MockDatabaseInterface) ReadPreference

func (m *MockDatabaseInterface) ReadPreference() *readpref.ReadPref

ReadPreference mocks base method.

func (*MockDatabaseInterface) RunCommand

func (m *MockDatabaseInterface) RunCommand(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions) pmongo.SingleResultInterface

RunCommand mocks base method.

func (*MockDatabaseInterface) RunCommandCursor

func (m *MockDatabaseInterface) RunCommandCursor(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions) (pmongo.CursorInterface, error)

RunCommandCursor mocks base method.

func (*MockDatabaseInterface) Watch

func (m *MockDatabaseInterface) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (*mongo.ChangeStream, error)

Watch mocks base method.

func (*MockDatabaseInterface) WriteConcern

func (m *MockDatabaseInterface) WriteConcern() *writeconcern.WriteConcern

WriteConcern mocks base method.

type MockDatabaseInterfaceMockRecorder

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

MockDatabaseInterfaceMockRecorder is the mock recorder for MockDatabaseInterface.

func (*MockDatabaseInterfaceMockRecorder) Aggregate

func (mr *MockDatabaseInterfaceMockRecorder) Aggregate(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockDatabaseInterfaceMockRecorder) Client

Client indicates an expected call of Client.

func (*MockDatabaseInterfaceMockRecorder) Collection

func (mr *MockDatabaseInterfaceMockRecorder) Collection(name interface{}, opts ...interface{}) *gomock.Call

Collection indicates an expected call of Collection.

func (*MockDatabaseInterfaceMockRecorder) Drop

func (mr *MockDatabaseInterfaceMockRecorder) Drop(ctx interface{}) *gomock.Call

Drop indicates an expected call of Drop.

func (*MockDatabaseInterfaceMockRecorder) ListCollectionNames

func (mr *MockDatabaseInterfaceMockRecorder) ListCollectionNames(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListCollectionNames indicates an expected call of ListCollectionNames.

func (*MockDatabaseInterfaceMockRecorder) ListCollections

func (mr *MockDatabaseInterfaceMockRecorder) ListCollections(ctx, filter interface{}, opts ...interface{}) *gomock.Call

ListCollections indicates an expected call of ListCollections.

func (*MockDatabaseInterfaceMockRecorder) Name

Name indicates an expected call of Name.

func (*MockDatabaseInterfaceMockRecorder) NewBucket

func (mr *MockDatabaseInterfaceMockRecorder) NewBucket(opts ...interface{}) *gomock.Call

NewBucket indicates an expected call of NewBucket.

func (*MockDatabaseInterfaceMockRecorder) ReadConcern

func (mr *MockDatabaseInterfaceMockRecorder) ReadConcern() *gomock.Call

ReadConcern indicates an expected call of ReadConcern.

func (*MockDatabaseInterfaceMockRecorder) ReadPreference

func (mr *MockDatabaseInterfaceMockRecorder) ReadPreference() *gomock.Call

ReadPreference indicates an expected call of ReadPreference.

func (*MockDatabaseInterfaceMockRecorder) RunCommand

func (mr *MockDatabaseInterfaceMockRecorder) RunCommand(ctx, runCommand interface{}, opts ...interface{}) *gomock.Call

RunCommand indicates an expected call of RunCommand.

func (*MockDatabaseInterfaceMockRecorder) RunCommandCursor

func (mr *MockDatabaseInterfaceMockRecorder) RunCommandCursor(ctx, runCommand interface{}, opts ...interface{}) *gomock.Call

RunCommandCursor indicates an expected call of RunCommandCursor.

func (*MockDatabaseInterfaceMockRecorder) Watch

func (mr *MockDatabaseInterfaceMockRecorder) Watch(ctx, pipeline interface{}, opts ...interface{}) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockDatabaseInterfaceMockRecorder) WriteConcern

func (mr *MockDatabaseInterfaceMockRecorder) WriteConcern() *gomock.Call

WriteConcern indicates an expected call of WriteConcern.

type MockDownloadStreamInterface

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

MockDownloadStreamInterface is a mock of DownloadStreamInterface interface.

func NewMockDownloadStreamInterface

func NewMockDownloadStreamInterface(ctrl *gomock.Controller) *MockDownloadStreamInterface

NewMockDownloadStreamInterface creates a new mock instance.

func (*MockDownloadStreamInterface) Close

Close mocks base method.

func (*MockDownloadStreamInterface) EXPECT

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

func (*MockDownloadStreamInterface) Read

func (m *MockDownloadStreamInterface) Read(p []byte) (int, error)

Read mocks base method.

func (*MockDownloadStreamInterface) SetReadDeadline

func (m *MockDownloadStreamInterface) SetReadDeadline(t time.Time) error

SetReadDeadline mocks base method.

func (*MockDownloadStreamInterface) Skip

func (m *MockDownloadStreamInterface) Skip(skip int64) (int64, error)

Skip mocks base method.

type MockDownloadStreamInterfaceMockRecorder

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

MockDownloadStreamInterfaceMockRecorder is the mock recorder for MockDownloadStreamInterface.

func (*MockDownloadStreamInterfaceMockRecorder) Close

Close indicates an expected call of Close.

func (*MockDownloadStreamInterfaceMockRecorder) Read

func (mr *MockDownloadStreamInterfaceMockRecorder) Read(p interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockDownloadStreamInterfaceMockRecorder) SetReadDeadline

func (mr *MockDownloadStreamInterfaceMockRecorder) SetReadDeadline(t interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockDownloadStreamInterfaceMockRecorder) Skip

func (mr *MockDownloadStreamInterfaceMockRecorder) Skip(skip interface{}) *gomock.Call

Skip indicates an expected call of Skip.

type MockIndexViewInterface

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

MockIndexViewInterface is a mock of IndexViewInterface interface.

func NewMockIndexViewInterface

func NewMockIndexViewInterface(ctrl *gomock.Controller) *MockIndexViewInterface

NewMockIndexViewInterface creates a new mock instance.

func (*MockIndexViewInterface) CreateMany

func (m *MockIndexViewInterface) CreateMany(ctx context.Context, models []mongo.IndexModel, opts ...*options.CreateIndexesOptions) ([]string, error)

CreateMany mocks base method.

func (*MockIndexViewInterface) CreateOne

CreateOne mocks base method.

func (*MockIndexViewInterface) DropAll

DropAll mocks base method.

func (*MockIndexViewInterface) DropOne

DropOne mocks base method.

func (*MockIndexViewInterface) EXPECT

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

func (*MockIndexViewInterface) List

List mocks base method.

type MockIndexViewInterfaceMockRecorder

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

MockIndexViewInterfaceMockRecorder is the mock recorder for MockIndexViewInterface.

func (*MockIndexViewInterfaceMockRecorder) CreateMany

func (mr *MockIndexViewInterfaceMockRecorder) CreateMany(ctx, models interface{}, opts ...interface{}) *gomock.Call

CreateMany indicates an expected call of CreateMany.

func (*MockIndexViewInterfaceMockRecorder) CreateOne

func (mr *MockIndexViewInterfaceMockRecorder) CreateOne(ctx, model interface{}, opts ...interface{}) *gomock.Call

CreateOne indicates an expected call of CreateOne.

func (*MockIndexViewInterfaceMockRecorder) DropAll

func (mr *MockIndexViewInterfaceMockRecorder) DropAll(ctx interface{}, opts ...interface{}) *gomock.Call

DropAll indicates an expected call of DropAll.

func (*MockIndexViewInterfaceMockRecorder) DropOne

func (mr *MockIndexViewInterfaceMockRecorder) DropOne(ctx, name interface{}, opts ...interface{}) *gomock.Call

DropOne indicates an expected call of DropOne.

func (*MockIndexViewInterfaceMockRecorder) List

func (mr *MockIndexViewInterfaceMockRecorder) List(ctx interface{}, opts ...interface{}) *gomock.Call

List indicates an expected call of List.

type MockSessionInterface

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

MockSessionInterface is a mock of SessionInterface interface.

func NewMockSessionInterface

func NewMockSessionInterface(ctrl *gomock.Controller) *MockSessionInterface

NewMockSessionInterface creates a new mock instance.

func (*MockSessionInterface) AbortTransaction

func (m *MockSessionInterface) AbortTransaction(ctx context.Context) error

AbortTransaction mocks base method.

func (*MockSessionInterface) AdvanceClusterTime

func (m *MockSessionInterface) AdvanceClusterTime(arg0 bson.Raw) error

AdvanceClusterTime mocks base method.

func (*MockSessionInterface) AdvanceOperationTime

func (m *MockSessionInterface) AdvanceOperationTime(ts *primitive.Timestamp) error

AdvanceOperationTime mocks base method.

func (*MockSessionInterface) Client

Client mocks base method.

func (*MockSessionInterface) ClusterTime

func (m *MockSessionInterface) ClusterTime() bson.Raw

ClusterTime mocks base method.

func (*MockSessionInterface) CommitTransaction

func (m *MockSessionInterface) CommitTransaction(ctx context.Context) error

CommitTransaction mocks base method.

func (*MockSessionInterface) EXPECT

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

func (*MockSessionInterface) EndSession

func (m *MockSessionInterface) EndSession(ctx context.Context)

EndSession mocks base method.

func (*MockSessionInterface) ID

func (m *MockSessionInterface) ID() bson.Raw

ID mocks base method.

func (*MockSessionInterface) OperationTime

func (m *MockSessionInterface) OperationTime() *primitive.Timestamp

OperationTime mocks base method.

func (*MockSessionInterface) StartTransaction

func (m *MockSessionInterface) StartTransaction(opts ...*options.TransactionOptions) error

StartTransaction mocks base method.

func (*MockSessionInterface) WithTransaction

func (m *MockSessionInterface) WithTransaction(ctx context.Context, fn func(mongo.SessionContext) (interface{}, error), opts ...*options.TransactionOptions) (interface{}, error)

WithTransaction mocks base method.

type MockSessionInterfaceMockRecorder

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

MockSessionInterfaceMockRecorder is the mock recorder for MockSessionInterface.

func (*MockSessionInterfaceMockRecorder) AbortTransaction

func (mr *MockSessionInterfaceMockRecorder) AbortTransaction(ctx interface{}) *gomock.Call

AbortTransaction indicates an expected call of AbortTransaction.

func (*MockSessionInterfaceMockRecorder) AdvanceClusterTime

func (mr *MockSessionInterfaceMockRecorder) AdvanceClusterTime(arg0 interface{}) *gomock.Call

AdvanceClusterTime indicates an expected call of AdvanceClusterTime.

func (*MockSessionInterfaceMockRecorder) AdvanceOperationTime

func (mr *MockSessionInterfaceMockRecorder) AdvanceOperationTime(ts interface{}) *gomock.Call

AdvanceOperationTime indicates an expected call of AdvanceOperationTime.

func (*MockSessionInterfaceMockRecorder) Client

Client indicates an expected call of Client.

func (*MockSessionInterfaceMockRecorder) ClusterTime

func (mr *MockSessionInterfaceMockRecorder) ClusterTime() *gomock.Call

ClusterTime indicates an expected call of ClusterTime.

func (*MockSessionInterfaceMockRecorder) CommitTransaction

func (mr *MockSessionInterfaceMockRecorder) CommitTransaction(ctx interface{}) *gomock.Call

CommitTransaction indicates an expected call of CommitTransaction.

func (*MockSessionInterfaceMockRecorder) EndSession

func (mr *MockSessionInterfaceMockRecorder) EndSession(ctx interface{}) *gomock.Call

EndSession indicates an expected call of EndSession.

func (*MockSessionInterfaceMockRecorder) ID

ID indicates an expected call of ID.

func (*MockSessionInterfaceMockRecorder) OperationTime

func (mr *MockSessionInterfaceMockRecorder) OperationTime() *gomock.Call

OperationTime indicates an expected call of OperationTime.

func (*MockSessionInterfaceMockRecorder) StartTransaction

func (mr *MockSessionInterfaceMockRecorder) StartTransaction(opts ...interface{}) *gomock.Call

StartTransaction indicates an expected call of StartTransaction.

func (*MockSessionInterfaceMockRecorder) WithTransaction

func (mr *MockSessionInterfaceMockRecorder) WithTransaction(ctx, fn interface{}, opts ...interface{}) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

type MockSingleResultInterface

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

MockSingleResultInterface is a mock of SingleResultInterface interface.

func NewMockSingleResultInterface

func NewMockSingleResultInterface(ctrl *gomock.Controller) *MockSingleResultInterface

NewMockSingleResultInterface creates a new mock instance.

func (*MockSingleResultInterface) Decode

func (m *MockSingleResultInterface) Decode(v interface{}) error

Decode mocks base method.

func (*MockSingleResultInterface) DecodeBytes

func (m *MockSingleResultInterface) DecodeBytes() (bson.Raw, error)

DecodeBytes mocks base method.

func (*MockSingleResultInterface) EXPECT

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

func (*MockSingleResultInterface) Err

Err mocks base method.

type MockSingleResultInterfaceMockRecorder

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

MockSingleResultInterfaceMockRecorder is the mock recorder for MockSingleResultInterface.

func (*MockSingleResultInterfaceMockRecorder) Decode

func (mr *MockSingleResultInterfaceMockRecorder) Decode(v interface{}) *gomock.Call

Decode indicates an expected call of Decode.

func (*MockSingleResultInterfaceMockRecorder) DecodeBytes

DecodeBytes indicates an expected call of DecodeBytes.

func (*MockSingleResultInterfaceMockRecorder) Err

Err indicates an expected call of Err.

type MockUploadStreamInterface

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

MockUploadStreamInterface is a mock of UploadStreamInterface interface.

func NewMockUploadStreamInterface

func NewMockUploadStreamInterface(ctrl *gomock.Controller) *MockUploadStreamInterface

NewMockUploadStreamInterface creates a new mock instance.

func (*MockUploadStreamInterface) Abort

func (m *MockUploadStreamInterface) Abort() error

Abort mocks base method.

func (*MockUploadStreamInterface) Close

func (m *MockUploadStreamInterface) Close() error

Close mocks base method.

func (*MockUploadStreamInterface) EXPECT

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

func (*MockUploadStreamInterface) SetWriteDeadline

func (m *MockUploadStreamInterface) SetWriteDeadline(t time.Time) error

SetWriteDeadline mocks base method.

func (*MockUploadStreamInterface) Write

func (m *MockUploadStreamInterface) Write(p []byte) (int, error)

Write mocks base method.

type MockUploadStreamInterfaceMockRecorder

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

MockUploadStreamInterfaceMockRecorder is the mock recorder for MockUploadStreamInterface.

func (*MockUploadStreamInterfaceMockRecorder) Abort

Abort indicates an expected call of Abort.

func (*MockUploadStreamInterfaceMockRecorder) Close

Close indicates an expected call of Close.

func (*MockUploadStreamInterfaceMockRecorder) SetWriteDeadline

func (mr *MockUploadStreamInterfaceMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockUploadStreamInterfaceMockRecorder) Write

func (mr *MockUploadStreamInterfaceMockRecorder) Write(p interface{}) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

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