Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockChangeStream
- func (m *MockChangeStream) Close(ctx context.Context) error
- func (m *MockChangeStream) Current() bson.Raw
- func (m *MockChangeStream) Decode(val any) error
- func (m *MockChangeStream) EXPECT() *MockChangeStreamMockRecorder
- func (m *MockChangeStream) Err() error
- func (m *MockChangeStream) ID() int64
- func (m *MockChangeStream) Next(ctx context.Context) bool
- func (m *MockChangeStream) ResumeToken() bson.Raw
- func (m *MockChangeStream) SetBatchSize(size int32)
- func (m *MockChangeStream) TryNext(ctx context.Context) bool
- type MockChangeStreamMockRecorder
- func (mr *MockChangeStreamMockRecorder) Close(ctx any) *gomock.Call
- func (mr *MockChangeStreamMockRecorder) Current() *gomock.Call
- func (mr *MockChangeStreamMockRecorder) Decode(val any) *gomock.Call
- func (mr *MockChangeStreamMockRecorder) Err() *gomock.Call
- func (mr *MockChangeStreamMockRecorder) ID() *gomock.Call
- func (mr *MockChangeStreamMockRecorder) Next(ctx any) *gomock.Call
- func (mr *MockChangeStreamMockRecorder) ResumeToken() *gomock.Call
- func (mr *MockChangeStreamMockRecorder) SetBatchSize(size any) *gomock.Call
- func (mr *MockChangeStreamMockRecorder) TryNext(ctx any) *gomock.Call
- type MockClient
- func (m *MockClient) Connect(ctx context.Context) error
- func (m *MockClient) Database(name string, opts ...*options.DatabaseOptions) mongoifc.Database
- func (m *MockClient) Disconnect(ctx context.Context) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) ListDatabaseNames(ctx context.Context, filter any, opts ...*options.ListDatabasesOptions) ([]string, error)
- func (m *MockClient) ListDatabases(ctx context.Context, filter any, opts ...*options.ListDatabasesOptions) (mongo.ListDatabasesResult, error)
- func (m *MockClient) NumberSessionsInProgress() int
- func (m *MockClient) Ping(ctx context.Context, rp *readpref.ReadPref) error
- func (m *MockClient) StartSession(opts ...*options.SessionOptions) (mongoifc.Session, error)
- func (m *MockClient) Timeout() *time.Duration
- func (m *MockClient) UseSession(ctx context.Context, fn func(mongoifc.SessionContext) error) error
- func (m *MockClient) UseSessionWithOptions(ctx context.Context, opts *options.SessionOptions, ...) error
- func (m *MockClient) Watch(ctx context.Context, pipeline any, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)
- type MockClientEncryption
- func (m *MockClientEncryption) AddKeyAltName(ctx context.Context, id primitive.Binary, keyAltName string) mongoifc.SingleResult
- func (m *MockClientEncryption) Close(ctx context.Context) error
- func (m *MockClientEncryption) CreateDataKey(ctx context.Context, kmsProvider string, opts ...*options.DataKeyOptions) (primitive.Binary, error)
- func (m *MockClientEncryption) CreateEncryptedCollection(ctx context.Context, db mongoifc.Database, coll string, ...) (mongoifc.Collection, primitive.M, error)
- func (m *MockClientEncryption) Decrypt(ctx context.Context, val primitive.Binary) (bson.RawValue, error)
- func (m *MockClientEncryption) DeleteKey(ctx context.Context, id primitive.Binary) (*mongo.DeleteResult, error)
- func (m *MockClientEncryption) EXPECT() *MockClientEncryptionMockRecorder
- func (m *MockClientEncryption) Encrypt(ctx context.Context, val bson.RawValue, opts ...*options.EncryptOptions) (primitive.Binary, error)
- func (m *MockClientEncryption) EncryptExpression(ctx context.Context, expr, result any, opts ...*options.EncryptOptions) error
- func (m *MockClientEncryption) GetKey(ctx context.Context, id primitive.Binary) mongoifc.SingleResult
- func (m *MockClientEncryption) GetKeyByAltName(ctx context.Context, keyAltName string) mongoifc.SingleResult
- func (m *MockClientEncryption) GetKeys(ctx context.Context) (mongoifc.Cursor, error)
- func (m *MockClientEncryption) RemoveKeyAltName(ctx context.Context, id primitive.Binary, keyAltName string) mongoifc.SingleResult
- func (m *MockClientEncryption) RewrapManyDataKey(ctx context.Context, filter any, opts ...*options.RewrapManyDataKeyOptions) (*mongo.RewrapManyDataKeyResult, error)
- type MockClientEncryptionMockRecorder
- func (mr *MockClientEncryptionMockRecorder) AddKeyAltName(ctx, id, keyAltName any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) Close(ctx any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) CreateDataKey(ctx, kmsProvider any, opts ...any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) CreateEncryptedCollection(ctx, db, coll, createOpts, kmsProvider, masterKey any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) Decrypt(ctx, val any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) DeleteKey(ctx, id any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) Encrypt(ctx, val any, opts ...any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) EncryptExpression(ctx, expr, result any, opts ...any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) GetKey(ctx, id any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) GetKeyByAltName(ctx, keyAltName any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) GetKeys(ctx any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) RemoveKeyAltName(ctx, id, keyAltName any) *gomock.Call
- func (mr *MockClientEncryptionMockRecorder) RewrapManyDataKey(ctx, filter any, opts ...any) *gomock.Call
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Connect(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) Database(name any, opts ...any) *gomock.Call
- func (mr *MockClientMockRecorder) Disconnect(ctx any) *gomock.Call
- func (mr *MockClientMockRecorder) ListDatabaseNames(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockClientMockRecorder) ListDatabases(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockClientMockRecorder) NumberSessionsInProgress() *gomock.Call
- func (mr *MockClientMockRecorder) Ping(ctx, rp any) *gomock.Call
- func (mr *MockClientMockRecorder) StartSession(opts ...any) *gomock.Call
- func (mr *MockClientMockRecorder) Timeout() *gomock.Call
- func (mr *MockClientMockRecorder) UseSession(ctx, fn any) *gomock.Call
- func (mr *MockClientMockRecorder) UseSessionWithOptions(ctx, opts, fn any) *gomock.Call
- func (mr *MockClientMockRecorder) Watch(ctx, pipeline any, opts ...any) *gomock.Call
- type MockCollection
- func (m *MockCollection) Aggregate(ctx context.Context, pipeline any, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)
- func (m *MockCollection) BulkWrite(ctx context.Context, models []mongo.WriteModel, ...) (*mongo.BulkWriteResult, error)
- func (m *MockCollection) Clone(opts ...*options.CollectionOptions) (mongoifc.Collection, error)
- func (m *MockCollection) CountDocuments(ctx context.Context, filter any, opts ...*options.CountOptions) (int64, error)
- func (m *MockCollection) Database() mongoifc.Database
- func (m *MockCollection) DeleteMany(ctx context.Context, filter any, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
- func (m *MockCollection) DeleteOne(ctx context.Context, filter any, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
- func (m *MockCollection) Distinct(ctx context.Context, fieldName string, filter any, ...) ([]any, error)
- func (m *MockCollection) Drop(ctx context.Context) error
- func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
- func (m *MockCollection) EstimatedDocumentCount(ctx context.Context, opts ...*options.EstimatedDocumentCountOptions) (int64, error)
- func (m *MockCollection) Find(ctx context.Context, filter any, opts ...*options.FindOptions) (mongoifc.Cursor, error)
- func (m *MockCollection) FindOne(ctx context.Context, filter any, opts ...*options.FindOneOptions) mongoifc.SingleResult
- func (m *MockCollection) FindOneAndDelete(ctx context.Context, filter any, opts ...*options.FindOneAndDeleteOptions) mongoifc.SingleResult
- func (m *MockCollection) FindOneAndReplace(ctx context.Context, filter, replacement any, ...) mongoifc.SingleResult
- func (m *MockCollection) FindOneAndUpdate(ctx context.Context, filter, update any, ...) mongoifc.SingleResult
- func (m *MockCollection) Indexes() mongoifc.IndexView
- func (m *MockCollection) InsertMany(ctx context.Context, documents []any, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)
- func (m *MockCollection) InsertOne(ctx context.Context, document any, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)
- func (m *MockCollection) Name() string
- func (m *MockCollection) ReplaceOne(ctx context.Context, filter, replacement any, opts ...*options.ReplaceOptions) (*mongo.UpdateResult, error)
- func (m *MockCollection) SearchIndexes() mongoifc.SearchIndexView
- func (m *MockCollection) UpdateByID(ctx context.Context, id, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func (m *MockCollection) UpdateMany(ctx context.Context, filter, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func (m *MockCollection) UpdateOne(ctx context.Context, filter, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
- func (m *MockCollection) Watch(ctx context.Context, pipeline any, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)
- type MockCollectionMockRecorder
- func (mr *MockCollectionMockRecorder) Aggregate(ctx, pipeline any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) BulkWrite(ctx, models any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Clone(opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) CountDocuments(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Database() *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteMany(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) DeleteOne(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Distinct(ctx, fieldName, filter any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Drop(ctx any) *gomock.Call
- func (mr *MockCollectionMockRecorder) EstimatedDocumentCount(ctx any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Find(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) FindOne(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) FindOneAndDelete(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) FindOneAndReplace(ctx, filter, replacement any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) FindOneAndUpdate(ctx, filter, update any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Indexes() *gomock.Call
- func (mr *MockCollectionMockRecorder) InsertMany(ctx, documents any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) InsertOne(ctx, document any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Name() *gomock.Call
- func (mr *MockCollectionMockRecorder) ReplaceOne(ctx, filter, replacement any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) SearchIndexes() *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateByID(ctx, id, update any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateMany(ctx, filter, update any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateOne(ctx, filter, update any, opts ...any) *gomock.Call
- func (mr *MockCollectionMockRecorder) Watch(ctx, pipeline any, opts ...any) *gomock.Call
- type MockCursor
- func (m *MockCursor) All(ctx context.Context, results any) error
- func (m *MockCursor) Close(ctx context.Context) error
- func (m *MockCursor) Current() bson.Raw
- func (m *MockCursor) Decode(val any) error
- func (m *MockCursor) EXPECT() *MockCursorMockRecorder
- func (m *MockCursor) Err() error
- func (m *MockCursor) ID() int64
- func (m *MockCursor) Next(ctx context.Context) bool
- func (m *MockCursor) RemainingBatchLength() int
- func (m *MockCursor) SetBatchSize(batchSize int32)
- func (m *MockCursor) SetComment(comment any)
- func (m *MockCursor) SetMaxTime(dur time.Duration)
- func (m *MockCursor) TryNext(ctx context.Context) bool
- type MockCursorMockRecorder
- func (mr *MockCursorMockRecorder) All(ctx, results any) *gomock.Call
- func (mr *MockCursorMockRecorder) Close(ctx any) *gomock.Call
- func (mr *MockCursorMockRecorder) Current() *gomock.Call
- func (mr *MockCursorMockRecorder) Decode(val any) *gomock.Call
- func (mr *MockCursorMockRecorder) Err() *gomock.Call
- func (mr *MockCursorMockRecorder) ID() *gomock.Call
- func (mr *MockCursorMockRecorder) Next(ctx any) *gomock.Call
- func (mr *MockCursorMockRecorder) RemainingBatchLength() *gomock.Call
- func (mr *MockCursorMockRecorder) SetBatchSize(batchSize any) *gomock.Call
- func (mr *MockCursorMockRecorder) SetComment(comment any) *gomock.Call
- func (mr *MockCursorMockRecorder) SetMaxTime(dur any) *gomock.Call
- func (mr *MockCursorMockRecorder) TryNext(ctx any) *gomock.Call
- type MockDatabase
- func (m *MockDatabase) Aggregate(ctx context.Context, pipeline any, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)
- func (m *MockDatabase) Client() mongoifc.Client
- func (m *MockDatabase) Collection(name string, opts ...*options.CollectionOptions) mongoifc.Collection
- func (m *MockDatabase) CreateCollection(ctx context.Context, name string, opts ...*options.CreateCollectionOptions) error
- func (m *MockDatabase) CreateView(ctx context.Context, viewName, viewOn string, pipeline any, ...) error
- func (m *MockDatabase) Drop(ctx context.Context) error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) ListCollectionNames(ctx context.Context, filter any, opts ...*options.ListCollectionsOptions) ([]string, error)
- func (m *MockDatabase) ListCollectionSpecifications(ctx context.Context, filter any, opts ...*options.ListCollectionsOptions) ([]*mongo.CollectionSpecification, error)
- func (m *MockDatabase) ListCollections(ctx context.Context, filter any, opts ...*options.ListCollectionsOptions) (mongoifc.Cursor, error)
- func (m *MockDatabase) Name() string
- func (m *MockDatabase) ReadConcern() *readconcern.ReadConcern
- func (m *MockDatabase) ReadPreference() *readpref.ReadPref
- func (m *MockDatabase) RunCommand(ctx context.Context, runCommand any, opts ...*options.RunCmdOptions) mongoifc.SingleResult
- func (m *MockDatabase) RunCommandCursor(ctx context.Context, runCommand any, opts ...*options.RunCmdOptions) (mongoifc.Cursor, error)
- func (m *MockDatabase) Watch(ctx context.Context, pipeline any, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)
- func (m *MockDatabase) WriteConcern() *writeconcern.WriteConcern
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) Aggregate(ctx, pipeline any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Client() *gomock.Call
- func (mr *MockDatabaseMockRecorder) Collection(name any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateCollection(ctx, name any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateView(ctx, viewName, viewOn, pipeline any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Drop(ctx any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ListCollectionNames(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ListCollectionSpecifications(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) ListCollections(ctx, filter any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Name() *gomock.Call
- func (mr *MockDatabaseMockRecorder) ReadConcern() *gomock.Call
- func (mr *MockDatabaseMockRecorder) ReadPreference() *gomock.Call
- func (mr *MockDatabaseMockRecorder) RunCommand(ctx, runCommand any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) RunCommandCursor(ctx, runCommand any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Watch(ctx, pipeline any, opts ...any) *gomock.Call
- func (mr *MockDatabaseMockRecorder) WriteConcern() *gomock.Call
- type MockIndexView
- func (m *MockIndexView) CreateMany(ctx context.Context, models []mongo.IndexModel, ...) ([]string, error)
- func (m *MockIndexView) CreateOne(ctx context.Context, model mongo.IndexModel, ...) (string, error)
- func (m *MockIndexView) DropAll(ctx context.Context, opts ...*options.DropIndexesOptions) (bson.Raw, error)
- func (m *MockIndexView) DropOne(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error)
- func (m *MockIndexView) DropOneWithKey(ctx context.Context, keySpecDocument any, opts ...*options.DropIndexesOptions) (bson.Raw, error)
- func (m *MockIndexView) EXPECT() *MockIndexViewMockRecorder
- func (m *MockIndexView) List(ctx context.Context, opts ...*options.ListIndexesOptions) (mongoifc.Cursor, error)
- func (m *MockIndexView) ListSpecifications(ctx context.Context, opts ...*options.ListIndexesOptions) ([]*mongo.IndexSpecification, error)
- type MockIndexViewMockRecorder
- func (mr *MockIndexViewMockRecorder) CreateMany(ctx, models any, opts ...any) *gomock.Call
- func (mr *MockIndexViewMockRecorder) CreateOne(ctx, model any, opts ...any) *gomock.Call
- func (mr *MockIndexViewMockRecorder) DropAll(ctx any, opts ...any) *gomock.Call
- func (mr *MockIndexViewMockRecorder) DropOne(ctx, name any, opts ...any) *gomock.Call
- func (mr *MockIndexViewMockRecorder) DropOneWithKey(ctx, keySpecDocument any, opts ...any) *gomock.Call
- func (mr *MockIndexViewMockRecorder) List(ctx any, opts ...any) *gomock.Call
- func (mr *MockIndexViewMockRecorder) ListSpecifications(ctx any, opts ...any) *gomock.Call
- type MockSession
- func (m *MockSession) AbortTransaction(ctx context.Context) error
- func (m *MockSession) AdvanceClusterTime(arg0 bson.Raw) error
- func (m *MockSession) AdvanceOperationTime(arg0 *primitive.Timestamp) error
- func (m *MockSession) Client() mongoifc.Client
- func (m *MockSession) ClusterTime() bson.Raw
- func (m *MockSession) CommitTransaction(ctx context.Context) error
- func (m *MockSession) EXPECT() *MockSessionMockRecorder
- func (m *MockSession) EndSession(ctx context.Context)
- func (m *MockSession) ID() bson.Raw
- func (m *MockSession) OperationTime() *primitive.Timestamp
- func (m *MockSession) StartTransaction(opts ...*options.TransactionOptions) error
- func (m *MockSession) WithTransaction(ctx context.Context, fn func(mongoifc.SessionContext) (any, error), ...) (any, error)
- type MockSessionContext
- func (m *MockSessionContext) AbortTransaction(ctx context.Context) error
- func (m *MockSessionContext) AdvanceClusterTime(arg0 bson.Raw) error
- func (m *MockSessionContext) AdvanceOperationTime(arg0 *primitive.Timestamp) error
- func (m *MockSessionContext) Client() mongoifc.Client
- func (m *MockSessionContext) ClusterTime() bson.Raw
- func (m *MockSessionContext) CommitTransaction(ctx context.Context) error
- func (m *MockSessionContext) Deadline() (time.Time, bool)
- func (m *MockSessionContext) Done() <-chan struct{}
- func (m *MockSessionContext) EXPECT() *MockSessionContextMockRecorder
- func (m *MockSessionContext) EndSession(ctx context.Context)
- func (m *MockSessionContext) Err() error
- func (m *MockSessionContext) ID() bson.Raw
- func (m *MockSessionContext) OperationTime() *primitive.Timestamp
- func (m *MockSessionContext) StartTransaction(opts ...*options.TransactionOptions) error
- func (m *MockSessionContext) Value(key any) any
- func (m *MockSessionContext) WithTransaction(ctx context.Context, fn func(mongoifc.SessionContext) (any, error), ...) (any, error)
- type MockSessionContextMockRecorder
- func (mr *MockSessionContextMockRecorder) AbortTransaction(ctx any) *gomock.Call
- func (mr *MockSessionContextMockRecorder) AdvanceClusterTime(arg0 any) *gomock.Call
- func (mr *MockSessionContextMockRecorder) AdvanceOperationTime(arg0 any) *gomock.Call
- func (mr *MockSessionContextMockRecorder) Client() *gomock.Call
- func (mr *MockSessionContextMockRecorder) ClusterTime() *gomock.Call
- func (mr *MockSessionContextMockRecorder) CommitTransaction(ctx any) *gomock.Call
- func (mr *MockSessionContextMockRecorder) Deadline() *gomock.Call
- func (mr *MockSessionContextMockRecorder) Done() *gomock.Call
- func (mr *MockSessionContextMockRecorder) EndSession(ctx any) *gomock.Call
- func (mr *MockSessionContextMockRecorder) Err() *gomock.Call
- func (mr *MockSessionContextMockRecorder) ID() *gomock.Call
- func (mr *MockSessionContextMockRecorder) OperationTime() *gomock.Call
- func (mr *MockSessionContextMockRecorder) StartTransaction(opts ...any) *gomock.Call
- func (mr *MockSessionContextMockRecorder) Value(key any) *gomock.Call
- func (mr *MockSessionContextMockRecorder) WithTransaction(ctx, fn any, opts ...any) *gomock.Call
- type MockSessionMockRecorder
- func (mr *MockSessionMockRecorder) AbortTransaction(ctx any) *gomock.Call
- func (mr *MockSessionMockRecorder) AdvanceClusterTime(arg0 any) *gomock.Call
- func (mr *MockSessionMockRecorder) AdvanceOperationTime(arg0 any) *gomock.Call
- func (mr *MockSessionMockRecorder) Client() *gomock.Call
- func (mr *MockSessionMockRecorder) ClusterTime() *gomock.Call
- func (mr *MockSessionMockRecorder) CommitTransaction(ctx any) *gomock.Call
- func (mr *MockSessionMockRecorder) EndSession(ctx any) *gomock.Call
- func (mr *MockSessionMockRecorder) ID() *gomock.Call
- func (mr *MockSessionMockRecorder) OperationTime() *gomock.Call
- func (mr *MockSessionMockRecorder) StartTransaction(opts ...any) *gomock.Call
- func (mr *MockSessionMockRecorder) WithTransaction(ctx, fn any, opts ...any) *gomock.Call
- type MockSingleResult
- type MockSingleResultMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChangeStream ¶
type MockChangeStream struct {
// contains filtered or unexported fields
}
MockChangeStream is a mock of ChangeStream interface.
func NewMockChangeStream ¶
func NewMockChangeStream(ctrl *gomock.Controller) *MockChangeStream
NewMockChangeStream creates a new mock instance.
func (*MockChangeStream) Close ¶
func (m *MockChangeStream) Close(ctx context.Context) error
Close mocks base method.
func (*MockChangeStream) Current ¶
func (m *MockChangeStream) Current() bson.Raw
Current mocks base method.
func (*MockChangeStream) Decode ¶
func (m *MockChangeStream) Decode(val any) error
Decode mocks base method.
func (*MockChangeStream) EXPECT ¶
func (m *MockChangeStream) EXPECT() *MockChangeStreamMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChangeStream) Next ¶
func (m *MockChangeStream) Next(ctx context.Context) bool
Next mocks base method.
func (*MockChangeStream) ResumeToken ¶
func (m *MockChangeStream) ResumeToken() bson.Raw
ResumeToken mocks base method.
func (*MockChangeStream) SetBatchSize ¶ added in v1.13.0
func (m *MockChangeStream) SetBatchSize(size int32)
SetBatchSize mocks base method.
type MockChangeStreamMockRecorder ¶
type MockChangeStreamMockRecorder struct {
// contains filtered or unexported fields
}
MockChangeStreamMockRecorder is the mock recorder for MockChangeStream.
func (*MockChangeStreamMockRecorder) Close ¶
func (mr *MockChangeStreamMockRecorder) Close(ctx any) *gomock.Call
Close indicates an expected call of Close.
func (*MockChangeStreamMockRecorder) Current ¶
func (mr *MockChangeStreamMockRecorder) Current() *gomock.Call
Current indicates an expected call of Current.
func (*MockChangeStreamMockRecorder) Decode ¶
func (mr *MockChangeStreamMockRecorder) Decode(val any) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockChangeStreamMockRecorder) Err ¶
func (mr *MockChangeStreamMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockChangeStreamMockRecorder) ID ¶
func (mr *MockChangeStreamMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockChangeStreamMockRecorder) Next ¶
func (mr *MockChangeStreamMockRecorder) Next(ctx any) *gomock.Call
Next indicates an expected call of Next.
func (*MockChangeStreamMockRecorder) ResumeToken ¶
func (mr *MockChangeStreamMockRecorder) ResumeToken() *gomock.Call
ResumeToken indicates an expected call of ResumeToken.
func (*MockChangeStreamMockRecorder) SetBatchSize ¶ added in v1.13.0
func (mr *MockChangeStreamMockRecorder) SetBatchSize(size any) *gomock.Call
SetBatchSize indicates an expected call of SetBatchSize.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) Connect ¶
func (m *MockClient) Connect(ctx context.Context) error
Connect mocks base method.
func (*MockClient) Database ¶
func (m *MockClient) Database(name string, opts ...*options.DatabaseOptions) mongoifc.Database
Database mocks base method.
func (*MockClient) Disconnect ¶
func (m *MockClient) Disconnect(ctx context.Context) error
Disconnect mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) ListDatabaseNames ¶
func (m *MockClient) ListDatabaseNames(ctx context.Context, filter any, opts ...*options.ListDatabasesOptions) ([]string, error)
ListDatabaseNames mocks base method.
func (*MockClient) ListDatabases ¶
func (m *MockClient) ListDatabases(ctx context.Context, filter any, opts ...*options.ListDatabasesOptions) (mongo.ListDatabasesResult, error)
ListDatabases mocks base method.
func (*MockClient) NumberSessionsInProgress ¶
func (m *MockClient) NumberSessionsInProgress() int
NumberSessionsInProgress mocks base method.
func (*MockClient) StartSession ¶
func (m *MockClient) StartSession(opts ...*options.SessionOptions) (mongoifc.Session, error)
StartSession mocks base method.
func (*MockClient) Timeout ¶ added in v1.11.1
func (m *MockClient) Timeout() *time.Duration
Timeout mocks base method.
func (*MockClient) UseSession ¶
func (m *MockClient) UseSession(ctx context.Context, fn func(mongoifc.SessionContext) error) error
UseSession mocks base method.
func (*MockClient) UseSessionWithOptions ¶
func (m *MockClient) UseSessionWithOptions(ctx context.Context, opts *options.SessionOptions, fn func(mongoifc.SessionContext) error) error
UseSessionWithOptions mocks base method.
func (*MockClient) Watch ¶
func (m *MockClient) Watch(ctx context.Context, pipeline any, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)
Watch mocks base method.
type MockClientEncryption ¶ added in v1.13.0
type MockClientEncryption struct {
// contains filtered or unexported fields
}
MockClientEncryption is a mock of ClientEncryption interface.
func NewMockClientEncryption ¶ added in v1.13.0
func NewMockClientEncryption(ctrl *gomock.Controller) *MockClientEncryption
NewMockClientEncryption creates a new mock instance.
func (*MockClientEncryption) AddKeyAltName ¶ added in v1.13.0
func (m *MockClientEncryption) AddKeyAltName(ctx context.Context, id primitive.Binary, keyAltName string) mongoifc.SingleResult
AddKeyAltName mocks base method.
func (*MockClientEncryption) Close ¶ added in v1.13.0
func (m *MockClientEncryption) Close(ctx context.Context) error
Close mocks base method.
func (*MockClientEncryption) CreateDataKey ¶ added in v1.13.0
func (m *MockClientEncryption) CreateDataKey(ctx context.Context, kmsProvider string, opts ...*options.DataKeyOptions) (primitive.Binary, error)
CreateDataKey mocks base method.
func (*MockClientEncryption) CreateEncryptedCollection ¶ added in v1.13.0
func (m *MockClientEncryption) CreateEncryptedCollection(ctx context.Context, db mongoifc.Database, coll string, createOpts *options.CreateCollectionOptions, kmsProvider string, masterKey any) (mongoifc.Collection, primitive.M, error)
CreateEncryptedCollection mocks base method.
func (*MockClientEncryption) Decrypt ¶ added in v1.13.0
func (m *MockClientEncryption) Decrypt(ctx context.Context, val primitive.Binary) (bson.RawValue, error)
Decrypt mocks base method.
func (*MockClientEncryption) DeleteKey ¶ added in v1.13.0
func (m *MockClientEncryption) DeleteKey(ctx context.Context, id primitive.Binary) (*mongo.DeleteResult, error)
DeleteKey mocks base method.
func (*MockClientEncryption) EXPECT ¶ added in v1.13.0
func (m *MockClientEncryption) EXPECT() *MockClientEncryptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientEncryption) Encrypt ¶ added in v1.13.0
func (m *MockClientEncryption) Encrypt(ctx context.Context, val bson.RawValue, opts ...*options.EncryptOptions) (primitive.Binary, error)
Encrypt mocks base method.
func (*MockClientEncryption) EncryptExpression ¶ added in v1.13.0
func (m *MockClientEncryption) EncryptExpression(ctx context.Context, expr, result any, opts ...*options.EncryptOptions) error
EncryptExpression mocks base method.
func (*MockClientEncryption) GetKey ¶ added in v1.13.0
func (m *MockClientEncryption) GetKey(ctx context.Context, id primitive.Binary) mongoifc.SingleResult
GetKey mocks base method.
func (*MockClientEncryption) GetKeyByAltName ¶ added in v1.13.0
func (m *MockClientEncryption) GetKeyByAltName(ctx context.Context, keyAltName string) mongoifc.SingleResult
GetKeyByAltName mocks base method.
func (*MockClientEncryption) RemoveKeyAltName ¶ added in v1.13.0
func (m *MockClientEncryption) RemoveKeyAltName(ctx context.Context, id primitive.Binary, keyAltName string) mongoifc.SingleResult
RemoveKeyAltName mocks base method.
func (*MockClientEncryption) RewrapManyDataKey ¶ added in v1.13.0
func (m *MockClientEncryption) RewrapManyDataKey(ctx context.Context, filter any, opts ...*options.RewrapManyDataKeyOptions) (*mongo.RewrapManyDataKeyResult, error)
RewrapManyDataKey mocks base method.
type MockClientEncryptionMockRecorder ¶ added in v1.13.0
type MockClientEncryptionMockRecorder struct {
// contains filtered or unexported fields
}
MockClientEncryptionMockRecorder is the mock recorder for MockClientEncryption.
func (*MockClientEncryptionMockRecorder) AddKeyAltName ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) AddKeyAltName(ctx, id, keyAltName any) *gomock.Call
AddKeyAltName indicates an expected call of AddKeyAltName.
func (*MockClientEncryptionMockRecorder) Close ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) Close(ctx any) *gomock.Call
Close indicates an expected call of Close.
func (*MockClientEncryptionMockRecorder) CreateDataKey ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) CreateDataKey(ctx, kmsProvider any, opts ...any) *gomock.Call
CreateDataKey indicates an expected call of CreateDataKey.
func (*MockClientEncryptionMockRecorder) CreateEncryptedCollection ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) CreateEncryptedCollection(ctx, db, coll, createOpts, kmsProvider, masterKey any) *gomock.Call
CreateEncryptedCollection indicates an expected call of CreateEncryptedCollection.
func (*MockClientEncryptionMockRecorder) Decrypt ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) Decrypt(ctx, val any) *gomock.Call
Decrypt indicates an expected call of Decrypt.
func (*MockClientEncryptionMockRecorder) DeleteKey ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) DeleteKey(ctx, id any) *gomock.Call
DeleteKey indicates an expected call of DeleteKey.
func (*MockClientEncryptionMockRecorder) Encrypt ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) Encrypt(ctx, val any, opts ...any) *gomock.Call
Encrypt indicates an expected call of Encrypt.
func (*MockClientEncryptionMockRecorder) EncryptExpression ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) EncryptExpression(ctx, expr, result any, opts ...any) *gomock.Call
EncryptExpression indicates an expected call of EncryptExpression.
func (*MockClientEncryptionMockRecorder) GetKey ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) GetKey(ctx, id any) *gomock.Call
GetKey indicates an expected call of GetKey.
func (*MockClientEncryptionMockRecorder) GetKeyByAltName ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) GetKeyByAltName(ctx, keyAltName any) *gomock.Call
GetKeyByAltName indicates an expected call of GetKeyByAltName.
func (*MockClientEncryptionMockRecorder) GetKeys ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) GetKeys(ctx any) *gomock.Call
GetKeys indicates an expected call of GetKeys.
func (*MockClientEncryptionMockRecorder) RemoveKeyAltName ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) RemoveKeyAltName(ctx, id, keyAltName any) *gomock.Call
RemoveKeyAltName indicates an expected call of RemoveKeyAltName.
func (*MockClientEncryptionMockRecorder) RewrapManyDataKey ¶ added in v1.13.0
func (mr *MockClientEncryptionMockRecorder) RewrapManyDataKey(ctx, filter any, opts ...any) *gomock.Call
RewrapManyDataKey indicates an expected call of RewrapManyDataKey.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Connect ¶
func (mr *MockClientMockRecorder) Connect(ctx any) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockClientMockRecorder) Database ¶
func (mr *MockClientMockRecorder) Database(name any, opts ...any) *gomock.Call
Database indicates an expected call of Database.
func (*MockClientMockRecorder) Disconnect ¶
func (mr *MockClientMockRecorder) Disconnect(ctx any) *gomock.Call
Disconnect indicates an expected call of Disconnect.
func (*MockClientMockRecorder) ListDatabaseNames ¶
func (mr *MockClientMockRecorder) ListDatabaseNames(ctx, filter any, opts ...any) *gomock.Call
ListDatabaseNames indicates an expected call of ListDatabaseNames.
func (*MockClientMockRecorder) ListDatabases ¶
func (mr *MockClientMockRecorder) ListDatabases(ctx, filter any, opts ...any) *gomock.Call
ListDatabases indicates an expected call of ListDatabases.
func (*MockClientMockRecorder) NumberSessionsInProgress ¶
func (mr *MockClientMockRecorder) NumberSessionsInProgress() *gomock.Call
NumberSessionsInProgress indicates an expected call of NumberSessionsInProgress.
func (*MockClientMockRecorder) Ping ¶
func (mr *MockClientMockRecorder) Ping(ctx, rp any) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockClientMockRecorder) StartSession ¶
func (mr *MockClientMockRecorder) StartSession(opts ...any) *gomock.Call
StartSession indicates an expected call of StartSession.
func (*MockClientMockRecorder) Timeout ¶ added in v1.11.1
func (mr *MockClientMockRecorder) Timeout() *gomock.Call
Timeout indicates an expected call of Timeout.
func (*MockClientMockRecorder) UseSession ¶
func (mr *MockClientMockRecorder) UseSession(ctx, fn any) *gomock.Call
UseSession indicates an expected call of UseSession.
func (*MockClientMockRecorder) UseSessionWithOptions ¶
func (mr *MockClientMockRecorder) UseSessionWithOptions(ctx, opts, fn any) *gomock.Call
UseSessionWithOptions indicates an expected call of UseSessionWithOptions.
type MockCollection ¶
type MockCollection struct {
// contains filtered or unexported fields
}
MockCollection is a mock of Collection interface.
func NewMockCollection ¶
func NewMockCollection(ctrl *gomock.Controller) *MockCollection
NewMockCollection creates a new mock instance.
func (*MockCollection) Aggregate ¶
func (m *MockCollection) Aggregate(ctx context.Context, pipeline any, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)
Aggregate mocks base method.
func (*MockCollection) BulkWrite ¶
func (m *MockCollection) BulkWrite(ctx context.Context, models []mongo.WriteModel, opts ...*options.BulkWriteOptions) (*mongo.BulkWriteResult, error)
BulkWrite mocks base method.
func (*MockCollection) Clone ¶
func (m *MockCollection) Clone(opts ...*options.CollectionOptions) (mongoifc.Collection, error)
Clone mocks base method.
func (*MockCollection) CountDocuments ¶
func (m *MockCollection) CountDocuments(ctx context.Context, filter any, opts ...*options.CountOptions) (int64, error)
CountDocuments mocks base method.
func (*MockCollection) Database ¶
func (m *MockCollection) Database() mongoifc.Database
Database mocks base method.
func (*MockCollection) DeleteMany ¶
func (m *MockCollection) DeleteMany(ctx context.Context, filter any, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
DeleteMany mocks base method.
func (*MockCollection) DeleteOne ¶
func (m *MockCollection) DeleteOne(ctx context.Context, filter any, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)
DeleteOne mocks base method.
func (*MockCollection) Distinct ¶
func (m *MockCollection) Distinct(ctx context.Context, fieldName string, filter any, opts ...*options.DistinctOptions) ([]any, error)
Distinct mocks base method.
func (*MockCollection) Drop ¶
func (m *MockCollection) Drop(ctx context.Context) error
Drop mocks base method.
func (*MockCollection) EXPECT ¶
func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCollection) EstimatedDocumentCount ¶
func (m *MockCollection) EstimatedDocumentCount(ctx context.Context, opts ...*options.EstimatedDocumentCountOptions) (int64, error)
EstimatedDocumentCount mocks base method.
func (*MockCollection) Find ¶
func (m *MockCollection) Find(ctx context.Context, filter any, opts ...*options.FindOptions) (mongoifc.Cursor, error)
Find mocks base method.
func (*MockCollection) FindOne ¶
func (m *MockCollection) FindOne(ctx context.Context, filter any, opts ...*options.FindOneOptions) mongoifc.SingleResult
FindOne mocks base method.
func (*MockCollection) FindOneAndDelete ¶
func (m *MockCollection) FindOneAndDelete(ctx context.Context, filter any, opts ...*options.FindOneAndDeleteOptions) mongoifc.SingleResult
FindOneAndDelete mocks base method.
func (*MockCollection) FindOneAndReplace ¶
func (m *MockCollection) FindOneAndReplace(ctx context.Context, filter, replacement any, opts ...*options.FindOneAndReplaceOptions) mongoifc.SingleResult
FindOneAndReplace mocks base method.
func (*MockCollection) FindOneAndUpdate ¶
func (m *MockCollection) FindOneAndUpdate(ctx context.Context, filter, update any, opts ...*options.FindOneAndUpdateOptions) mongoifc.SingleResult
FindOneAndUpdate mocks base method.
func (*MockCollection) Indexes ¶
func (m *MockCollection) Indexes() mongoifc.IndexView
Indexes mocks base method.
func (*MockCollection) InsertMany ¶
func (m *MockCollection) InsertMany(ctx context.Context, documents []any, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)
InsertMany mocks base method.
func (*MockCollection) InsertOne ¶
func (m *MockCollection) InsertOne(ctx context.Context, document any, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)
InsertOne mocks base method.
func (*MockCollection) ReplaceOne ¶
func (m *MockCollection) ReplaceOne(ctx context.Context, filter, replacement any, opts ...*options.ReplaceOptions) (*mongo.UpdateResult, error)
ReplaceOne mocks base method.
func (*MockCollection) SearchIndexes ¶ added in v1.13.0
func (m *MockCollection) SearchIndexes() mongoifc.SearchIndexView
SearchIndexes mocks base method.
func (*MockCollection) UpdateByID ¶
func (m *MockCollection) UpdateByID(ctx context.Context, id, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
UpdateByID mocks base method.
func (*MockCollection) UpdateMany ¶
func (m *MockCollection) UpdateMany(ctx context.Context, filter, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
UpdateMany mocks base method.
func (*MockCollection) UpdateOne ¶
func (m *MockCollection) UpdateOne(ctx context.Context, filter, update any, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)
UpdateOne mocks base method.
func (*MockCollection) Watch ¶
func (m *MockCollection) Watch(ctx context.Context, pipeline any, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)
Watch mocks base method.
type MockCollectionMockRecorder ¶
type MockCollectionMockRecorder struct {
// contains filtered or unexported fields
}
MockCollectionMockRecorder is the mock recorder for MockCollection.
func (*MockCollectionMockRecorder) Aggregate ¶
func (mr *MockCollectionMockRecorder) Aggregate(ctx, pipeline any, opts ...any) *gomock.Call
Aggregate indicates an expected call of Aggregate.
func (*MockCollectionMockRecorder) BulkWrite ¶
func (mr *MockCollectionMockRecorder) BulkWrite(ctx, models any, opts ...any) *gomock.Call
BulkWrite indicates an expected call of BulkWrite.
func (*MockCollectionMockRecorder) Clone ¶
func (mr *MockCollectionMockRecorder) Clone(opts ...any) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockCollectionMockRecorder) CountDocuments ¶
func (mr *MockCollectionMockRecorder) CountDocuments(ctx, filter any, opts ...any) *gomock.Call
CountDocuments indicates an expected call of CountDocuments.
func (*MockCollectionMockRecorder) Database ¶
func (mr *MockCollectionMockRecorder) Database() *gomock.Call
Database indicates an expected call of Database.
func (*MockCollectionMockRecorder) DeleteMany ¶
func (mr *MockCollectionMockRecorder) DeleteMany(ctx, filter any, opts ...any) *gomock.Call
DeleteMany indicates an expected call of DeleteMany.
func (*MockCollectionMockRecorder) DeleteOne ¶
func (mr *MockCollectionMockRecorder) DeleteOne(ctx, filter any, opts ...any) *gomock.Call
DeleteOne indicates an expected call of DeleteOne.
func (*MockCollectionMockRecorder) Distinct ¶
func (mr *MockCollectionMockRecorder) Distinct(ctx, fieldName, filter any, opts ...any) *gomock.Call
Distinct indicates an expected call of Distinct.
func (*MockCollectionMockRecorder) Drop ¶
func (mr *MockCollectionMockRecorder) Drop(ctx any) *gomock.Call
Drop indicates an expected call of Drop.
func (*MockCollectionMockRecorder) EstimatedDocumentCount ¶
func (mr *MockCollectionMockRecorder) EstimatedDocumentCount(ctx any, opts ...any) *gomock.Call
EstimatedDocumentCount indicates an expected call of EstimatedDocumentCount.
func (*MockCollectionMockRecorder) Find ¶
func (mr *MockCollectionMockRecorder) Find(ctx, filter any, opts ...any) *gomock.Call
Find indicates an expected call of Find.
func (*MockCollectionMockRecorder) FindOne ¶
func (mr *MockCollectionMockRecorder) FindOne(ctx, filter any, opts ...any) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockCollectionMockRecorder) FindOneAndDelete ¶
func (mr *MockCollectionMockRecorder) FindOneAndDelete(ctx, filter any, opts ...any) *gomock.Call
FindOneAndDelete indicates an expected call of FindOneAndDelete.
func (*MockCollectionMockRecorder) FindOneAndReplace ¶
func (mr *MockCollectionMockRecorder) FindOneAndReplace(ctx, filter, replacement any, opts ...any) *gomock.Call
FindOneAndReplace indicates an expected call of FindOneAndReplace.
func (*MockCollectionMockRecorder) FindOneAndUpdate ¶
func (mr *MockCollectionMockRecorder) FindOneAndUpdate(ctx, filter, update any, opts ...any) *gomock.Call
FindOneAndUpdate indicates an expected call of FindOneAndUpdate.
func (*MockCollectionMockRecorder) Indexes ¶
func (mr *MockCollectionMockRecorder) Indexes() *gomock.Call
Indexes indicates an expected call of Indexes.
func (*MockCollectionMockRecorder) InsertMany ¶
func (mr *MockCollectionMockRecorder) InsertMany(ctx, documents any, opts ...any) *gomock.Call
InsertMany indicates an expected call of InsertMany.
func (*MockCollectionMockRecorder) InsertOne ¶
func (mr *MockCollectionMockRecorder) InsertOne(ctx, document any, opts ...any) *gomock.Call
InsertOne indicates an expected call of InsertOne.
func (*MockCollectionMockRecorder) Name ¶
func (mr *MockCollectionMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockCollectionMockRecorder) ReplaceOne ¶
func (mr *MockCollectionMockRecorder) ReplaceOne(ctx, filter, replacement any, opts ...any) *gomock.Call
ReplaceOne indicates an expected call of ReplaceOne.
func (*MockCollectionMockRecorder) SearchIndexes ¶ added in v1.13.0
func (mr *MockCollectionMockRecorder) SearchIndexes() *gomock.Call
SearchIndexes indicates an expected call of SearchIndexes.
func (*MockCollectionMockRecorder) UpdateByID ¶
func (mr *MockCollectionMockRecorder) UpdateByID(ctx, id, update any, opts ...any) *gomock.Call
UpdateByID indicates an expected call of UpdateByID.
func (*MockCollectionMockRecorder) UpdateMany ¶
func (mr *MockCollectionMockRecorder) UpdateMany(ctx, filter, update any, opts ...any) *gomock.Call
UpdateMany indicates an expected call of UpdateMany.
type MockCursor ¶
type MockCursor struct {
// contains filtered or unexported fields
}
MockCursor is a mock of Cursor interface.
func NewMockCursor ¶
func NewMockCursor(ctrl *gomock.Controller) *MockCursor
NewMockCursor creates a new mock instance.
func (*MockCursor) All ¶
func (m *MockCursor) All(ctx context.Context, results any) error
All mocks base method.
func (*MockCursor) Close ¶
func (m *MockCursor) Close(ctx context.Context) error
Close mocks base method.
func (*MockCursor) EXPECT ¶
func (m *MockCursor) EXPECT() *MockCursorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCursor) Next ¶
func (m *MockCursor) Next(ctx context.Context) bool
Next mocks base method.
func (*MockCursor) RemainingBatchLength ¶
func (m *MockCursor) RemainingBatchLength() int
RemainingBatchLength mocks base method.
func (*MockCursor) SetBatchSize ¶ added in v1.13.0
func (m *MockCursor) SetBatchSize(batchSize int32)
SetBatchSize mocks base method.
func (*MockCursor) SetComment ¶ added in v1.13.0
func (m *MockCursor) SetComment(comment any)
SetComment mocks base method.
func (*MockCursor) SetMaxTime ¶ added in v1.13.0
func (m *MockCursor) SetMaxTime(dur time.Duration)
SetMaxTime mocks base method.
type MockCursorMockRecorder ¶
type MockCursorMockRecorder struct {
// contains filtered or unexported fields
}
MockCursorMockRecorder is the mock recorder for MockCursor.
func (*MockCursorMockRecorder) All ¶
func (mr *MockCursorMockRecorder) All(ctx, results any) *gomock.Call
All indicates an expected call of All.
func (*MockCursorMockRecorder) Close ¶
func (mr *MockCursorMockRecorder) Close(ctx any) *gomock.Call
Close indicates an expected call of Close.
func (*MockCursorMockRecorder) Current ¶
func (mr *MockCursorMockRecorder) Current() *gomock.Call
Current indicates an expected call of Current.
func (*MockCursorMockRecorder) Decode ¶
func (mr *MockCursorMockRecorder) Decode(val any) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockCursorMockRecorder) Err ¶
func (mr *MockCursorMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockCursorMockRecorder) ID ¶
func (mr *MockCursorMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockCursorMockRecorder) Next ¶
func (mr *MockCursorMockRecorder) Next(ctx any) *gomock.Call
Next indicates an expected call of Next.
func (*MockCursorMockRecorder) RemainingBatchLength ¶
func (mr *MockCursorMockRecorder) RemainingBatchLength() *gomock.Call
RemainingBatchLength indicates an expected call of RemainingBatchLength.
func (*MockCursorMockRecorder) SetBatchSize ¶ added in v1.13.0
func (mr *MockCursorMockRecorder) SetBatchSize(batchSize any) *gomock.Call
SetBatchSize indicates an expected call of SetBatchSize.
func (*MockCursorMockRecorder) SetComment ¶ added in v1.13.0
func (mr *MockCursorMockRecorder) SetComment(comment any) *gomock.Call
SetComment indicates an expected call of SetComment.
func (*MockCursorMockRecorder) SetMaxTime ¶ added in v1.13.0
func (mr *MockCursorMockRecorder) SetMaxTime(dur any) *gomock.Call
SetMaxTime indicates an expected call of SetMaxTime.
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) Aggregate ¶
func (m *MockDatabase) Aggregate(ctx context.Context, pipeline any, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)
Aggregate mocks base method.
func (*MockDatabase) Client ¶
func (m *MockDatabase) Client() mongoifc.Client
Client mocks base method.
func (*MockDatabase) Collection ¶
func (m *MockDatabase) Collection(name string, opts ...*options.CollectionOptions) mongoifc.Collection
Collection mocks base method.
func (*MockDatabase) CreateCollection ¶
func (m *MockDatabase) CreateCollection(ctx context.Context, name string, opts ...*options.CreateCollectionOptions) error
CreateCollection mocks base method.
func (*MockDatabase) CreateView ¶
func (m *MockDatabase) CreateView(ctx context.Context, viewName, viewOn string, pipeline any, opts ...*options.CreateViewOptions) error
CreateView mocks base method.
func (*MockDatabase) Drop ¶
func (m *MockDatabase) Drop(ctx context.Context) error
Drop mocks base method.
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatabase) ListCollectionNames ¶
func (m *MockDatabase) ListCollectionNames(ctx context.Context, filter any, opts ...*options.ListCollectionsOptions) ([]string, error)
ListCollectionNames mocks base method.
func (*MockDatabase) ListCollectionSpecifications ¶
func (m *MockDatabase) ListCollectionSpecifications(ctx context.Context, filter any, opts ...*options.ListCollectionsOptions) ([]*mongo.CollectionSpecification, error)
ListCollectionSpecifications mocks base method.
func (*MockDatabase) ListCollections ¶
func (m *MockDatabase) ListCollections(ctx context.Context, filter any, opts ...*options.ListCollectionsOptions) (mongoifc.Cursor, error)
ListCollections mocks base method.
func (*MockDatabase) ReadConcern ¶
func (m *MockDatabase) ReadConcern() *readconcern.ReadConcern
ReadConcern mocks base method.
func (*MockDatabase) ReadPreference ¶
func (m *MockDatabase) ReadPreference() *readpref.ReadPref
ReadPreference mocks base method.
func (*MockDatabase) RunCommand ¶
func (m *MockDatabase) RunCommand(ctx context.Context, runCommand any, opts ...*options.RunCmdOptions) mongoifc.SingleResult
RunCommand mocks base method.
func (*MockDatabase) RunCommandCursor ¶
func (m *MockDatabase) RunCommandCursor(ctx context.Context, runCommand any, opts ...*options.RunCmdOptions) (mongoifc.Cursor, error)
RunCommandCursor mocks base method.
func (*MockDatabase) Watch ¶
func (m *MockDatabase) Watch(ctx context.Context, pipeline any, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)
Watch mocks base method.
func (*MockDatabase) WriteConcern ¶
func (m *MockDatabase) WriteConcern() *writeconcern.WriteConcern
WriteConcern mocks base method.
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase.
func (*MockDatabaseMockRecorder) Aggregate ¶
func (mr *MockDatabaseMockRecorder) Aggregate(ctx, pipeline any, opts ...any) *gomock.Call
Aggregate indicates an expected call of Aggregate.
func (*MockDatabaseMockRecorder) Client ¶
func (mr *MockDatabaseMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client.
func (*MockDatabaseMockRecorder) Collection ¶
func (mr *MockDatabaseMockRecorder) Collection(name any, opts ...any) *gomock.Call
Collection indicates an expected call of Collection.
func (*MockDatabaseMockRecorder) CreateCollection ¶
func (mr *MockDatabaseMockRecorder) CreateCollection(ctx, name any, opts ...any) *gomock.Call
CreateCollection indicates an expected call of CreateCollection.
func (*MockDatabaseMockRecorder) CreateView ¶
func (mr *MockDatabaseMockRecorder) CreateView(ctx, viewName, viewOn, pipeline any, opts ...any) *gomock.Call
CreateView indicates an expected call of CreateView.
func (*MockDatabaseMockRecorder) Drop ¶
func (mr *MockDatabaseMockRecorder) Drop(ctx any) *gomock.Call
Drop indicates an expected call of Drop.
func (*MockDatabaseMockRecorder) ListCollectionNames ¶
func (mr *MockDatabaseMockRecorder) ListCollectionNames(ctx, filter any, opts ...any) *gomock.Call
ListCollectionNames indicates an expected call of ListCollectionNames.
func (*MockDatabaseMockRecorder) ListCollectionSpecifications ¶
func (mr *MockDatabaseMockRecorder) ListCollectionSpecifications(ctx, filter any, opts ...any) *gomock.Call
ListCollectionSpecifications indicates an expected call of ListCollectionSpecifications.
func (*MockDatabaseMockRecorder) ListCollections ¶
func (mr *MockDatabaseMockRecorder) ListCollections(ctx, filter any, opts ...any) *gomock.Call
ListCollections indicates an expected call of ListCollections.
func (*MockDatabaseMockRecorder) Name ¶
func (mr *MockDatabaseMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockDatabaseMockRecorder) ReadConcern ¶
func (mr *MockDatabaseMockRecorder) ReadConcern() *gomock.Call
ReadConcern indicates an expected call of ReadConcern.
func (*MockDatabaseMockRecorder) ReadPreference ¶
func (mr *MockDatabaseMockRecorder) ReadPreference() *gomock.Call
ReadPreference indicates an expected call of ReadPreference.
func (*MockDatabaseMockRecorder) RunCommand ¶
func (mr *MockDatabaseMockRecorder) RunCommand(ctx, runCommand any, opts ...any) *gomock.Call
RunCommand indicates an expected call of RunCommand.
func (*MockDatabaseMockRecorder) RunCommandCursor ¶
func (mr *MockDatabaseMockRecorder) RunCommandCursor(ctx, runCommand any, opts ...any) *gomock.Call
RunCommandCursor indicates an expected call of RunCommandCursor.
func (*MockDatabaseMockRecorder) Watch ¶
func (mr *MockDatabaseMockRecorder) Watch(ctx, pipeline any, opts ...any) *gomock.Call
Watch indicates an expected call of Watch.
func (*MockDatabaseMockRecorder) WriteConcern ¶
func (mr *MockDatabaseMockRecorder) WriteConcern() *gomock.Call
WriteConcern indicates an expected call of WriteConcern.
type MockIndexView ¶
type MockIndexView struct {
// contains filtered or unexported fields
}
MockIndexView is a mock of IndexView interface.
func NewMockIndexView ¶
func NewMockIndexView(ctrl *gomock.Controller) *MockIndexView
NewMockIndexView creates a new mock instance.
func (*MockIndexView) CreateMany ¶
func (m *MockIndexView) CreateMany(ctx context.Context, models []mongo.IndexModel, opts ...*options.CreateIndexesOptions) ([]string, error)
CreateMany mocks base method.
func (*MockIndexView) CreateOne ¶
func (m *MockIndexView) CreateOne(ctx context.Context, model mongo.IndexModel, opts ...*options.CreateIndexesOptions) (string, error)
CreateOne mocks base method.
func (*MockIndexView) DropAll ¶
func (m *MockIndexView) DropAll(ctx context.Context, opts ...*options.DropIndexesOptions) (bson.Raw, error)
DropAll mocks base method.
func (*MockIndexView) DropOne ¶
func (m *MockIndexView) DropOne(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error)
DropOne mocks base method.
func (*MockIndexView) DropOneWithKey ¶ added in v1.17.0
func (m *MockIndexView) DropOneWithKey(ctx context.Context, keySpecDocument any, opts ...*options.DropIndexesOptions) (bson.Raw, error)
DropOneWithKey mocks base method.
func (*MockIndexView) EXPECT ¶
func (m *MockIndexView) EXPECT() *MockIndexViewMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIndexView) List ¶
func (m *MockIndexView) List(ctx context.Context, opts ...*options.ListIndexesOptions) (mongoifc.Cursor, error)
List mocks base method.
func (*MockIndexView) ListSpecifications ¶
func (m *MockIndexView) ListSpecifications(ctx context.Context, opts ...*options.ListIndexesOptions) ([]*mongo.IndexSpecification, error)
ListSpecifications mocks base method.
type MockIndexViewMockRecorder ¶
type MockIndexViewMockRecorder struct {
// contains filtered or unexported fields
}
MockIndexViewMockRecorder is the mock recorder for MockIndexView.
func (*MockIndexViewMockRecorder) CreateMany ¶
func (mr *MockIndexViewMockRecorder) CreateMany(ctx, models any, opts ...any) *gomock.Call
CreateMany indicates an expected call of CreateMany.
func (*MockIndexViewMockRecorder) CreateOne ¶
func (mr *MockIndexViewMockRecorder) CreateOne(ctx, model any, opts ...any) *gomock.Call
CreateOne indicates an expected call of CreateOne.
func (*MockIndexViewMockRecorder) DropAll ¶
func (mr *MockIndexViewMockRecorder) DropAll(ctx any, opts ...any) *gomock.Call
DropAll indicates an expected call of DropAll.
func (*MockIndexViewMockRecorder) DropOne ¶
func (mr *MockIndexViewMockRecorder) DropOne(ctx, name any, opts ...any) *gomock.Call
DropOne indicates an expected call of DropOne.
func (*MockIndexViewMockRecorder) DropOneWithKey ¶ added in v1.17.0
func (mr *MockIndexViewMockRecorder) DropOneWithKey(ctx, keySpecDocument any, opts ...any) *gomock.Call
DropOneWithKey indicates an expected call of DropOneWithKey.
func (*MockIndexViewMockRecorder) List ¶
func (mr *MockIndexViewMockRecorder) List(ctx any, opts ...any) *gomock.Call
List indicates an expected call of List.
func (*MockIndexViewMockRecorder) ListSpecifications ¶
func (mr *MockIndexViewMockRecorder) ListSpecifications(ctx any, opts ...any) *gomock.Call
ListSpecifications indicates an expected call of ListSpecifications.
type MockSession ¶
type MockSession struct {
// contains filtered or unexported fields
}
MockSession is a mock of Session interface.
func NewMockSession ¶
func NewMockSession(ctrl *gomock.Controller) *MockSession
NewMockSession creates a new mock instance.
func (*MockSession) AbortTransaction ¶
func (m *MockSession) AbortTransaction(ctx context.Context) error
AbortTransaction mocks base method.
func (*MockSession) AdvanceClusterTime ¶
func (m *MockSession) AdvanceClusterTime(arg0 bson.Raw) error
AdvanceClusterTime mocks base method.
func (*MockSession) AdvanceOperationTime ¶
func (m *MockSession) AdvanceOperationTime(arg0 *primitive.Timestamp) error
AdvanceOperationTime mocks base method.
func (*MockSession) Client ¶
func (m *MockSession) Client() mongoifc.Client
Client mocks base method.
func (*MockSession) ClusterTime ¶
func (m *MockSession) ClusterTime() bson.Raw
ClusterTime mocks base method.
func (*MockSession) CommitTransaction ¶
func (m *MockSession) CommitTransaction(ctx context.Context) error
CommitTransaction mocks base method.
func (*MockSession) EXPECT ¶
func (m *MockSession) EXPECT() *MockSessionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSession) EndSession ¶
func (m *MockSession) EndSession(ctx context.Context)
EndSession mocks base method.
func (*MockSession) OperationTime ¶
func (m *MockSession) OperationTime() *primitive.Timestamp
OperationTime mocks base method.
func (*MockSession) StartTransaction ¶
func (m *MockSession) StartTransaction(opts ...*options.TransactionOptions) error
StartTransaction mocks base method.
func (*MockSession) WithTransaction ¶
func (m *MockSession) WithTransaction(ctx context.Context, fn func(mongoifc.SessionContext) (any, error), opts ...*options.TransactionOptions) (any, error)
WithTransaction mocks base method.
type MockSessionContext ¶ added in v1.0.0
type MockSessionContext struct {
// contains filtered or unexported fields
}
MockSessionContext is a mock of SessionContext interface.
func NewMockSessionContext ¶ added in v1.0.0
func NewMockSessionContext(ctrl *gomock.Controller) *MockSessionContext
NewMockSessionContext creates a new mock instance.
func (*MockSessionContext) AbortTransaction ¶ added in v1.0.0
func (m *MockSessionContext) AbortTransaction(ctx context.Context) error
AbortTransaction mocks base method.
func (*MockSessionContext) AdvanceClusterTime ¶ added in v1.0.0
func (m *MockSessionContext) AdvanceClusterTime(arg0 bson.Raw) error
AdvanceClusterTime mocks base method.
func (*MockSessionContext) AdvanceOperationTime ¶ added in v1.0.0
func (m *MockSessionContext) AdvanceOperationTime(arg0 *primitive.Timestamp) error
AdvanceOperationTime mocks base method.
func (*MockSessionContext) Client ¶ added in v1.0.0
func (m *MockSessionContext) Client() mongoifc.Client
Client mocks base method.
func (*MockSessionContext) ClusterTime ¶ added in v1.0.0
func (m *MockSessionContext) ClusterTime() bson.Raw
ClusterTime mocks base method.
func (*MockSessionContext) CommitTransaction ¶ added in v1.0.0
func (m *MockSessionContext) CommitTransaction(ctx context.Context) error
CommitTransaction mocks base method.
func (*MockSessionContext) Deadline ¶ added in v1.0.0
func (m *MockSessionContext) Deadline() (time.Time, bool)
Deadline mocks base method.
func (*MockSessionContext) Done ¶ added in v1.0.0
func (m *MockSessionContext) Done() <-chan struct{}
Done mocks base method.
func (*MockSessionContext) EXPECT ¶ added in v1.0.0
func (m *MockSessionContext) EXPECT() *MockSessionContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionContext) EndSession ¶ added in v1.0.0
func (m *MockSessionContext) EndSession(ctx context.Context)
EndSession mocks base method.
func (*MockSessionContext) Err ¶ added in v1.0.0
func (m *MockSessionContext) Err() error
Err mocks base method.
func (*MockSessionContext) ID ¶ added in v1.0.0
func (m *MockSessionContext) ID() bson.Raw
ID mocks base method.
func (*MockSessionContext) OperationTime ¶ added in v1.0.0
func (m *MockSessionContext) OperationTime() *primitive.Timestamp
OperationTime mocks base method.
func (*MockSessionContext) StartTransaction ¶ added in v1.0.0
func (m *MockSessionContext) StartTransaction(opts ...*options.TransactionOptions) error
StartTransaction mocks base method.
func (*MockSessionContext) Value ¶ added in v1.0.0
func (m *MockSessionContext) Value(key any) any
Value mocks base method.
func (*MockSessionContext) WithTransaction ¶ added in v1.0.0
func (m *MockSessionContext) WithTransaction(ctx context.Context, fn func(mongoifc.SessionContext) (any, error), opts ...*options.TransactionOptions) (any, error)
WithTransaction mocks base method.
type MockSessionContextMockRecorder ¶ added in v1.0.0
type MockSessionContextMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionContextMockRecorder is the mock recorder for MockSessionContext.
func (*MockSessionContextMockRecorder) AbortTransaction ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) AbortTransaction(ctx any) *gomock.Call
AbortTransaction indicates an expected call of AbortTransaction.
func (*MockSessionContextMockRecorder) AdvanceClusterTime ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) AdvanceClusterTime(arg0 any) *gomock.Call
AdvanceClusterTime indicates an expected call of AdvanceClusterTime.
func (*MockSessionContextMockRecorder) AdvanceOperationTime ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) AdvanceOperationTime(arg0 any) *gomock.Call
AdvanceOperationTime indicates an expected call of AdvanceOperationTime.
func (*MockSessionContextMockRecorder) Client ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client.
func (*MockSessionContextMockRecorder) ClusterTime ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) ClusterTime() *gomock.Call
ClusterTime indicates an expected call of ClusterTime.
func (*MockSessionContextMockRecorder) CommitTransaction ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) CommitTransaction(ctx any) *gomock.Call
CommitTransaction indicates an expected call of CommitTransaction.
func (*MockSessionContextMockRecorder) Deadline ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) Deadline() *gomock.Call
Deadline indicates an expected call of Deadline.
func (*MockSessionContextMockRecorder) Done ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done.
func (*MockSessionContextMockRecorder) EndSession ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) EndSession(ctx any) *gomock.Call
EndSession indicates an expected call of EndSession.
func (*MockSessionContextMockRecorder) Err ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockSessionContextMockRecorder) ID ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockSessionContextMockRecorder) OperationTime ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) OperationTime() *gomock.Call
OperationTime indicates an expected call of OperationTime.
func (*MockSessionContextMockRecorder) StartTransaction ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) StartTransaction(opts ...any) *gomock.Call
StartTransaction indicates an expected call of StartTransaction.
func (*MockSessionContextMockRecorder) Value ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) Value(key any) *gomock.Call
Value indicates an expected call of Value.
func (*MockSessionContextMockRecorder) WithTransaction ¶ added in v1.0.0
func (mr *MockSessionContextMockRecorder) WithTransaction(ctx, fn any, opts ...any) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.
type MockSessionMockRecorder ¶
type MockSessionMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionMockRecorder is the mock recorder for MockSession.
func (*MockSessionMockRecorder) AbortTransaction ¶
func (mr *MockSessionMockRecorder) AbortTransaction(ctx any) *gomock.Call
AbortTransaction indicates an expected call of AbortTransaction.
func (*MockSessionMockRecorder) AdvanceClusterTime ¶
func (mr *MockSessionMockRecorder) AdvanceClusterTime(arg0 any) *gomock.Call
AdvanceClusterTime indicates an expected call of AdvanceClusterTime.
func (*MockSessionMockRecorder) AdvanceOperationTime ¶
func (mr *MockSessionMockRecorder) AdvanceOperationTime(arg0 any) *gomock.Call
AdvanceOperationTime indicates an expected call of AdvanceOperationTime.
func (*MockSessionMockRecorder) Client ¶
func (mr *MockSessionMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client.
func (*MockSessionMockRecorder) ClusterTime ¶
func (mr *MockSessionMockRecorder) ClusterTime() *gomock.Call
ClusterTime indicates an expected call of ClusterTime.
func (*MockSessionMockRecorder) CommitTransaction ¶
func (mr *MockSessionMockRecorder) CommitTransaction(ctx any) *gomock.Call
CommitTransaction indicates an expected call of CommitTransaction.
func (*MockSessionMockRecorder) EndSession ¶
func (mr *MockSessionMockRecorder) EndSession(ctx any) *gomock.Call
EndSession indicates an expected call of EndSession.
func (*MockSessionMockRecorder) ID ¶
func (mr *MockSessionMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockSessionMockRecorder) OperationTime ¶
func (mr *MockSessionMockRecorder) OperationTime() *gomock.Call
OperationTime indicates an expected call of OperationTime.
func (*MockSessionMockRecorder) StartTransaction ¶
func (mr *MockSessionMockRecorder) StartTransaction(opts ...any) *gomock.Call
StartTransaction indicates an expected call of StartTransaction.
func (*MockSessionMockRecorder) WithTransaction ¶
func (mr *MockSessionMockRecorder) WithTransaction(ctx, fn any, opts ...any) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.
type MockSingleResult ¶
type MockSingleResult struct {
// contains filtered or unexported fields
}
MockSingleResult is a mock of SingleResult interface.
func NewMockSingleResult ¶
func NewMockSingleResult(ctrl *gomock.Controller) *MockSingleResult
NewMockSingleResult creates a new mock instance.
func (*MockSingleResult) Decode ¶
func (m *MockSingleResult) Decode(v any) error
Decode mocks base method.
func (*MockSingleResult) DecodeBytes ¶
func (m *MockSingleResult) DecodeBytes() (bson.Raw, error)
DecodeBytes mocks base method.
func (*MockSingleResult) EXPECT ¶
func (m *MockSingleResult) EXPECT() *MockSingleResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSingleResultMockRecorder ¶
type MockSingleResultMockRecorder struct {
// contains filtered or unexported fields
}
MockSingleResultMockRecorder is the mock recorder for MockSingleResult.
func (*MockSingleResultMockRecorder) Decode ¶
func (mr *MockSingleResultMockRecorder) Decode(v any) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockSingleResultMockRecorder) DecodeBytes ¶
func (mr *MockSingleResultMockRecorder) DecodeBytes() *gomock.Call
DecodeBytes indicates an expected call of DecodeBytes.
func (*MockSingleResultMockRecorder) Err ¶
func (mr *MockSingleResultMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockSingleResultMockRecorder) Raw ¶ added in v1.13.0
func (mr *MockSingleResultMockRecorder) Raw() *gomock.Call
Raw indicates an expected call of Raw.