2024-10-17 12:11:31 +08:00
// Code generated by mockery v2.46.0. DO NOT EDIT.
2022-09-07 16:14:35 +08:00
package mocks
import (
context "context"
2023-06-09 01:28:37 +08:00
commonpb "github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
2024-02-29 10:13:00 +08:00
clientv3 "go.etcd.io/etcd/client/v3"
2022-09-07 16:14:35 +08:00
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
2023-06-09 01:28:37 +08:00
milvuspb "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb"
2022-09-07 16:14:35 +08:00
mock "github.com/stretchr/testify/mock"
proxypb "github.com/milvus-io/milvus/internal/proto/proxypb"
rootcoordpb "github.com/milvus-io/milvus/internal/proto/rootcoordpb"
2024-02-29 10:13:00 +08:00
txnkv "github.com/tikv/client-go/v2/txnkv"
types "github.com/milvus-io/milvus/internal/types"
2022-09-07 16:14:35 +08:00
)
2024-02-29 10:13:00 +08:00
// RootCoord is an autogenerated mock type for the RootCoordComponent type
2022-09-07 16:14:35 +08:00
type RootCoord struct {
mock . Mock
}
type RootCoord_Expecter struct {
mock * mock . Mock
}
func ( _m * RootCoord ) EXPECT ( ) * RootCoord_Expecter {
return & RootCoord_Expecter { mock : & _m . Mock }
}
2023-09-26 09:57:25 +08:00
// AllocID provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) AllocID ( _a0 context . Context , _a1 * rootcoordpb . AllocIDRequest ) ( * rootcoordpb . AllocIDResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for AllocID" )
}
2022-09-07 16:14:35 +08:00
var r0 * rootcoordpb . AllocIDResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . AllocIDRequest ) ( * rootcoordpb . AllocIDResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . AllocIDRequest ) * rootcoordpb . AllocIDResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * rootcoordpb . AllocIDResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * rootcoordpb . AllocIDRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_AllocID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocID'
type RootCoord_AllocID_Call struct {
* mock . Call
}
// AllocID is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *rootcoordpb.AllocIDRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) AllocID ( _a0 interface { } , _a1 interface { } ) * RootCoord_AllocID_Call {
return & RootCoord_AllocID_Call { Call : _e . mock . On ( "AllocID" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_AllocID_Call ) Run ( run func ( _a0 context . Context , _a1 * rootcoordpb . AllocIDRequest ) ) * RootCoord_AllocID_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * rootcoordpb . AllocIDRequest ) )
} )
return _c
}
func ( _c * RootCoord_AllocID_Call ) Return ( _a0 * rootcoordpb . AllocIDResponse , _a1 error ) * RootCoord_AllocID_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_AllocID_Call ) RunAndReturn ( run func ( context . Context , * rootcoordpb . AllocIDRequest ) ( * rootcoordpb . AllocIDResponse , error ) ) * RootCoord_AllocID_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// AllocTimestamp provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) AllocTimestamp ( _a0 context . Context , _a1 * rootcoordpb . AllocTimestampRequest ) ( * rootcoordpb . AllocTimestampResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for AllocTimestamp" )
}
2022-09-07 16:14:35 +08:00
var r0 * rootcoordpb . AllocTimestampResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . AllocTimestampRequest ) ( * rootcoordpb . AllocTimestampResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . AllocTimestampRequest ) * rootcoordpb . AllocTimestampResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * rootcoordpb . AllocTimestampResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * rootcoordpb . AllocTimestampRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_AllocTimestamp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllocTimestamp'
type RootCoord_AllocTimestamp_Call struct {
* mock . Call
}
// AllocTimestamp is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *rootcoordpb.AllocTimestampRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) AllocTimestamp ( _a0 interface { } , _a1 interface { } ) * RootCoord_AllocTimestamp_Call {
return & RootCoord_AllocTimestamp_Call { Call : _e . mock . On ( "AllocTimestamp" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_AllocTimestamp_Call ) Run ( run func ( _a0 context . Context , _a1 * rootcoordpb . AllocTimestampRequest ) ) * RootCoord_AllocTimestamp_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * rootcoordpb . AllocTimestampRequest ) )
} )
return _c
}
func ( _c * RootCoord_AllocTimestamp_Call ) Return ( _a0 * rootcoordpb . AllocTimestampResponse , _a1 error ) * RootCoord_AllocTimestamp_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_AllocTimestamp_Call ) RunAndReturn ( run func ( context . Context , * rootcoordpb . AllocTimestampRequest ) ( * rootcoordpb . AllocTimestampResponse , error ) ) * RootCoord_AllocTimestamp_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// AlterAlias provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) AlterAlias ( _a0 context . Context , _a1 * milvuspb . AlterAliasRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for AlterAlias" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterAliasRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterAliasRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . AlterAliasRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_AlterAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterAlias'
type RootCoord_AlterAlias_Call struct {
* mock . Call
}
// AlterAlias is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.AlterAliasRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) AlterAlias ( _a0 interface { } , _a1 interface { } ) * RootCoord_AlterAlias_Call {
return & RootCoord_AlterAlias_Call { Call : _e . mock . On ( "AlterAlias" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_AlterAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . AlterAliasRequest ) ) * RootCoord_AlterAlias_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . AlterAliasRequest ) )
} )
return _c
}
func ( _c * RootCoord_AlterAlias_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_AlterAlias_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_AlterAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . AlterAliasRequest ) ( * commonpb . Status , error ) ) * RootCoord_AlterAlias_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// AlterCollection provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) AlterCollection ( _a0 context . Context , _a1 * milvuspb . AlterCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-10-18 13:39:26 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for AlterCollection" )
}
2022-10-18 13:39:26 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-10-18 13:39:26 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . AlterCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-10-18 13:39:26 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . AlterCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-10-18 13:39:26 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_AlterCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterCollection'
type RootCoord_AlterCollection_Call struct {
* mock . Call
}
// AlterCollection is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.AlterCollectionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) AlterCollection ( _a0 interface { } , _a1 interface { } ) * RootCoord_AlterCollection_Call {
return & RootCoord_AlterCollection_Call { Call : _e . mock . On ( "AlterCollection" , _a0 , _a1 ) }
2022-10-18 13:39:26 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_AlterCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . AlterCollectionRequest ) ) * RootCoord_AlterCollection_Call {
2022-10-18 13:39:26 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . AlterCollectionRequest ) )
} )
return _c
}
func ( _c * RootCoord_AlterCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_AlterCollection_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_AlterCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . AlterCollectionRequest ) ( * commonpb . Status , error ) ) * RootCoord_AlterCollection_Call {
_c . Call . Return ( run )
return _c
}
2024-04-25 10:53:25 +08:00
// AlterDatabase provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) AlterDatabase ( _a0 context . Context , _a1 * rootcoordpb . AlterDatabaseRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for AlterDatabase" )
}
2024-04-25 10:53:25 +08:00
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . AlterDatabaseRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . AlterDatabaseRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * rootcoordpb . AlterDatabaseRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_AlterDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AlterDatabase'
type RootCoord_AlterDatabase_Call struct {
* mock . Call
}
// AlterDatabase is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *rootcoordpb.AlterDatabaseRequest
2024-04-25 10:53:25 +08:00
func ( _e * RootCoord_Expecter ) AlterDatabase ( _a0 interface { } , _a1 interface { } ) * RootCoord_AlterDatabase_Call {
return & RootCoord_AlterDatabase_Call { Call : _e . mock . On ( "AlterDatabase" , _a0 , _a1 ) }
}
func ( _c * RootCoord_AlterDatabase_Call ) Run ( run func ( _a0 context . Context , _a1 * rootcoordpb . AlterDatabaseRequest ) ) * RootCoord_AlterDatabase_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * rootcoordpb . AlterDatabaseRequest ) )
} )
return _c
}
func ( _c * RootCoord_AlterDatabase_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_AlterDatabase_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_AlterDatabase_Call ) RunAndReturn ( run func ( context . Context , * rootcoordpb . AlterDatabaseRequest ) ( * commonpb . Status , error ) ) * RootCoord_AlterDatabase_Call {
_c . Call . Return ( run )
return _c
}
2024-08-16 10:10:53 +08:00
// BackupRBAC provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) BackupRBAC ( _a0 context . Context , _a1 * milvuspb . BackupRBACMetaRequest ) ( * milvuspb . BackupRBACMetaResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for BackupRBAC" )
}
2024-08-16 10:10:53 +08:00
var r0 * milvuspb . BackupRBACMetaResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . BackupRBACMetaRequest ) ( * milvuspb . BackupRBACMetaResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . BackupRBACMetaRequest ) * milvuspb . BackupRBACMetaResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . BackupRBACMetaResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . BackupRBACMetaRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_BackupRBAC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BackupRBAC'
type RootCoord_BackupRBAC_Call struct {
* mock . Call
}
// BackupRBAC is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.BackupRBACMetaRequest
func ( _e * RootCoord_Expecter ) BackupRBAC ( _a0 interface { } , _a1 interface { } ) * RootCoord_BackupRBAC_Call {
return & RootCoord_BackupRBAC_Call { Call : _e . mock . On ( "BackupRBAC" , _a0 , _a1 ) }
}
func ( _c * RootCoord_BackupRBAC_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . BackupRBACMetaRequest ) ) * RootCoord_BackupRBAC_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . BackupRBACMetaRequest ) )
} )
return _c
}
func ( _c * RootCoord_BackupRBAC_Call ) Return ( _a0 * milvuspb . BackupRBACMetaResponse , _a1 error ) * RootCoord_BackupRBAC_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_BackupRBAC_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . BackupRBACMetaRequest ) ( * milvuspb . BackupRBACMetaResponse , error ) ) * RootCoord_BackupRBAC_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CheckHealth provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CheckHealth ( _a0 context . Context , _a1 * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-10-18 13:39:26 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for CheckHealth" )
}
2022-10-18 13:39:26 +08:00
var r0 * milvuspb . CheckHealthResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-10-18 13:39:26 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) * milvuspb . CheckHealthResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-10-18 13:39:26 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . CheckHealthResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-10-18 13:39:26 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CheckHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckHealth'
type RootCoord_CheckHealth_Call struct {
* mock . Call
}
// CheckHealth is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CheckHealthRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) CheckHealth ( _a0 interface { } , _a1 interface { } ) * RootCoord_CheckHealth_Call {
return & RootCoord_CheckHealth_Call { Call : _e . mock . On ( "CheckHealth" , _a0 , _a1 ) }
2022-10-18 13:39:26 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_CheckHealth_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CheckHealthRequest ) ) * RootCoord_CheckHealth_Call {
2022-10-18 13:39:26 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CheckHealthRequest ) )
} )
return _c
}
func ( _c * RootCoord_CheckHealth_Call ) Return ( _a0 * milvuspb . CheckHealthResponse , _a1 error ) * RootCoord_CheckHealth_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_CheckHealth_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) ) * RootCoord_CheckHealth_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateAlias provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CreateAlias ( _a0 context . Context , _a1 * milvuspb . CreateAliasRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateAlias" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateAliasRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateAliasRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateAliasRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CreateAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAlias'
type RootCoord_CreateAlias_Call struct {
* mock . Call
}
// CreateAlias is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateAliasRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) CreateAlias ( _a0 interface { } , _a1 interface { } ) * RootCoord_CreateAlias_Call {
return & RootCoord_CreateAlias_Call { Call : _e . mock . On ( "CreateAlias" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_CreateAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateAliasRequest ) ) * RootCoord_CreateAlias_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateAliasRequest ) )
} )
return _c
}
func ( _c * RootCoord_CreateAlias_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_CreateAlias_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_CreateAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateAliasRequest ) ( * commonpb . Status , error ) ) * RootCoord_CreateAlias_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateCollection provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CreateCollection ( _a0 context . Context , _a1 * milvuspb . CreateCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateCollection" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CreateCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCollection'
type RootCoord_CreateCollection_Call struct {
* mock . Call
}
// CreateCollection is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateCollectionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) CreateCollection ( _a0 interface { } , _a1 interface { } ) * RootCoord_CreateCollection_Call {
return & RootCoord_CreateCollection_Call { Call : _e . mock . On ( "CreateCollection" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_CreateCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateCollectionRequest ) ) * RootCoord_CreateCollection_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateCollectionRequest ) )
} )
return _c
}
func ( _c * RootCoord_CreateCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_CreateCollection_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_CreateCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateCollectionRequest ) ( * commonpb . Status , error ) ) * RootCoord_CreateCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateCredential provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CreateCredential ( _a0 context . Context , _a1 * internalpb . CredentialInfo ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateCredential" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . CredentialInfo ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . CredentialInfo ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . CredentialInfo ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CreateCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCredential'
type RootCoord_CreateCredential_Call struct {
* mock . Call
}
// CreateCredential is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *internalpb.CredentialInfo
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) CreateCredential ( _a0 interface { } , _a1 interface { } ) * RootCoord_CreateCredential_Call {
return & RootCoord_CreateCredential_Call { Call : _e . mock . On ( "CreateCredential" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_CreateCredential_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . CredentialInfo ) ) * RootCoord_CreateCredential_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . CredentialInfo ) )
} )
return _c
}
func ( _c * RootCoord_CreateCredential_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_CreateCredential_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_CreateCredential_Call ) RunAndReturn ( run func ( context . Context , * internalpb . CredentialInfo ) ( * commonpb . Status , error ) ) * RootCoord_CreateCredential_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateDatabase provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CreateDatabase ( _a0 context . Context , _a1 * milvuspb . CreateDatabaseRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateDatabase" )
}
2023-06-25 17:20:43 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateDatabaseRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-06-25 17:20:43 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateDatabaseRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateDatabaseRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CreateDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDatabase'
type RootCoord_CreateDatabase_Call struct {
* mock . Call
}
// CreateDatabase is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateDatabaseRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) CreateDatabase ( _a0 interface { } , _a1 interface { } ) * RootCoord_CreateDatabase_Call {
return & RootCoord_CreateDatabase_Call { Call : _e . mock . On ( "CreateDatabase" , _a0 , _a1 ) }
2023-06-25 17:20:43 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_CreateDatabase_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateDatabaseRequest ) ) * RootCoord_CreateDatabase_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateDatabaseRequest ) )
} )
return _c
}
func ( _c * RootCoord_CreateDatabase_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_CreateDatabase_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_CreateDatabase_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateDatabaseRequest ) ( * commonpb . Status , error ) ) * RootCoord_CreateDatabase_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreatePartition provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CreatePartition ( _a0 context . Context , _a1 * milvuspb . CreatePartitionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreatePartition" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreatePartitionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreatePartitionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreatePartitionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CreatePartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePartition'
type RootCoord_CreatePartition_Call struct {
* mock . Call
}
// CreatePartition is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreatePartitionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) CreatePartition ( _a0 interface { } , _a1 interface { } ) * RootCoord_CreatePartition_Call {
return & RootCoord_CreatePartition_Call { Call : _e . mock . On ( "CreatePartition" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_CreatePartition_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreatePartitionRequest ) ) * RootCoord_CreatePartition_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreatePartitionRequest ) )
} )
return _c
}
func ( _c * RootCoord_CreatePartition_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_CreatePartition_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_CreatePartition_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreatePartitionRequest ) ( * commonpb . Status , error ) ) * RootCoord_CreatePartition_Call {
_c . Call . Return ( run )
return _c
}
2024-11-09 08:44:28 +08:00
// CreatePrivilegeGroup provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CreatePrivilegeGroup ( _a0 context . Context , _a1 * milvuspb . CreatePrivilegeGroupRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
if len ( ret ) == 0 {
panic ( "no return value specified for CreatePrivilegeGroup" )
}
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreatePrivilegeGroupRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreatePrivilegeGroupRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreatePrivilegeGroupRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CreatePrivilegeGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePrivilegeGroup'
type RootCoord_CreatePrivilegeGroup_Call struct {
* mock . Call
}
// CreatePrivilegeGroup is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.CreatePrivilegeGroupRequest
func ( _e * RootCoord_Expecter ) CreatePrivilegeGroup ( _a0 interface { } , _a1 interface { } ) * RootCoord_CreatePrivilegeGroup_Call {
return & RootCoord_CreatePrivilegeGroup_Call { Call : _e . mock . On ( "CreatePrivilegeGroup" , _a0 , _a1 ) }
}
func ( _c * RootCoord_CreatePrivilegeGroup_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreatePrivilegeGroupRequest ) ) * RootCoord_CreatePrivilegeGroup_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreatePrivilegeGroupRequest ) )
} )
return _c
}
func ( _c * RootCoord_CreatePrivilegeGroup_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_CreatePrivilegeGroup_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_CreatePrivilegeGroup_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreatePrivilegeGroupRequest ) ( * commonpb . Status , error ) ) * RootCoord_CreatePrivilegeGroup_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CreateRole provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) CreateRole ( _a0 context . Context , _a1 * milvuspb . CreateRoleRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for CreateRole" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateRoleRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CreateRoleRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CreateRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_CreateRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRole'
type RootCoord_CreateRole_Call struct {
* mock . Call
}
// CreateRole is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.CreateRoleRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) CreateRole ( _a0 interface { } , _a1 interface { } ) * RootCoord_CreateRole_Call {
return & RootCoord_CreateRole_Call { Call : _e . mock . On ( "CreateRole" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_CreateRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . CreateRoleRequest ) ) * RootCoord_CreateRole_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CreateRoleRequest ) )
} )
return _c
}
func ( _c * RootCoord_CreateRole_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_CreateRole_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_CreateRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CreateRoleRequest ) ( * commonpb . Status , error ) ) * RootCoord_CreateRole_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DeleteCredential provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DeleteCredential ( _a0 context . Context , _a1 * milvuspb . DeleteCredentialRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DeleteCredential" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DeleteCredentialRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DeleteCredentialRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DeleteCredentialRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DeleteCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCredential'
type RootCoord_DeleteCredential_Call struct {
* mock . Call
}
// DeleteCredential is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DeleteCredentialRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DeleteCredential ( _a0 interface { } , _a1 interface { } ) * RootCoord_DeleteCredential_Call {
return & RootCoord_DeleteCredential_Call { Call : _e . mock . On ( "DeleteCredential" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DeleteCredential_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DeleteCredentialRequest ) ) * RootCoord_DeleteCredential_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DeleteCredentialRequest ) )
} )
return _c
}
func ( _c * RootCoord_DeleteCredential_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_DeleteCredential_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DeleteCredential_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DeleteCredentialRequest ) ( * commonpb . Status , error ) ) * RootCoord_DeleteCredential_Call {
_c . Call . Return ( run )
return _c
}
2024-01-11 19:12:51 +08:00
// DescribeAlias provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DescribeAlias ( _a0 context . Context , _a1 * milvuspb . DescribeAliasRequest ) ( * milvuspb . DescribeAliasResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DescribeAlias" )
}
2024-01-11 19:12:51 +08:00
var r0 * milvuspb . DescribeAliasResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeAliasRequest ) ( * milvuspb . DescribeAliasResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeAliasRequest ) * milvuspb . DescribeAliasResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DescribeAliasResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DescribeAliasRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DescribeAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeAlias'
type RootCoord_DescribeAlias_Call struct {
* mock . Call
}
// DescribeAlias is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DescribeAliasRequest
2024-01-11 19:12:51 +08:00
func ( _e * RootCoord_Expecter ) DescribeAlias ( _a0 interface { } , _a1 interface { } ) * RootCoord_DescribeAlias_Call {
return & RootCoord_DescribeAlias_Call { Call : _e . mock . On ( "DescribeAlias" , _a0 , _a1 ) }
}
func ( _c * RootCoord_DescribeAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DescribeAliasRequest ) ) * RootCoord_DescribeAlias_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DescribeAliasRequest ) )
} )
return _c
}
func ( _c * RootCoord_DescribeAlias_Call ) Return ( _a0 * milvuspb . DescribeAliasResponse , _a1 error ) * RootCoord_DescribeAlias_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_DescribeAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DescribeAliasRequest ) ( * milvuspb . DescribeAliasResponse , error ) ) * RootCoord_DescribeAlias_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DescribeCollection provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DescribeCollection ( _a0 context . Context , _a1 * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DescribeCollection" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . DescribeCollectionResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) * milvuspb . DescribeCollectionResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DescribeCollectionResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DescribeCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeCollection'
type RootCoord_DescribeCollection_Call struct {
* mock . Call
}
// DescribeCollection is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DescribeCollectionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DescribeCollection ( _a0 interface { } , _a1 interface { } ) * RootCoord_DescribeCollection_Call {
return & RootCoord_DescribeCollection_Call { Call : _e . mock . On ( "DescribeCollection" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DescribeCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DescribeCollectionRequest ) ) * RootCoord_DescribeCollection_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DescribeCollectionRequest ) )
} )
return _c
}
func ( _c * RootCoord_DescribeCollection_Call ) Return ( _a0 * milvuspb . DescribeCollectionResponse , _a1 error ) * RootCoord_DescribeCollection_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DescribeCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) ) * RootCoord_DescribeCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DescribeCollectionInternal provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DescribeCollectionInternal ( _a0 context . Context , _a1 * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-01-04 16:37:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DescribeCollectionInternal" )
}
2023-01-04 16:37:35 +08:00
var r0 * milvuspb . DescribeCollectionResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-01-04 16:37:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) * milvuspb . DescribeCollectionResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-01-04 16:37:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . DescribeCollectionResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DescribeCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-01-04 16:37:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DescribeCollectionInternal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeCollectionInternal'
type RootCoord_DescribeCollectionInternal_Call struct {
* mock . Call
}
// DescribeCollectionInternal is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DescribeCollectionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DescribeCollectionInternal ( _a0 interface { } , _a1 interface { } ) * RootCoord_DescribeCollectionInternal_Call {
return & RootCoord_DescribeCollectionInternal_Call { Call : _e . mock . On ( "DescribeCollectionInternal" , _a0 , _a1 ) }
2023-01-04 16:37:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DescribeCollectionInternal_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DescribeCollectionRequest ) ) * RootCoord_DescribeCollectionInternal_Call {
2023-01-04 16:37:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DescribeCollectionRequest ) )
} )
return _c
}
func ( _c * RootCoord_DescribeCollectionInternal_Call ) Return ( _a0 * milvuspb . DescribeCollectionResponse , _a1 error ) * RootCoord_DescribeCollectionInternal_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DescribeCollectionInternal_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DescribeCollectionRequest ) ( * milvuspb . DescribeCollectionResponse , error ) ) * RootCoord_DescribeCollectionInternal_Call {
_c . Call . Return ( run )
return _c
}
2024-04-12 16:01:19 +08:00
// DescribeDatabase provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DescribeDatabase ( _a0 context . Context , _a1 * rootcoordpb . DescribeDatabaseRequest ) ( * rootcoordpb . DescribeDatabaseResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DescribeDatabase" )
}
2024-04-12 16:01:19 +08:00
var r0 * rootcoordpb . DescribeDatabaseResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . DescribeDatabaseRequest ) ( * rootcoordpb . DescribeDatabaseResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . DescribeDatabaseRequest ) * rootcoordpb . DescribeDatabaseResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * rootcoordpb . DescribeDatabaseResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * rootcoordpb . DescribeDatabaseRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DescribeDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeDatabase'
type RootCoord_DescribeDatabase_Call struct {
* mock . Call
}
// DescribeDatabase is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *rootcoordpb.DescribeDatabaseRequest
2024-04-12 16:01:19 +08:00
func ( _e * RootCoord_Expecter ) DescribeDatabase ( _a0 interface { } , _a1 interface { } ) * RootCoord_DescribeDatabase_Call {
return & RootCoord_DescribeDatabase_Call { Call : _e . mock . On ( "DescribeDatabase" , _a0 , _a1 ) }
}
func ( _c * RootCoord_DescribeDatabase_Call ) Run ( run func ( _a0 context . Context , _a1 * rootcoordpb . DescribeDatabaseRequest ) ) * RootCoord_DescribeDatabase_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * rootcoordpb . DescribeDatabaseRequest ) )
} )
return _c
}
func ( _c * RootCoord_DescribeDatabase_Call ) Return ( _a0 * rootcoordpb . DescribeDatabaseResponse , _a1 error ) * RootCoord_DescribeDatabase_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_DescribeDatabase_Call ) RunAndReturn ( run func ( context . Context , * rootcoordpb . DescribeDatabaseRequest ) ( * rootcoordpb . DescribeDatabaseResponse , error ) ) * RootCoord_DescribeDatabase_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropAlias provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DropAlias ( _a0 context . Context , _a1 * milvuspb . DropAliasRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DropAlias" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropAliasRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropAliasRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropAliasRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DropAlias_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropAlias'
type RootCoord_DropAlias_Call struct {
* mock . Call
}
// DropAlias is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropAliasRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DropAlias ( _a0 interface { } , _a1 interface { } ) * RootCoord_DropAlias_Call {
return & RootCoord_DropAlias_Call { Call : _e . mock . On ( "DropAlias" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DropAlias_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropAliasRequest ) ) * RootCoord_DropAlias_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropAliasRequest ) )
} )
return _c
}
func ( _c * RootCoord_DropAlias_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_DropAlias_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DropAlias_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropAliasRequest ) ( * commonpb . Status , error ) ) * RootCoord_DropAlias_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropCollection provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DropCollection ( _a0 context . Context , _a1 * milvuspb . DropCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DropCollection" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DropCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropCollection'
type RootCoord_DropCollection_Call struct {
* mock . Call
}
// DropCollection is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropCollectionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DropCollection ( _a0 interface { } , _a1 interface { } ) * RootCoord_DropCollection_Call {
return & RootCoord_DropCollection_Call { Call : _e . mock . On ( "DropCollection" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DropCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropCollectionRequest ) ) * RootCoord_DropCollection_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropCollectionRequest ) )
} )
return _c
}
func ( _c * RootCoord_DropCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_DropCollection_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DropCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropCollectionRequest ) ( * commonpb . Status , error ) ) * RootCoord_DropCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropDatabase provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DropDatabase ( _a0 context . Context , _a1 * milvuspb . DropDatabaseRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DropDatabase" )
}
2023-06-25 17:20:43 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropDatabaseRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-06-25 17:20:43 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropDatabaseRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropDatabaseRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DropDatabase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropDatabase'
type RootCoord_DropDatabase_Call struct {
* mock . Call
}
// DropDatabase is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropDatabaseRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DropDatabase ( _a0 interface { } , _a1 interface { } ) * RootCoord_DropDatabase_Call {
return & RootCoord_DropDatabase_Call { Call : _e . mock . On ( "DropDatabase" , _a0 , _a1 ) }
2023-06-25 17:20:43 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DropDatabase_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropDatabaseRequest ) ) * RootCoord_DropDatabase_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropDatabaseRequest ) )
} )
return _c
}
func ( _c * RootCoord_DropDatabase_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_DropDatabase_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DropDatabase_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropDatabaseRequest ) ( * commonpb . Status , error ) ) * RootCoord_DropDatabase_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropPartition provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DropPartition ( _a0 context . Context , _a1 * milvuspb . DropPartitionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DropPartition" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropPartitionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropPartitionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropPartitionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DropPartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropPartition'
type RootCoord_DropPartition_Call struct {
* mock . Call
}
// DropPartition is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropPartitionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DropPartition ( _a0 interface { } , _a1 interface { } ) * RootCoord_DropPartition_Call {
return & RootCoord_DropPartition_Call { Call : _e . mock . On ( "DropPartition" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DropPartition_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropPartitionRequest ) ) * RootCoord_DropPartition_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropPartitionRequest ) )
} )
return _c
}
func ( _c * RootCoord_DropPartition_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_DropPartition_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DropPartition_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropPartitionRequest ) ( * commonpb . Status , error ) ) * RootCoord_DropPartition_Call {
_c . Call . Return ( run )
return _c
}
2024-11-09 08:44:28 +08:00
// DropPrivilegeGroup provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DropPrivilegeGroup ( _a0 context . Context , _a1 * milvuspb . DropPrivilegeGroupRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
if len ( ret ) == 0 {
panic ( "no return value specified for DropPrivilegeGroup" )
}
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropPrivilegeGroupRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropPrivilegeGroupRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropPrivilegeGroupRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DropPrivilegeGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropPrivilegeGroup'
type RootCoord_DropPrivilegeGroup_Call struct {
* mock . Call
}
// DropPrivilegeGroup is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.DropPrivilegeGroupRequest
func ( _e * RootCoord_Expecter ) DropPrivilegeGroup ( _a0 interface { } , _a1 interface { } ) * RootCoord_DropPrivilegeGroup_Call {
return & RootCoord_DropPrivilegeGroup_Call { Call : _e . mock . On ( "DropPrivilegeGroup" , _a0 , _a1 ) }
}
func ( _c * RootCoord_DropPrivilegeGroup_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropPrivilegeGroupRequest ) ) * RootCoord_DropPrivilegeGroup_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropPrivilegeGroupRequest ) )
} )
return _c
}
func ( _c * RootCoord_DropPrivilegeGroup_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_DropPrivilegeGroup_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_DropPrivilegeGroup_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropPrivilegeGroupRequest ) ( * commonpb . Status , error ) ) * RootCoord_DropPrivilegeGroup_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// DropRole provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) DropRole ( _a0 context . Context , _a1 * milvuspb . DropRoleRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for DropRole" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropRoleRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . DropRoleRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . DropRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_DropRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropRole'
type RootCoord_DropRole_Call struct {
* mock . Call
}
// DropRole is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.DropRoleRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) DropRole ( _a0 interface { } , _a1 interface { } ) * RootCoord_DropRole_Call {
return & RootCoord_DropRole_Call { Call : _e . mock . On ( "DropRole" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_DropRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . DropRoleRequest ) ) * RootCoord_DropRole_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . DropRoleRequest ) )
} )
return _c
}
func ( _c * RootCoord_DropRole_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_DropRole_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_DropRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . DropRoleRequest ) ( * commonpb . Status , error ) ) * RootCoord_DropRole_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetComponentStates provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) GetComponentStates ( _a0 context . Context , _a1 * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetComponentStates" )
}
2022-10-10 15:55:22 +08:00
var r0 * milvuspb . ComponentStates
2023-07-14 10:12:31 +08:00
var r1 error
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) ) ; ok {
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) * milvuspb . ComponentStates ) ; ok {
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
2022-10-10 15:55:22 +08:00
r0 = ret . Get ( 0 ) . ( * milvuspb . ComponentStates )
2022-09-07 16:14:35 +08:00
}
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_GetComponentStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentStates'
type RootCoord_GetComponentStates_Call struct {
* mock . Call
}
// GetComponentStates is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetComponentStatesRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) GetComponentStates ( _a0 interface { } , _a1 interface { } ) * RootCoord_GetComponentStates_Call {
return & RootCoord_GetComponentStates_Call { Call : _e . mock . On ( "GetComponentStates" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_GetComponentStates_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetComponentStatesRequest ) ) * RootCoord_GetComponentStates_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetComponentStatesRequest ) )
2022-09-07 16:14:35 +08:00
} )
return _c
}
2022-10-10 15:55:22 +08:00
func ( _c * RootCoord_GetComponentStates_Call ) Return ( _a0 * milvuspb . ComponentStates , _a1 error ) * RootCoord_GetComponentStates_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_GetComponentStates_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) ) * RootCoord_GetComponentStates_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetCredential provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) GetCredential ( _a0 context . Context , _a1 * rootcoordpb . GetCredentialRequest ) ( * rootcoordpb . GetCredentialResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetCredential" )
}
2022-09-07 16:14:35 +08:00
var r0 * rootcoordpb . GetCredentialResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . GetCredentialRequest ) ( * rootcoordpb . GetCredentialResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . GetCredentialRequest ) * rootcoordpb . GetCredentialResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * rootcoordpb . GetCredentialResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * rootcoordpb . GetCredentialRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_GetCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCredential'
type RootCoord_GetCredential_Call struct {
* mock . Call
}
// GetCredential is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *rootcoordpb.GetCredentialRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) GetCredential ( _a0 interface { } , _a1 interface { } ) * RootCoord_GetCredential_Call {
return & RootCoord_GetCredential_Call { Call : _e . mock . On ( "GetCredential" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_GetCredential_Call ) Run ( run func ( _a0 context . Context , _a1 * rootcoordpb . GetCredentialRequest ) ) * RootCoord_GetCredential_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * rootcoordpb . GetCredentialRequest ) )
} )
return _c
}
func ( _c * RootCoord_GetCredential_Call ) Return ( _a0 * rootcoordpb . GetCredentialResponse , _a1 error ) * RootCoord_GetCredential_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_GetCredential_Call ) RunAndReturn ( run func ( context . Context , * rootcoordpb . GetCredentialRequest ) ( * rootcoordpb . GetCredentialResponse , error ) ) * RootCoord_GetCredential_Call {
_c . Call . Return ( run )
return _c
}
2024-02-29 10:13:00 +08:00
// GetMetrics provides a mock function with given fields: ctx, req
func ( _m * RootCoord ) GetMetrics ( ctx context . Context , req * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) {
ret := _m . Called ( ctx , req )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetMetrics" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . GetMetricsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) ; ok {
2024-02-29 10:13:00 +08:00
return rf ( ctx , req )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) * milvuspb . GetMetricsResponse ) ; ok {
2024-02-29 10:13:00 +08:00
r0 = rf ( ctx , req )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetMetricsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) error ) ; ok {
2024-02-29 10:13:00 +08:00
r1 = rf ( ctx , req )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_GetMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetrics'
type RootCoord_GetMetrics_Call struct {
* mock . Call
}
// GetMetrics is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - ctx context.Context
// - req *milvuspb.GetMetricsRequest
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) GetMetrics ( ctx interface { } , req interface { } ) * RootCoord_GetMetrics_Call {
return & RootCoord_GetMetrics_Call { Call : _e . mock . On ( "GetMetrics" , ctx , req ) }
2022-09-07 16:14:35 +08:00
}
2024-02-29 10:13:00 +08:00
func ( _c * RootCoord_GetMetrics_Call ) Run ( run func ( ctx context . Context , req * milvuspb . GetMetricsRequest ) ) * RootCoord_GetMetrics_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetMetricsRequest ) )
} )
return _c
}
func ( _c * RootCoord_GetMetrics_Call ) Return ( _a0 * milvuspb . GetMetricsResponse , _a1 error ) * RootCoord_GetMetrics_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_GetMetrics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) * RootCoord_GetMetrics_Call {
_c . Call . Return ( run )
return _c
}
2024-07-25 13:29:45 +08:00
// GetPChannelInfo provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) GetPChannelInfo ( _a0 context . Context , _a1 * rootcoordpb . GetPChannelInfoRequest ) ( * rootcoordpb . GetPChannelInfoResponse , error ) {
2023-09-26 09:57:25 +08:00
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetPChannelInfo" )
}
2024-07-25 13:29:45 +08:00
var r0 * rootcoordpb . GetPChannelInfoResponse
2023-07-14 10:12:31 +08:00
var r1 error
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . GetPChannelInfoRequest ) ( * rootcoordpb . GetPChannelInfoResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * rootcoordpb . GetPChannelInfoRequest ) * rootcoordpb . GetPChannelInfoResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
2024-07-25 13:29:45 +08:00
r0 = ret . Get ( 0 ) . ( * rootcoordpb . GetPChannelInfoResponse )
2022-09-07 16:14:35 +08:00
}
}
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * rootcoordpb . GetPChannelInfoRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2024-07-25 13:29:45 +08:00
// RootCoord_GetPChannelInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPChannelInfo'
type RootCoord_GetPChannelInfo_Call struct {
2022-09-07 16:14:35 +08:00
* mock . Call
}
2024-07-25 13:29:45 +08:00
// GetPChannelInfo is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
2024-07-25 13:29:45 +08:00
// - _a1 *rootcoordpb.GetPChannelInfoRequest
func ( _e * RootCoord_Expecter ) GetPChannelInfo ( _a0 interface { } , _a1 interface { } ) * RootCoord_GetPChannelInfo_Call {
return & RootCoord_GetPChannelInfo_Call { Call : _e . mock . On ( "GetPChannelInfo" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetPChannelInfo_Call ) Run ( run func ( _a0 context . Context , _a1 * rootcoordpb . GetPChannelInfoRequest ) ) * RootCoord_GetPChannelInfo_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2024-07-25 13:29:45 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * rootcoordpb . GetPChannelInfoRequest ) )
2022-09-07 16:14:35 +08:00
} )
return _c
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetPChannelInfo_Call ) Return ( _a0 * rootcoordpb . GetPChannelInfoResponse , _a1 error ) * RootCoord_GetPChannelInfo_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetPChannelInfo_Call ) RunAndReturn ( run func ( context . Context , * rootcoordpb . GetPChannelInfoRequest ) ( * rootcoordpb . GetPChannelInfoResponse , error ) ) * RootCoord_GetPChannelInfo_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( run )
return _c
}
2024-07-25 13:29:45 +08:00
// GetStatisticsChannel provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) GetStatisticsChannel ( _a0 context . Context , _a1 * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) {
2023-09-26 09:57:25 +08:00
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetStatisticsChannel" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . StringResponse
2023-07-14 10:12:31 +08:00
var r1 error
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) * milvuspb . StringResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
}
}
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2024-07-25 13:29:45 +08:00
// RootCoord_GetStatisticsChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatisticsChannel'
type RootCoord_GetStatisticsChannel_Call struct {
2022-09-07 16:14:35 +08:00
* mock . Call
}
2024-07-25 13:29:45 +08:00
// GetStatisticsChannel is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
2024-07-25 13:29:45 +08:00
// - _a1 *internalpb.GetStatisticsChannelRequest
func ( _e * RootCoord_Expecter ) GetStatisticsChannel ( _a0 interface { } , _a1 interface { } ) * RootCoord_GetStatisticsChannel_Call {
return & RootCoord_GetStatisticsChannel_Call { Call : _e . mock . On ( "GetStatisticsChannel" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetStatisticsChannel_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . GetStatisticsChannelRequest ) ) * RootCoord_GetStatisticsChannel_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2024-07-25 13:29:45 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . GetStatisticsChannelRequest ) )
2022-09-07 16:14:35 +08:00
} )
return _c
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetStatisticsChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * RootCoord_GetStatisticsChannel_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetStatisticsChannel_Call ) RunAndReturn ( run func ( context . Context , * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) ) * RootCoord_GetStatisticsChannel_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( run )
return _c
}
2024-07-25 13:29:45 +08:00
// GetTimeTickChannel provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) GetTimeTickChannel ( _a0 context . Context , _a1 * internalpb . GetTimeTickChannelRequest ) ( * milvuspb . StringResponse , error ) {
2024-07-22 11:33:51 +08:00
ret := _m . Called ( _a0 , _a1 )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for GetTimeTickChannel" )
}
2024-07-25 13:29:45 +08:00
var r0 * milvuspb . StringResponse
2024-07-22 11:33:51 +08:00
var r1 error
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetTimeTickChannelRequest ) ( * milvuspb . StringResponse , error ) ) ; ok {
2024-07-22 11:33:51 +08:00
return rf ( _a0 , _a1 )
}
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetTimeTickChannelRequest ) * milvuspb . StringResponse ) ; ok {
2024-07-22 11:33:51 +08:00
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
2024-07-25 13:29:45 +08:00
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
2024-07-22 11:33:51 +08:00
}
}
2024-07-25 13:29:45 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . GetTimeTickChannelRequest ) error ) ; ok {
2024-07-22 11:33:51 +08:00
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2024-07-25 13:29:45 +08:00
// RootCoord_GetTimeTickChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTimeTickChannel'
type RootCoord_GetTimeTickChannel_Call struct {
2024-07-22 11:33:51 +08:00
* mock . Call
}
2024-07-25 13:29:45 +08:00
// GetTimeTickChannel is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
2024-07-25 13:29:45 +08:00
// - _a1 *internalpb.GetTimeTickChannelRequest
func ( _e * RootCoord_Expecter ) GetTimeTickChannel ( _a0 interface { } , _a1 interface { } ) * RootCoord_GetTimeTickChannel_Call {
return & RootCoord_GetTimeTickChannel_Call { Call : _e . mock . On ( "GetTimeTickChannel" , _a0 , _a1 ) }
2024-07-22 11:33:51 +08:00
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetTimeTickChannel_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . GetTimeTickChannelRequest ) ) * RootCoord_GetTimeTickChannel_Call {
2024-07-22 11:33:51 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2024-07-25 13:29:45 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . GetTimeTickChannelRequest ) )
2024-07-22 11:33:51 +08:00
} )
return _c
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetTimeTickChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * RootCoord_GetTimeTickChannel_Call {
2024-07-22 11:33:51 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2024-07-25 13:29:45 +08:00
func ( _c * RootCoord_GetTimeTickChannel_Call ) RunAndReturn ( run func ( context . Context , * internalpb . GetTimeTickChannelRequest ) ( * milvuspb . StringResponse , error ) ) * RootCoord_GetTimeTickChannel_Call {
2024-07-22 11:33:51 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// HasCollection provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) HasCollection ( _a0 context . Context , _a1 * milvuspb . HasCollectionRequest ) ( * milvuspb . BoolResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for HasCollection" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . BoolResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasCollectionRequest ) ( * milvuspb . BoolResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasCollectionRequest ) * milvuspb . BoolResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . BoolResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . HasCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_HasCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasCollection'
type RootCoord_HasCollection_Call struct {
* mock . Call
}
// HasCollection is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.HasCollectionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) HasCollection ( _a0 interface { } , _a1 interface { } ) * RootCoord_HasCollection_Call {
return & RootCoord_HasCollection_Call { Call : _e . mock . On ( "HasCollection" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_HasCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . HasCollectionRequest ) ) * RootCoord_HasCollection_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . HasCollectionRequest ) )
} )
return _c
}
func ( _c * RootCoord_HasCollection_Call ) Return ( _a0 * milvuspb . BoolResponse , _a1 error ) * RootCoord_HasCollection_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_HasCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . HasCollectionRequest ) ( * milvuspb . BoolResponse , error ) ) * RootCoord_HasCollection_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// HasPartition provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) HasPartition ( _a0 context . Context , _a1 * milvuspb . HasPartitionRequest ) ( * milvuspb . BoolResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for HasPartition" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . BoolResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasPartitionRequest ) ( * milvuspb . BoolResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . HasPartitionRequest ) * milvuspb . BoolResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . BoolResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . HasPartitionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_HasPartition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasPartition'
type RootCoord_HasPartition_Call struct {
* mock . Call
}
// HasPartition is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.HasPartitionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) HasPartition ( _a0 interface { } , _a1 interface { } ) * RootCoord_HasPartition_Call {
return & RootCoord_HasPartition_Call { Call : _e . mock . On ( "HasPartition" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_HasPartition_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . HasPartitionRequest ) ) * RootCoord_HasPartition_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . HasPartitionRequest ) )
} )
return _c
}
func ( _c * RootCoord_HasPartition_Call ) Return ( _a0 * milvuspb . BoolResponse , _a1 error ) * RootCoord_HasPartition_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_HasPartition_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . HasPartitionRequest ) ( * milvuspb . BoolResponse , error ) ) * RootCoord_HasPartition_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 16:14:35 +08:00
// Init provides a mock function with given fields:
func ( _m * RootCoord ) Init ( ) error {
ret := _m . Called ( )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for Init" )
}
2022-09-07 16:14:35 +08:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RootCoord_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
type RootCoord_Init_Call struct {
* mock . Call
}
// Init is a helper method to define mock.On call
func ( _e * RootCoord_Expecter ) Init ( ) * RootCoord_Init_Call {
return & RootCoord_Init_Call { Call : _e . mock . On ( "Init" ) }
}
func ( _c * RootCoord_Init_Call ) Run ( run func ( ) ) * RootCoord_Init_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * RootCoord_Init_Call ) Return ( _a0 error ) * RootCoord_Init_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_Init_Call ) RunAndReturn ( run func ( ) error ) * RootCoord_Init_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// InvalidateCollectionMetaCache provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) InvalidateCollectionMetaCache ( _a0 context . Context , _a1 * proxypb . InvalidateCollMetaCacheRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for InvalidateCollectionMetaCache" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_InvalidateCollectionMetaCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvalidateCollectionMetaCache'
type RootCoord_InvalidateCollectionMetaCache_Call struct {
* mock . Call
}
// InvalidateCollectionMetaCache is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *proxypb.InvalidateCollMetaCacheRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) InvalidateCollectionMetaCache ( _a0 interface { } , _a1 interface { } ) * RootCoord_InvalidateCollectionMetaCache_Call {
return & RootCoord_InvalidateCollectionMetaCache_Call { Call : _e . mock . On ( "InvalidateCollectionMetaCache" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_InvalidateCollectionMetaCache_Call ) Run ( run func ( _a0 context . Context , _a1 * proxypb . InvalidateCollMetaCacheRequest ) ) * RootCoord_InvalidateCollectionMetaCache_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * proxypb . InvalidateCollMetaCacheRequest ) )
} )
return _c
}
func ( _c * RootCoord_InvalidateCollectionMetaCache_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_InvalidateCollectionMetaCache_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_InvalidateCollectionMetaCache_Call ) RunAndReturn ( run func ( context . Context , * proxypb . InvalidateCollMetaCacheRequest ) ( * commonpb . Status , error ) ) * RootCoord_InvalidateCollectionMetaCache_Call {
_c . Call . Return ( run )
return _c
}
2024-01-11 19:12:51 +08:00
// ListAliases provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ListAliases ( _a0 context . Context , _a1 * milvuspb . ListAliasesRequest ) ( * milvuspb . ListAliasesResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ListAliases" )
}
2024-01-11 19:12:51 +08:00
var r0 * milvuspb . ListAliasesResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListAliasesRequest ) ( * milvuspb . ListAliasesResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListAliasesRequest ) * milvuspb . ListAliasesResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListAliasesResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListAliasesRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ListAliases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAliases'
type RootCoord_ListAliases_Call struct {
* mock . Call
}
// ListAliases is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ListAliasesRequest
2024-01-11 19:12:51 +08:00
func ( _e * RootCoord_Expecter ) ListAliases ( _a0 interface { } , _a1 interface { } ) * RootCoord_ListAliases_Call {
return & RootCoord_ListAliases_Call { Call : _e . mock . On ( "ListAliases" , _a0 , _a1 ) }
}
func ( _c * RootCoord_ListAliases_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListAliasesRequest ) ) * RootCoord_ListAliases_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListAliasesRequest ) )
} )
return _c
}
func ( _c * RootCoord_ListAliases_Call ) Return ( _a0 * milvuspb . ListAliasesResponse , _a1 error ) * RootCoord_ListAliases_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_ListAliases_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListAliasesRequest ) ( * milvuspb . ListAliasesResponse , error ) ) * RootCoord_ListAliases_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListCredUsers provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ListCredUsers ( _a0 context . Context , _a1 * milvuspb . ListCredUsersRequest ) ( * milvuspb . ListCredUsersResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ListCredUsers" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . ListCredUsersResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListCredUsersRequest ) ( * milvuspb . ListCredUsersResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListCredUsersRequest ) * milvuspb . ListCredUsersResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListCredUsersResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListCredUsersRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ListCredUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCredUsers'
type RootCoord_ListCredUsers_Call struct {
* mock . Call
}
// ListCredUsers is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ListCredUsersRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ListCredUsers ( _a0 interface { } , _a1 interface { } ) * RootCoord_ListCredUsers_Call {
return & RootCoord_ListCredUsers_Call { Call : _e . mock . On ( "ListCredUsers" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ListCredUsers_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListCredUsersRequest ) ) * RootCoord_ListCredUsers_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListCredUsersRequest ) )
} )
return _c
}
func ( _c * RootCoord_ListCredUsers_Call ) Return ( _a0 * milvuspb . ListCredUsersResponse , _a1 error ) * RootCoord_ListCredUsers_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ListCredUsers_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListCredUsersRequest ) ( * milvuspb . ListCredUsersResponse , error ) ) * RootCoord_ListCredUsers_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListDatabases provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ListDatabases ( _a0 context . Context , _a1 * milvuspb . ListDatabasesRequest ) ( * milvuspb . ListDatabasesResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ListDatabases" )
}
2023-06-25 17:20:43 +08:00
var r0 * milvuspb . ListDatabasesResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListDatabasesRequest ) ( * milvuspb . ListDatabasesResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-06-25 17:20:43 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListDatabasesRequest ) * milvuspb . ListDatabasesResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListDatabasesResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListDatabasesRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-06-25 17:20:43 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ListDatabases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDatabases'
type RootCoord_ListDatabases_Call struct {
* mock . Call
}
// ListDatabases is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ListDatabasesRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ListDatabases ( _a0 interface { } , _a1 interface { } ) * RootCoord_ListDatabases_Call {
return & RootCoord_ListDatabases_Call { Call : _e . mock . On ( "ListDatabases" , _a0 , _a1 ) }
2023-06-25 17:20:43 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ListDatabases_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListDatabasesRequest ) ) * RootCoord_ListDatabases_Call {
2023-06-25 17:20:43 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListDatabasesRequest ) )
} )
return _c
}
func ( _c * RootCoord_ListDatabases_Call ) Return ( _a0 * milvuspb . ListDatabasesResponse , _a1 error ) * RootCoord_ListDatabases_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ListDatabases_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListDatabasesRequest ) ( * milvuspb . ListDatabasesResponse , error ) ) * RootCoord_ListDatabases_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ListPolicy provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ListPolicy ( _a0 context . Context , _a1 * internalpb . ListPolicyRequest ) ( * internalpb . ListPolicyResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ListPolicy" )
}
2022-09-07 16:14:35 +08:00
var r0 * internalpb . ListPolicyResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ListPolicyRequest ) ( * internalpb . ListPolicyResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ListPolicyRequest ) * internalpb . ListPolicyResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * internalpb . ListPolicyResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . ListPolicyRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ListPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPolicy'
type RootCoord_ListPolicy_Call struct {
* mock . Call
}
// ListPolicy is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *internalpb.ListPolicyRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ListPolicy ( _a0 interface { } , _a1 interface { } ) * RootCoord_ListPolicy_Call {
return & RootCoord_ListPolicy_Call { Call : _e . mock . On ( "ListPolicy" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ListPolicy_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . ListPolicyRequest ) ) * RootCoord_ListPolicy_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . ListPolicyRequest ) )
} )
return _c
}
func ( _c * RootCoord_ListPolicy_Call ) Return ( _a0 * internalpb . ListPolicyResponse , _a1 error ) * RootCoord_ListPolicy_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ListPolicy_Call ) RunAndReturn ( run func ( context . Context , * internalpb . ListPolicyRequest ) ( * internalpb . ListPolicyResponse , error ) ) * RootCoord_ListPolicy_Call {
_c . Call . Return ( run )
return _c
}
2024-11-09 08:44:28 +08:00
// ListPrivilegeGroups provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ListPrivilegeGroups ( _a0 context . Context , _a1 * milvuspb . ListPrivilegeGroupsRequest ) ( * milvuspb . ListPrivilegeGroupsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
if len ( ret ) == 0 {
panic ( "no return value specified for ListPrivilegeGroups" )
}
var r0 * milvuspb . ListPrivilegeGroupsResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListPrivilegeGroupsRequest ) ( * milvuspb . ListPrivilegeGroupsResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ListPrivilegeGroupsRequest ) * milvuspb . ListPrivilegeGroupsResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ListPrivilegeGroupsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ListPrivilegeGroupsRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ListPrivilegeGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPrivilegeGroups'
type RootCoord_ListPrivilegeGroups_Call struct {
* mock . Call
}
// ListPrivilegeGroups is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.ListPrivilegeGroupsRequest
func ( _e * RootCoord_Expecter ) ListPrivilegeGroups ( _a0 interface { } , _a1 interface { } ) * RootCoord_ListPrivilegeGroups_Call {
return & RootCoord_ListPrivilegeGroups_Call { Call : _e . mock . On ( "ListPrivilegeGroups" , _a0 , _a1 ) }
}
func ( _c * RootCoord_ListPrivilegeGroups_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ListPrivilegeGroupsRequest ) ) * RootCoord_ListPrivilegeGroups_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ListPrivilegeGroupsRequest ) )
} )
return _c
}
func ( _c * RootCoord_ListPrivilegeGroups_Call ) Return ( _a0 * milvuspb . ListPrivilegeGroupsResponse , _a1 error ) * RootCoord_ListPrivilegeGroups_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_ListPrivilegeGroups_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ListPrivilegeGroupsRequest ) ( * milvuspb . ListPrivilegeGroupsResponse , error ) ) * RootCoord_ListPrivilegeGroups_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// OperatePrivilege provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) OperatePrivilege ( _a0 context . Context , _a1 * milvuspb . OperatePrivilegeRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for OperatePrivilege" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_OperatePrivilege_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperatePrivilege'
type RootCoord_OperatePrivilege_Call struct {
* mock . Call
}
// OperatePrivilege is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.OperatePrivilegeRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) OperatePrivilege ( _a0 interface { } , _a1 interface { } ) * RootCoord_OperatePrivilege_Call {
return & RootCoord_OperatePrivilege_Call { Call : _e . mock . On ( "OperatePrivilege" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_OperatePrivilege_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . OperatePrivilegeRequest ) ) * RootCoord_OperatePrivilege_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . OperatePrivilegeRequest ) )
} )
return _c
}
func ( _c * RootCoord_OperatePrivilege_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_OperatePrivilege_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_OperatePrivilege_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . OperatePrivilegeRequest ) ( * commonpb . Status , error ) ) * RootCoord_OperatePrivilege_Call {
_c . Call . Return ( run )
return _c
}
2024-11-09 08:44:28 +08:00
// OperatePrivilegeGroup provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) OperatePrivilegeGroup ( _a0 context . Context , _a1 * milvuspb . OperatePrivilegeGroupRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
if len ( ret ) == 0 {
panic ( "no return value specified for OperatePrivilegeGroup" )
}
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeGroupRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeGroupRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . OperatePrivilegeGroupRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_OperatePrivilegeGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperatePrivilegeGroup'
type RootCoord_OperatePrivilegeGroup_Call struct {
* mock . Call
}
// OperatePrivilegeGroup is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.OperatePrivilegeGroupRequest
func ( _e * RootCoord_Expecter ) OperatePrivilegeGroup ( _a0 interface { } , _a1 interface { } ) * RootCoord_OperatePrivilegeGroup_Call {
return & RootCoord_OperatePrivilegeGroup_Call { Call : _e . mock . On ( "OperatePrivilegeGroup" , _a0 , _a1 ) }
}
func ( _c * RootCoord_OperatePrivilegeGroup_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . OperatePrivilegeGroupRequest ) ) * RootCoord_OperatePrivilegeGroup_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . OperatePrivilegeGroupRequest ) )
} )
return _c
}
func ( _c * RootCoord_OperatePrivilegeGroup_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_OperatePrivilegeGroup_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_OperatePrivilegeGroup_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . OperatePrivilegeGroupRequest ) ( * commonpb . Status , error ) ) * RootCoord_OperatePrivilegeGroup_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// OperateUserRole provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) OperateUserRole ( _a0 context . Context , _a1 * milvuspb . OperateUserRoleRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for OperateUserRole" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperateUserRoleRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . OperateUserRoleRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . OperateUserRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_OperateUserRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperateUserRole'
type RootCoord_OperateUserRole_Call struct {
* mock . Call
}
// OperateUserRole is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.OperateUserRoleRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) OperateUserRole ( _a0 interface { } , _a1 interface { } ) * RootCoord_OperateUserRole_Call {
return & RootCoord_OperateUserRole_Call { Call : _e . mock . On ( "OperateUserRole" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_OperateUserRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . OperateUserRoleRequest ) ) * RootCoord_OperateUserRole_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . OperateUserRoleRequest ) )
} )
return _c
}
func ( _c * RootCoord_OperateUserRole_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_OperateUserRole_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_OperateUserRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . OperateUserRoleRequest ) ( * commonpb . Status , error ) ) * RootCoord_OperateUserRole_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 16:14:35 +08:00
// Register provides a mock function with given fields:
func ( _m * RootCoord ) Register ( ) error {
ret := _m . Called ( )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for Register" )
}
2022-09-07 16:14:35 +08:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RootCoord_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
type RootCoord_Register_Call struct {
* mock . Call
}
// Register is a helper method to define mock.On call
func ( _e * RootCoord_Expecter ) Register ( ) * RootCoord_Register_Call {
return & RootCoord_Register_Call { Call : _e . mock . On ( "Register" ) }
}
func ( _c * RootCoord_Register_Call ) Run ( run func ( ) ) * RootCoord_Register_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * RootCoord_Register_Call ) Return ( _a0 error ) * RootCoord_Register_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_Register_Call ) RunAndReturn ( run func ( ) error ) * RootCoord_Register_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// RenameCollection provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) RenameCollection ( _a0 context . Context , _a1 * milvuspb . RenameCollectionRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-01-19 14:13:43 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for RenameCollection" )
}
2023-01-19 14:13:43 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RenameCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-01-19 14:13:43 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RenameCollectionRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-01-19 14:13:43 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . RenameCollectionRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-01-19 14:13:43 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_RenameCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameCollection'
type RootCoord_RenameCollection_Call struct {
* mock . Call
}
// RenameCollection is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.RenameCollectionRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) RenameCollection ( _a0 interface { } , _a1 interface { } ) * RootCoord_RenameCollection_Call {
return & RootCoord_RenameCollection_Call { Call : _e . mock . On ( "RenameCollection" , _a0 , _a1 ) }
2023-01-19 14:13:43 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_RenameCollection_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . RenameCollectionRequest ) ) * RootCoord_RenameCollection_Call {
2023-01-19 14:13:43 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . RenameCollectionRequest ) )
} )
return _c
}
func ( _c * RootCoord_RenameCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_RenameCollection_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_RenameCollection_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . RenameCollectionRequest ) ( * commonpb . Status , error ) ) * RootCoord_RenameCollection_Call {
_c . Call . Return ( run )
return _c
}
2024-08-16 10:10:53 +08:00
// RestoreRBAC provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) RestoreRBAC ( _a0 context . Context , _a1 * milvuspb . RestoreRBACMetaRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for RestoreRBAC" )
}
2024-08-16 10:10:53 +08:00
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RestoreRBACMetaRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . RestoreRBACMetaRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . RestoreRBACMetaRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_RestoreRBAC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RestoreRBAC'
type RootCoord_RestoreRBAC_Call struct {
* mock . Call
}
// RestoreRBAC is a helper method to define mock.On call
// - _a0 context.Context
// - _a1 *milvuspb.RestoreRBACMetaRequest
func ( _e * RootCoord_Expecter ) RestoreRBAC ( _a0 interface { } , _a1 interface { } ) * RootCoord_RestoreRBAC_Call {
return & RootCoord_RestoreRBAC_Call { Call : _e . mock . On ( "RestoreRBAC" , _a0 , _a1 ) }
}
func ( _c * RootCoord_RestoreRBAC_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . RestoreRBACMetaRequest ) ) * RootCoord_RestoreRBAC_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . RestoreRBACMetaRequest ) )
} )
return _c
}
func ( _c * RootCoord_RestoreRBAC_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_RestoreRBAC_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * RootCoord_RestoreRBAC_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . RestoreRBACMetaRequest ) ( * commonpb . Status , error ) ) * RootCoord_RestoreRBAC_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SelectGrant provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) SelectGrant ( _a0 context . Context , _a1 * milvuspb . SelectGrantRequest ) ( * milvuspb . SelectGrantResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for SelectGrant" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . SelectGrantResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectGrantRequest ) ( * milvuspb . SelectGrantResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectGrantRequest ) * milvuspb . SelectGrantResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SelectGrantResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . SelectGrantRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_SelectGrant_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectGrant'
type RootCoord_SelectGrant_Call struct {
* mock . Call
}
// SelectGrant is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.SelectGrantRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) SelectGrant ( _a0 interface { } , _a1 interface { } ) * RootCoord_SelectGrant_Call {
return & RootCoord_SelectGrant_Call { Call : _e . mock . On ( "SelectGrant" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_SelectGrant_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . SelectGrantRequest ) ) * RootCoord_SelectGrant_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . SelectGrantRequest ) )
} )
return _c
}
func ( _c * RootCoord_SelectGrant_Call ) Return ( _a0 * milvuspb . SelectGrantResponse , _a1 error ) * RootCoord_SelectGrant_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_SelectGrant_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . SelectGrantRequest ) ( * milvuspb . SelectGrantResponse , error ) ) * RootCoord_SelectGrant_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SelectRole provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) SelectRole ( _a0 context . Context , _a1 * milvuspb . SelectRoleRequest ) ( * milvuspb . SelectRoleResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for SelectRole" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . SelectRoleResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectRoleRequest ) ( * milvuspb . SelectRoleResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectRoleRequest ) * milvuspb . SelectRoleResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SelectRoleResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . SelectRoleRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_SelectRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectRole'
type RootCoord_SelectRole_Call struct {
* mock . Call
}
// SelectRole is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.SelectRoleRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) SelectRole ( _a0 interface { } , _a1 interface { } ) * RootCoord_SelectRole_Call {
return & RootCoord_SelectRole_Call { Call : _e . mock . On ( "SelectRole" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_SelectRole_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . SelectRoleRequest ) ) * RootCoord_SelectRole_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . SelectRoleRequest ) )
} )
return _c
}
func ( _c * RootCoord_SelectRole_Call ) Return ( _a0 * milvuspb . SelectRoleResponse , _a1 error ) * RootCoord_SelectRole_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_SelectRole_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . SelectRoleRequest ) ( * milvuspb . SelectRoleResponse , error ) ) * RootCoord_SelectRole_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SelectUser provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) SelectUser ( _a0 context . Context , _a1 * milvuspb . SelectUserRequest ) ( * milvuspb . SelectUserResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for SelectUser" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . SelectUserResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectUserRequest ) ( * milvuspb . SelectUserResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . SelectUserRequest ) * milvuspb . SelectUserResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . SelectUserResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . SelectUserRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_SelectUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectUser'
type RootCoord_SelectUser_Call struct {
* mock . Call
}
// SelectUser is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.SelectUserRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) SelectUser ( _a0 interface { } , _a1 interface { } ) * RootCoord_SelectUser_Call {
return & RootCoord_SelectUser_Call { Call : _e . mock . On ( "SelectUser" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_SelectUser_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . SelectUserRequest ) ) * RootCoord_SelectUser_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . SelectUserRequest ) )
} )
return _c
}
func ( _c * RootCoord_SelectUser_Call ) Return ( _a0 * milvuspb . SelectUserResponse , _a1 error ) * RootCoord_SelectUser_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_SelectUser_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . SelectUserRequest ) ( * milvuspb . SelectUserResponse , error ) ) * RootCoord_SelectUser_Call {
_c . Call . Return ( run )
return _c
}
2024-02-29 10:13:00 +08:00
// SetAddress provides a mock function with given fields: address
func ( _m * RootCoord ) SetAddress ( address string ) {
_m . Called ( address )
}
// RootCoord_SetAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAddress'
type RootCoord_SetAddress_Call struct {
* mock . Call
}
// SetAddress is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - address string
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) SetAddress ( address interface { } ) * RootCoord_SetAddress_Call {
return & RootCoord_SetAddress_Call { Call : _e . mock . On ( "SetAddress" , address ) }
}
func ( _c * RootCoord_SetAddress_Call ) Run ( run func ( address string ) ) * RootCoord_SetAddress_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( string ) )
} )
return _c
}
func ( _c * RootCoord_SetAddress_Call ) Return ( ) * RootCoord_SetAddress_Call {
_c . Call . Return ( )
return _c
}
func ( _c * RootCoord_SetAddress_Call ) RunAndReturn ( run func ( string ) ) * RootCoord_SetAddress_Call {
_c . Call . Return ( run )
return _c
}
// SetDataCoordClient provides a mock function with given fields: dataCoord
func ( _m * RootCoord ) SetDataCoordClient ( dataCoord types . DataCoordClient ) error {
ret := _m . Called ( dataCoord )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for SetDataCoordClient" )
}
2024-02-29 10:13:00 +08:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( types . DataCoordClient ) error ) ; ok {
r0 = rf ( dataCoord )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RootCoord_SetDataCoordClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDataCoordClient'
type RootCoord_SetDataCoordClient_Call struct {
* mock . Call
}
// SetDataCoordClient is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - dataCoord types.DataCoordClient
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) SetDataCoordClient ( dataCoord interface { } ) * RootCoord_SetDataCoordClient_Call {
return & RootCoord_SetDataCoordClient_Call { Call : _e . mock . On ( "SetDataCoordClient" , dataCoord ) }
}
func ( _c * RootCoord_SetDataCoordClient_Call ) Run ( run func ( dataCoord types . DataCoordClient ) ) * RootCoord_SetDataCoordClient_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( types . DataCoordClient ) )
} )
return _c
}
func ( _c * RootCoord_SetDataCoordClient_Call ) Return ( _a0 error ) * RootCoord_SetDataCoordClient_Call {
_c . Call . Return ( _a0 )
return _c
}
func ( _c * RootCoord_SetDataCoordClient_Call ) RunAndReturn ( run func ( types . DataCoordClient ) error ) * RootCoord_SetDataCoordClient_Call {
_c . Call . Return ( run )
return _c
}
// SetEtcdClient provides a mock function with given fields: etcdClient
func ( _m * RootCoord ) SetEtcdClient ( etcdClient * clientv3 . Client ) {
_m . Called ( etcdClient )
}
// RootCoord_SetEtcdClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEtcdClient'
type RootCoord_SetEtcdClient_Call struct {
* mock . Call
}
// SetEtcdClient is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - etcdClient *clientv3.Client
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) SetEtcdClient ( etcdClient interface { } ) * RootCoord_SetEtcdClient_Call {
return & RootCoord_SetEtcdClient_Call { Call : _e . mock . On ( "SetEtcdClient" , etcdClient ) }
}
func ( _c * RootCoord_SetEtcdClient_Call ) Run ( run func ( etcdClient * clientv3 . Client ) ) * RootCoord_SetEtcdClient_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( * clientv3 . Client ) )
} )
return _c
}
func ( _c * RootCoord_SetEtcdClient_Call ) Return ( ) * RootCoord_SetEtcdClient_Call {
_c . Call . Return ( )
return _c
}
func ( _c * RootCoord_SetEtcdClient_Call ) RunAndReturn ( run func ( * clientv3 . Client ) ) * RootCoord_SetEtcdClient_Call {
_c . Call . Return ( run )
return _c
}
// SetProxyCreator provides a mock function with given fields: _a0
func ( _m * RootCoord ) SetProxyCreator ( _a0 func ( context . Context , string , int64 ) ( types . ProxyClient , error ) ) {
_m . Called ( _a0 )
}
// RootCoord_SetProxyCreator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetProxyCreator'
type RootCoord_SetProxyCreator_Call struct {
* mock . Call
}
// SetProxyCreator is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 func(context.Context , string , int64)(types.ProxyClient , error)
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) SetProxyCreator ( _a0 interface { } ) * RootCoord_SetProxyCreator_Call {
return & RootCoord_SetProxyCreator_Call { Call : _e . mock . On ( "SetProxyCreator" , _a0 ) }
}
func ( _c * RootCoord_SetProxyCreator_Call ) Run ( run func ( _a0 func ( context . Context , string , int64 ) ( types . ProxyClient , error ) ) ) * RootCoord_SetProxyCreator_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( func ( context . Context , string , int64 ) ( types . ProxyClient , error ) ) )
} )
return _c
}
func ( _c * RootCoord_SetProxyCreator_Call ) Return ( ) * RootCoord_SetProxyCreator_Call {
_c . Call . Return ( )
return _c
}
func ( _c * RootCoord_SetProxyCreator_Call ) RunAndReturn ( run func ( func ( context . Context , string , int64 ) ( types . ProxyClient , error ) ) ) * RootCoord_SetProxyCreator_Call {
_c . Call . Return ( run )
return _c
}
// SetQueryCoordClient provides a mock function with given fields: queryCoord
func ( _m * RootCoord ) SetQueryCoordClient ( queryCoord types . QueryCoordClient ) error {
ret := _m . Called ( queryCoord )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for SetQueryCoordClient" )
}
2024-02-29 10:13:00 +08:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( types . QueryCoordClient ) error ) ; ok {
r0 = rf ( queryCoord )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RootCoord_SetQueryCoordClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetQueryCoordClient'
type RootCoord_SetQueryCoordClient_Call struct {
* mock . Call
}
// SetQueryCoordClient is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - queryCoord types.QueryCoordClient
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) SetQueryCoordClient ( queryCoord interface { } ) * RootCoord_SetQueryCoordClient_Call {
return & RootCoord_SetQueryCoordClient_Call { Call : _e . mock . On ( "SetQueryCoordClient" , queryCoord ) }
}
func ( _c * RootCoord_SetQueryCoordClient_Call ) Run ( run func ( queryCoord types . QueryCoordClient ) ) * RootCoord_SetQueryCoordClient_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( types . QueryCoordClient ) )
} )
return _c
}
func ( _c * RootCoord_SetQueryCoordClient_Call ) Return ( _a0 error ) * RootCoord_SetQueryCoordClient_Call {
_c . Call . Return ( _a0 )
return _c
}
func ( _c * RootCoord_SetQueryCoordClient_Call ) RunAndReturn ( run func ( types . QueryCoordClient ) error ) * RootCoord_SetQueryCoordClient_Call {
_c . Call . Return ( run )
return _c
}
// SetTiKVClient provides a mock function with given fields: client
func ( _m * RootCoord ) SetTiKVClient ( client * txnkv . Client ) {
_m . Called ( client )
}
// RootCoord_SetTiKVClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTiKVClient'
type RootCoord_SetTiKVClient_Call struct {
* mock . Call
}
// SetTiKVClient is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - client *txnkv.Client
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) SetTiKVClient ( client interface { } ) * RootCoord_SetTiKVClient_Call {
return & RootCoord_SetTiKVClient_Call { Call : _e . mock . On ( "SetTiKVClient" , client ) }
}
func ( _c * RootCoord_SetTiKVClient_Call ) Run ( run func ( client * txnkv . Client ) ) * RootCoord_SetTiKVClient_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( * txnkv . Client ) )
} )
return _c
}
func ( _c * RootCoord_SetTiKVClient_Call ) Return ( ) * RootCoord_SetTiKVClient_Call {
_c . Call . Return ( )
return _c
}
func ( _c * RootCoord_SetTiKVClient_Call ) RunAndReturn ( run func ( * txnkv . Client ) ) * RootCoord_SetTiKVClient_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowCollections provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ShowCollections ( _a0 context . Context , _a1 * milvuspb . ShowCollectionsRequest ) ( * milvuspb . ShowCollectionsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ShowCollections" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . ShowCollectionsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowCollectionsRequest ) ( * milvuspb . ShowCollectionsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowCollectionsRequest ) * milvuspb . ShowCollectionsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ShowCollectionsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ShowCollectionsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ShowCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowCollections'
type RootCoord_ShowCollections_Call struct {
* mock . Call
}
// ShowCollections is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ShowCollectionsRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ShowCollections ( _a0 interface { } , _a1 interface { } ) * RootCoord_ShowCollections_Call {
return & RootCoord_ShowCollections_Call { Call : _e . mock . On ( "ShowCollections" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ShowCollections_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ShowCollectionsRequest ) ) * RootCoord_ShowCollections_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ShowCollectionsRequest ) )
} )
return _c
}
func ( _c * RootCoord_ShowCollections_Call ) Return ( _a0 * milvuspb . ShowCollectionsResponse , _a1 error ) * RootCoord_ShowCollections_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ShowCollections_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ShowCollectionsRequest ) ( * milvuspb . ShowCollectionsResponse , error ) ) * RootCoord_ShowCollections_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowConfigurations provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ShowConfigurations ( _a0 context . Context , _a1 * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ShowConfigurations" )
}
2022-09-07 16:14:35 +08:00
var r0 * internalpb . ShowConfigurationsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) * internalpb . ShowConfigurationsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * internalpb . ShowConfigurationsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ShowConfigurations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowConfigurations'
type RootCoord_ShowConfigurations_Call struct {
* mock . Call
}
// ShowConfigurations is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *internalpb.ShowConfigurationsRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ShowConfigurations ( _a0 interface { } , _a1 interface { } ) * RootCoord_ShowConfigurations_Call {
return & RootCoord_ShowConfigurations_Call { Call : _e . mock . On ( "ShowConfigurations" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ShowConfigurations_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . ShowConfigurationsRequest ) ) * RootCoord_ShowConfigurations_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . ShowConfigurationsRequest ) )
} )
return _c
}
func ( _c * RootCoord_ShowConfigurations_Call ) Return ( _a0 * internalpb . ShowConfigurationsResponse , _a1 error ) * RootCoord_ShowConfigurations_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ShowConfigurations_Call ) RunAndReturn ( run func ( context . Context , * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) ) * RootCoord_ShowConfigurations_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowPartitions provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ShowPartitions ( _a0 context . Context , _a1 * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ShowPartitions" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . ShowPartitionsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) * milvuspb . ShowPartitionsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ShowPartitionsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ShowPartitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPartitions'
type RootCoord_ShowPartitions_Call struct {
* mock . Call
}
// ShowPartitions is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ShowPartitionsRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ShowPartitions ( _a0 interface { } , _a1 interface { } ) * RootCoord_ShowPartitions_Call {
return & RootCoord_ShowPartitions_Call { Call : _e . mock . On ( "ShowPartitions" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ShowPartitions_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ShowPartitionsRequest ) ) * RootCoord_ShowPartitions_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ShowPartitionsRequest ) )
} )
return _c
}
func ( _c * RootCoord_ShowPartitions_Call ) Return ( _a0 * milvuspb . ShowPartitionsResponse , _a1 error ) * RootCoord_ShowPartitions_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ShowPartitions_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) ) * RootCoord_ShowPartitions_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowPartitionsInternal provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ShowPartitionsInternal ( _a0 context . Context , _a1 * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-01-04 16:37:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ShowPartitionsInternal" )
}
2023-01-04 16:37:35 +08:00
var r0 * milvuspb . ShowPartitionsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-01-04 16:37:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) * milvuspb . ShowPartitionsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-01-04 16:37:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ShowPartitionsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ShowPartitionsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-01-04 16:37:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ShowPartitionsInternal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPartitionsInternal'
type RootCoord_ShowPartitionsInternal_Call struct {
* mock . Call
}
// ShowPartitionsInternal is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ShowPartitionsRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ShowPartitionsInternal ( _a0 interface { } , _a1 interface { } ) * RootCoord_ShowPartitionsInternal_Call {
return & RootCoord_ShowPartitionsInternal_Call { Call : _e . mock . On ( "ShowPartitionsInternal" , _a0 , _a1 ) }
2023-01-04 16:37:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ShowPartitionsInternal_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ShowPartitionsRequest ) ) * RootCoord_ShowPartitionsInternal_Call {
2023-01-04 16:37:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ShowPartitionsRequest ) )
} )
return _c
}
func ( _c * RootCoord_ShowPartitionsInternal_Call ) Return ( _a0 * milvuspb . ShowPartitionsResponse , _a1 error ) * RootCoord_ShowPartitionsInternal_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ShowPartitionsInternal_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ShowPartitionsRequest ) ( * milvuspb . ShowPartitionsResponse , error ) ) * RootCoord_ShowPartitionsInternal_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowSegments provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) ShowSegments ( _a0 context . Context , _a1 * milvuspb . ShowSegmentsRequest ) ( * milvuspb . ShowSegmentsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for ShowSegments" )
}
2022-09-07 16:14:35 +08:00
var r0 * milvuspb . ShowSegmentsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowSegmentsRequest ) ( * milvuspb . ShowSegmentsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ShowSegmentsRequest ) * milvuspb . ShowSegmentsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ShowSegmentsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ShowSegmentsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_ShowSegments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowSegments'
type RootCoord_ShowSegments_Call struct {
* mock . Call
}
// ShowSegments is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.ShowSegmentsRequest
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) ShowSegments ( _a0 interface { } , _a1 interface { } ) * RootCoord_ShowSegments_Call {
return & RootCoord_ShowSegments_Call { Call : _e . mock . On ( "ShowSegments" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_ShowSegments_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . ShowSegmentsRequest ) ) * RootCoord_ShowSegments_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ShowSegmentsRequest ) )
} )
return _c
}
func ( _c * RootCoord_ShowSegments_Call ) Return ( _a0 * milvuspb . ShowSegmentsResponse , _a1 error ) * RootCoord_ShowSegments_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_ShowSegments_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ShowSegmentsRequest ) ( * milvuspb . ShowSegmentsResponse , error ) ) * RootCoord_ShowSegments_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 16:14:35 +08:00
// Start provides a mock function with given fields:
func ( _m * RootCoord ) Start ( ) error {
ret := _m . Called ( )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for Start" )
}
2022-09-07 16:14:35 +08:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RootCoord_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
type RootCoord_Start_Call struct {
* mock . Call
}
// Start is a helper method to define mock.On call
func ( _e * RootCoord_Expecter ) Start ( ) * RootCoord_Start_Call {
return & RootCoord_Start_Call { Call : _e . mock . On ( "Start" ) }
}
func ( _c * RootCoord_Start_Call ) Run ( run func ( ) ) * RootCoord_Start_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * RootCoord_Start_Call ) Return ( _a0 error ) * RootCoord_Start_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_Start_Call ) RunAndReturn ( run func ( ) error ) * RootCoord_Start_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 16:14:35 +08:00
// Stop provides a mock function with given fields:
func ( _m * RootCoord ) Stop ( ) error {
ret := _m . Called ( )
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for Stop" )
}
2022-09-07 16:14:35 +08:00
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// RootCoord_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
type RootCoord_Stop_Call struct {
* mock . Call
}
// Stop is a helper method to define mock.On call
func ( _e * RootCoord_Expecter ) Stop ( ) * RootCoord_Stop_Call {
return & RootCoord_Stop_Call { Call : _e . mock . On ( "Stop" ) }
}
func ( _c * RootCoord_Stop_Call ) Run ( run func ( ) ) * RootCoord_Stop_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * RootCoord_Stop_Call ) Return ( _a0 error ) * RootCoord_Stop_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_Stop_Call ) RunAndReturn ( run func ( ) error ) * RootCoord_Stop_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// UpdateChannelTimeTick provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) UpdateChannelTimeTick ( _a0 context . Context , _a1 * internalpb . ChannelTimeTickMsg ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateChannelTimeTick" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ChannelTimeTickMsg ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ChannelTimeTickMsg ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . ChannelTimeTickMsg ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_UpdateChannelTimeTick_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateChannelTimeTick'
type RootCoord_UpdateChannelTimeTick_Call struct {
* mock . Call
}
// UpdateChannelTimeTick is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *internalpb.ChannelTimeTickMsg
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) UpdateChannelTimeTick ( _a0 interface { } , _a1 interface { } ) * RootCoord_UpdateChannelTimeTick_Call {
return & RootCoord_UpdateChannelTimeTick_Call { Call : _e . mock . On ( "UpdateChannelTimeTick" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_UpdateChannelTimeTick_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . ChannelTimeTickMsg ) ) * RootCoord_UpdateChannelTimeTick_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . ChannelTimeTickMsg ) )
} )
return _c
}
func ( _c * RootCoord_UpdateChannelTimeTick_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_UpdateChannelTimeTick_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_UpdateChannelTimeTick_Call ) RunAndReturn ( run func ( context . Context , * internalpb . ChannelTimeTickMsg ) ( * commonpb . Status , error ) ) * RootCoord_UpdateChannelTimeTick_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// UpdateCredential provides a mock function with given fields: _a0, _a1
func ( _m * RootCoord ) UpdateCredential ( _a0 context . Context , _a1 * internalpb . CredentialInfo ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
2024-10-17 12:11:31 +08:00
if len ( ret ) == 0 {
panic ( "no return value specified for UpdateCredential" )
}
2022-09-07 16:14:35 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . CredentialInfo ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-07 16:14:35 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . CredentialInfo ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . CredentialInfo ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-07 16:14:35 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// RootCoord_UpdateCredential_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCredential'
type RootCoord_UpdateCredential_Call struct {
* mock . Call
}
// UpdateCredential is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 context.Context
// - _a1 *internalpb.CredentialInfo
2023-09-26 09:57:25 +08:00
func ( _e * RootCoord_Expecter ) UpdateCredential ( _a0 interface { } , _a1 interface { } ) * RootCoord_UpdateCredential_Call {
return & RootCoord_UpdateCredential_Call { Call : _e . mock . On ( "UpdateCredential" , _a0 , _a1 ) }
2022-09-07 16:14:35 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * RootCoord_UpdateCredential_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . CredentialInfo ) ) * RootCoord_UpdateCredential_Call {
2022-09-07 16:14:35 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . CredentialInfo ) )
} )
return _c
}
func ( _c * RootCoord_UpdateCredential_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * RootCoord_UpdateCredential_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * RootCoord_UpdateCredential_Call ) RunAndReturn ( run func ( context . Context , * internalpb . CredentialInfo ) ( * commonpb . Status , error ) ) * RootCoord_UpdateCredential_Call {
_c . Call . Return ( run )
return _c
2022-09-07 16:14:35 +08:00
}
2024-02-29 10:13:00 +08:00
// UpdateStateCode provides a mock function with given fields: _a0
func ( _m * RootCoord ) UpdateStateCode ( _a0 commonpb . StateCode ) {
_m . Called ( _a0 )
}
// RootCoord_UpdateStateCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStateCode'
type RootCoord_UpdateStateCode_Call struct {
* mock . Call
}
// UpdateStateCode is a helper method to define mock.On call
2024-07-22 20:59:42 +08:00
// - _a0 commonpb.StateCode
2024-02-29 10:13:00 +08:00
func ( _e * RootCoord_Expecter ) UpdateStateCode ( _a0 interface { } ) * RootCoord_UpdateStateCode_Call {
return & RootCoord_UpdateStateCode_Call { Call : _e . mock . On ( "UpdateStateCode" , _a0 ) }
}
func ( _c * RootCoord_UpdateStateCode_Call ) Run ( run func ( _a0 commonpb . StateCode ) ) * RootCoord_UpdateStateCode_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( commonpb . StateCode ) )
} )
return _c
}
func ( _c * RootCoord_UpdateStateCode_Call ) Return ( ) * RootCoord_UpdateStateCode_Call {
_c . Call . Return ( )
return _c
}
func ( _c * RootCoord_UpdateStateCode_Call ) RunAndReturn ( run func ( commonpb . StateCode ) ) * RootCoord_UpdateStateCode_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 16:14:35 +08:00
// NewRootCoord creates a new instance of RootCoord. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
2023-07-14 10:12:31 +08:00
// The first argument is typically a *testing.T value.
func NewRootCoord ( t interface {
mock . TestingT
Cleanup ( func ( ) )
} ) * RootCoord {
2022-09-07 16:14:35 +08:00
mock := & RootCoord { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}