github.com/polarismesh/polaris@v1.17.8/auth/mock/api_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: api.go 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 security "github.com/polarismesh/specification/source/go/api/v1/security" 13 service_manage "github.com/polarismesh/specification/source/go/api/v1/service_manage" 14 15 auth "github.com/polarismesh/polaris/auth" 16 cache "github.com/polarismesh/polaris/cache" 17 model "github.com/polarismesh/polaris/common/model" 18 store "github.com/polarismesh/polaris/store" 19 ) 20 21 // MockAuthServer is a mock of AuthServer interface. 22 type MockAuthServer struct { 23 ctrl *gomock.Controller 24 recorder *MockAuthServerMockRecorder 25 } 26 27 // MockAuthServerMockRecorder is the mock recorder for MockAuthServer. 28 type MockAuthServerMockRecorder struct { 29 mock *MockAuthServer 30 } 31 32 // NewMockAuthServer creates a new mock instance. 33 func NewMockAuthServer(ctrl *gomock.Controller) *MockAuthServer { 34 mock := &MockAuthServer{ctrl: ctrl} 35 mock.recorder = &MockAuthServerMockRecorder{mock} 36 return mock 37 } 38 39 // EXPECT returns an object that allows the caller to indicate expected use. 40 func (m *MockAuthServer) EXPECT() *MockAuthServerMockRecorder { 41 return m.recorder 42 } 43 44 // AfterResourceOperation mocks base method. 45 func (m *MockAuthServer) AfterResourceOperation(afterCtx *model.AcquireContext) error { 46 m.ctrl.T.Helper() 47 ret := m.ctrl.Call(m, "AfterResourceOperation", afterCtx) 48 ret0, _ := ret[0].(error) 49 return ret0 50 } 51 52 // AfterResourceOperation indicates an expected call of AfterResourceOperation. 53 func (mr *MockAuthServerMockRecorder) AfterResourceOperation(afterCtx interface{}) *gomock.Call { 54 mr.mock.ctrl.T.Helper() 55 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterResourceOperation", reflect.TypeOf((*MockAuthServer)(nil).AfterResourceOperation), afterCtx) 56 } 57 58 // CreateGroup mocks base method. 59 func (m *MockAuthServer) CreateGroup(ctx context.Context, group *security.UserGroup) *service_manage.Response { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "CreateGroup", ctx, group) 62 ret0, _ := ret[0].(*service_manage.Response) 63 return ret0 64 } 65 66 // CreateGroup indicates an expected call of CreateGroup. 67 func (mr *MockAuthServerMockRecorder) CreateGroup(ctx, group interface{}) *gomock.Call { 68 mr.mock.ctrl.T.Helper() 69 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroup", reflect.TypeOf((*MockAuthServer)(nil).CreateGroup), ctx, group) 70 } 71 72 // CreateStrategy mocks base method. 73 func (m *MockAuthServer) CreateStrategy(ctx context.Context, strategy *security.AuthStrategy) *service_manage.Response { 74 m.ctrl.T.Helper() 75 ret := m.ctrl.Call(m, "CreateStrategy", ctx, strategy) 76 ret0, _ := ret[0].(*service_manage.Response) 77 return ret0 78 } 79 80 // CreateStrategy indicates an expected call of CreateStrategy. 81 func (mr *MockAuthServerMockRecorder) CreateStrategy(ctx, strategy interface{}) *gomock.Call { 82 mr.mock.ctrl.T.Helper() 83 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStrategy", reflect.TypeOf((*MockAuthServer)(nil).CreateStrategy), ctx, strategy) 84 } 85 86 // CreateUsers mocks base method. 87 func (m *MockAuthServer) CreateUsers(ctx context.Context, users []*security.User) *service_manage.BatchWriteResponse { 88 m.ctrl.T.Helper() 89 ret := m.ctrl.Call(m, "CreateUsers", ctx, users) 90 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 91 return ret0 92 } 93 94 // CreateUsers indicates an expected call of CreateUsers. 95 func (mr *MockAuthServerMockRecorder) CreateUsers(ctx, users interface{}) *gomock.Call { 96 mr.mock.ctrl.T.Helper() 97 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUsers", reflect.TypeOf((*MockAuthServer)(nil).CreateUsers), ctx, users) 98 } 99 100 // DeleteGroups mocks base method. 101 func (m *MockAuthServer) DeleteGroups(ctx context.Context, group []*security.UserGroup) *service_manage.BatchWriteResponse { 102 m.ctrl.T.Helper() 103 ret := m.ctrl.Call(m, "DeleteGroups", ctx, group) 104 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 105 return ret0 106 } 107 108 // DeleteGroups indicates an expected call of DeleteGroups. 109 func (mr *MockAuthServerMockRecorder) DeleteGroups(ctx, group interface{}) *gomock.Call { 110 mr.mock.ctrl.T.Helper() 111 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroups", reflect.TypeOf((*MockAuthServer)(nil).DeleteGroups), ctx, group) 112 } 113 114 // DeleteStrategies mocks base method. 115 func (m *MockAuthServer) DeleteStrategies(ctx context.Context, reqs []*security.AuthStrategy) *service_manage.BatchWriteResponse { 116 m.ctrl.T.Helper() 117 ret := m.ctrl.Call(m, "DeleteStrategies", ctx, reqs) 118 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 119 return ret0 120 } 121 122 // DeleteStrategies indicates an expected call of DeleteStrategies. 123 func (mr *MockAuthServerMockRecorder) DeleteStrategies(ctx, reqs interface{}) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStrategies", reflect.TypeOf((*MockAuthServer)(nil).DeleteStrategies), ctx, reqs) 126 } 127 128 // DeleteUsers mocks base method. 129 func (m *MockAuthServer) DeleteUsers(ctx context.Context, users []*security.User) *service_manage.BatchWriteResponse { 130 m.ctrl.T.Helper() 131 ret := m.ctrl.Call(m, "DeleteUsers", ctx, users) 132 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 133 return ret0 134 } 135 136 // DeleteUsers indicates an expected call of DeleteUsers. 137 func (mr *MockAuthServerMockRecorder) DeleteUsers(ctx, users interface{}) *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUsers", reflect.TypeOf((*MockAuthServer)(nil).DeleteUsers), ctx, users) 140 } 141 142 // GetAuthChecker mocks base method. 143 func (m *MockAuthServer) GetAuthChecker() auth.AuthChecker { 144 m.ctrl.T.Helper() 145 ret := m.ctrl.Call(m, "GetAuthChecker") 146 ret0, _ := ret[0].(auth.AuthChecker) 147 return ret0 148 } 149 150 // GetAuthChecker indicates an expected call of GetAuthChecker. 151 func (mr *MockAuthServerMockRecorder) GetAuthChecker() *gomock.Call { 152 mr.mock.ctrl.T.Helper() 153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuthChecker", reflect.TypeOf((*MockAuthServer)(nil).GetAuthChecker)) 154 } 155 156 // GetGroup mocks base method. 157 func (m *MockAuthServer) GetGroup(ctx context.Context, req *security.UserGroup) *service_manage.Response { 158 m.ctrl.T.Helper() 159 ret := m.ctrl.Call(m, "GetGroup", ctx, req) 160 ret0, _ := ret[0].(*service_manage.Response) 161 return ret0 162 } 163 164 // GetGroup indicates an expected call of GetGroup. 165 func (mr *MockAuthServerMockRecorder) GetGroup(ctx, req interface{}) *gomock.Call { 166 mr.mock.ctrl.T.Helper() 167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockAuthServer)(nil).GetGroup), ctx, req) 168 } 169 170 // GetGroupToken mocks base method. 171 func (m *MockAuthServer) GetGroupToken(ctx context.Context, group *security.UserGroup) *service_manage.Response { 172 m.ctrl.T.Helper() 173 ret := m.ctrl.Call(m, "GetGroupToken", ctx, group) 174 ret0, _ := ret[0].(*service_manage.Response) 175 return ret0 176 } 177 178 // GetGroupToken indicates an expected call of GetGroupToken. 179 func (mr *MockAuthServerMockRecorder) GetGroupToken(ctx, group interface{}) *gomock.Call { 180 mr.mock.ctrl.T.Helper() 181 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupToken", reflect.TypeOf((*MockAuthServer)(nil).GetGroupToken), ctx, group) 182 } 183 184 // GetGroups mocks base method. 185 func (m *MockAuthServer) GetGroups(ctx context.Context, query map[string]string) *service_manage.BatchQueryResponse { 186 m.ctrl.T.Helper() 187 ret := m.ctrl.Call(m, "GetGroups", ctx, query) 188 ret0, _ := ret[0].(*service_manage.BatchQueryResponse) 189 return ret0 190 } 191 192 // GetGroups indicates an expected call of GetGroups. 193 func (mr *MockAuthServerMockRecorder) GetGroups(ctx, query interface{}) *gomock.Call { 194 mr.mock.ctrl.T.Helper() 195 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroups", reflect.TypeOf((*MockAuthServer)(nil).GetGroups), ctx, query) 196 } 197 198 // GetPrincipalResources mocks base method. 199 func (m *MockAuthServer) GetPrincipalResources(ctx context.Context, query map[string]string) *service_manage.Response { 200 m.ctrl.T.Helper() 201 ret := m.ctrl.Call(m, "GetPrincipalResources", ctx, query) 202 ret0, _ := ret[0].(*service_manage.Response) 203 return ret0 204 } 205 206 // GetPrincipalResources indicates an expected call of GetPrincipalResources. 207 func (mr *MockAuthServerMockRecorder) GetPrincipalResources(ctx, query interface{}) *gomock.Call { 208 mr.mock.ctrl.T.Helper() 209 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrincipalResources", reflect.TypeOf((*MockAuthServer)(nil).GetPrincipalResources), ctx, query) 210 } 211 212 // GetStrategies mocks base method. 213 func (m *MockAuthServer) GetStrategies(ctx context.Context, query map[string]string) *service_manage.BatchQueryResponse { 214 m.ctrl.T.Helper() 215 ret := m.ctrl.Call(m, "GetStrategies", ctx, query) 216 ret0, _ := ret[0].(*service_manage.BatchQueryResponse) 217 return ret0 218 } 219 220 // GetStrategies indicates an expected call of GetStrategies. 221 func (mr *MockAuthServerMockRecorder) GetStrategies(ctx, query interface{}) *gomock.Call { 222 mr.mock.ctrl.T.Helper() 223 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategies", reflect.TypeOf((*MockAuthServer)(nil).GetStrategies), ctx, query) 224 } 225 226 // GetStrategy mocks base method. 227 func (m *MockAuthServer) GetStrategy(ctx context.Context, strategy *security.AuthStrategy) *service_manage.Response { 228 m.ctrl.T.Helper() 229 ret := m.ctrl.Call(m, "GetStrategy", ctx, strategy) 230 ret0, _ := ret[0].(*service_manage.Response) 231 return ret0 232 } 233 234 // GetStrategy indicates an expected call of GetStrategy. 235 func (mr *MockAuthServerMockRecorder) GetStrategy(ctx, strategy interface{}) *gomock.Call { 236 mr.mock.ctrl.T.Helper() 237 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategy", reflect.TypeOf((*MockAuthServer)(nil).GetStrategy), ctx, strategy) 238 } 239 240 // GetUserToken mocks base method. 241 func (m *MockAuthServer) GetUserToken(ctx context.Context, user *security.User) *service_manage.Response { 242 m.ctrl.T.Helper() 243 ret := m.ctrl.Call(m, "GetUserToken", ctx, user) 244 ret0, _ := ret[0].(*service_manage.Response) 245 return ret0 246 } 247 248 // GetUserToken indicates an expected call of GetUserToken. 249 func (mr *MockAuthServerMockRecorder) GetUserToken(ctx, user interface{}) *gomock.Call { 250 mr.mock.ctrl.T.Helper() 251 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserToken", reflect.TypeOf((*MockAuthServer)(nil).GetUserToken), ctx, user) 252 } 253 254 // GetUsers mocks base method. 255 func (m *MockAuthServer) GetUsers(ctx context.Context, query map[string]string) *service_manage.BatchQueryResponse { 256 m.ctrl.T.Helper() 257 ret := m.ctrl.Call(m, "GetUsers", ctx, query) 258 ret0, _ := ret[0].(*service_manage.BatchQueryResponse) 259 return ret0 260 } 261 262 // GetUsers indicates an expected call of GetUsers. 263 func (mr *MockAuthServerMockRecorder) GetUsers(ctx, query interface{}) *gomock.Call { 264 mr.mock.ctrl.T.Helper() 265 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsers", reflect.TypeOf((*MockAuthServer)(nil).GetUsers), ctx, query) 266 } 267 268 // Initialize mocks base method. 269 func (m *MockAuthServer) Initialize(authOpt *auth.Config, storage store.Store, cacheMgn *cache.CacheManager) error { 270 m.ctrl.T.Helper() 271 ret := m.ctrl.Call(m, "Initialize", authOpt, storage, cacheMgn) 272 ret0, _ := ret[0].(error) 273 return ret0 274 } 275 276 // Initialize indicates an expected call of Initialize. 277 func (mr *MockAuthServerMockRecorder) Initialize(authOpt, storage, cacheMgn interface{}) *gomock.Call { 278 mr.mock.ctrl.T.Helper() 279 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockAuthServer)(nil).Initialize), authOpt, storage, cacheMgn) 280 } 281 282 // Login mocks base method. 283 func (m *MockAuthServer) Login(req *security.LoginRequest) *service_manage.Response { 284 m.ctrl.T.Helper() 285 ret := m.ctrl.Call(m, "Login", req) 286 ret0, _ := ret[0].(*service_manage.Response) 287 return ret0 288 } 289 290 // Login indicates an expected call of Login. 291 func (mr *MockAuthServerMockRecorder) Login(req interface{}) *gomock.Call { 292 mr.mock.ctrl.T.Helper() 293 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Login", reflect.TypeOf((*MockAuthServer)(nil).Login), req) 294 } 295 296 // Name mocks base method. 297 func (m *MockAuthServer) Name() string { 298 m.ctrl.T.Helper() 299 ret := m.ctrl.Call(m, "Name") 300 ret0, _ := ret[0].(string) 301 return ret0 302 } 303 304 // Name indicates an expected call of Name. 305 func (mr *MockAuthServerMockRecorder) Name() *gomock.Call { 306 mr.mock.ctrl.T.Helper() 307 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockAuthServer)(nil).Name)) 308 } 309 310 // ResetGroupToken mocks base method. 311 func (m *MockAuthServer) ResetGroupToken(ctx context.Context, group *security.UserGroup) *service_manage.Response { 312 m.ctrl.T.Helper() 313 ret := m.ctrl.Call(m, "ResetGroupToken", ctx, group) 314 ret0, _ := ret[0].(*service_manage.Response) 315 return ret0 316 } 317 318 // ResetGroupToken indicates an expected call of ResetGroupToken. 319 func (mr *MockAuthServerMockRecorder) ResetGroupToken(ctx, group interface{}) *gomock.Call { 320 mr.mock.ctrl.T.Helper() 321 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetGroupToken", reflect.TypeOf((*MockAuthServer)(nil).ResetGroupToken), ctx, group) 322 } 323 324 // ResetUserToken mocks base method. 325 func (m *MockAuthServer) ResetUserToken(ctx context.Context, user *security.User) *service_manage.Response { 326 m.ctrl.T.Helper() 327 ret := m.ctrl.Call(m, "ResetUserToken", ctx, user) 328 ret0, _ := ret[0].(*service_manage.Response) 329 return ret0 330 } 331 332 // ResetUserToken indicates an expected call of ResetUserToken. 333 func (mr *MockAuthServerMockRecorder) ResetUserToken(ctx, user interface{}) *gomock.Call { 334 mr.mock.ctrl.T.Helper() 335 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetUserToken", reflect.TypeOf((*MockAuthServer)(nil).ResetUserToken), ctx, user) 336 } 337 338 // UpdateGroupToken mocks base method. 339 func (m *MockAuthServer) UpdateGroupToken(ctx context.Context, group *security.UserGroup) *service_manage.Response { 340 m.ctrl.T.Helper() 341 ret := m.ctrl.Call(m, "UpdateGroupToken", ctx, group) 342 ret0, _ := ret[0].(*service_manage.Response) 343 return ret0 344 } 345 346 // UpdateGroupToken indicates an expected call of UpdateGroupToken. 347 func (mr *MockAuthServerMockRecorder) UpdateGroupToken(ctx, group interface{}) *gomock.Call { 348 mr.mock.ctrl.T.Helper() 349 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupToken", reflect.TypeOf((*MockAuthServer)(nil).UpdateGroupToken), ctx, group) 350 } 351 352 // UpdateGroups mocks base method. 353 func (m *MockAuthServer) UpdateGroups(ctx context.Context, groups []*security.ModifyUserGroup) *service_manage.BatchWriteResponse { 354 m.ctrl.T.Helper() 355 ret := m.ctrl.Call(m, "UpdateGroups", ctx, groups) 356 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 357 return ret0 358 } 359 360 // UpdateGroups indicates an expected call of UpdateGroups. 361 func (mr *MockAuthServerMockRecorder) UpdateGroups(ctx, groups interface{}) *gomock.Call { 362 mr.mock.ctrl.T.Helper() 363 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroups", reflect.TypeOf((*MockAuthServer)(nil).UpdateGroups), ctx, groups) 364 } 365 366 // UpdateStrategies mocks base method. 367 func (m *MockAuthServer) UpdateStrategies(ctx context.Context, reqs []*security.ModifyAuthStrategy) *service_manage.BatchWriteResponse { 368 m.ctrl.T.Helper() 369 ret := m.ctrl.Call(m, "UpdateStrategies", ctx, reqs) 370 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 371 return ret0 372 } 373 374 // UpdateStrategies indicates an expected call of UpdateStrategies. 375 func (mr *MockAuthServerMockRecorder) UpdateStrategies(ctx, reqs interface{}) *gomock.Call { 376 mr.mock.ctrl.T.Helper() 377 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStrategies", reflect.TypeOf((*MockAuthServer)(nil).UpdateStrategies), ctx, reqs) 378 } 379 380 // UpdateUser mocks base method. 381 func (m *MockAuthServer) UpdateUser(ctx context.Context, user *security.User) *service_manage.Response { 382 m.ctrl.T.Helper() 383 ret := m.ctrl.Call(m, "UpdateUser", ctx, user) 384 ret0, _ := ret[0].(*service_manage.Response) 385 return ret0 386 } 387 388 // UpdateUser indicates an expected call of UpdateUser. 389 func (mr *MockAuthServerMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call { 390 mr.mock.ctrl.T.Helper() 391 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockAuthServer)(nil).UpdateUser), ctx, user) 392 } 393 394 // UpdateUserPassword mocks base method. 395 func (m *MockAuthServer) UpdateUserPassword(ctx context.Context, req *security.ModifyUserPassword) *service_manage.Response { 396 m.ctrl.T.Helper() 397 ret := m.ctrl.Call(m, "UpdateUserPassword", ctx, req) 398 ret0, _ := ret[0].(*service_manage.Response) 399 return ret0 400 } 401 402 // UpdateUserPassword indicates an expected call of UpdateUserPassword. 403 func (mr *MockAuthServerMockRecorder) UpdateUserPassword(ctx, req interface{}) *gomock.Call { 404 mr.mock.ctrl.T.Helper() 405 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPassword", reflect.TypeOf((*MockAuthServer)(nil).UpdateUserPassword), ctx, req) 406 } 407 408 // UpdateUserToken mocks base method. 409 func (m *MockAuthServer) UpdateUserToken(ctx context.Context, user *security.User) *service_manage.Response { 410 m.ctrl.T.Helper() 411 ret := m.ctrl.Call(m, "UpdateUserToken", ctx, user) 412 ret0, _ := ret[0].(*service_manage.Response) 413 return ret0 414 } 415 416 // UpdateUserToken indicates an expected call of UpdateUserToken. 417 func (mr *MockAuthServerMockRecorder) UpdateUserToken(ctx, user interface{}) *gomock.Call { 418 mr.mock.ctrl.T.Helper() 419 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserToken", reflect.TypeOf((*MockAuthServer)(nil).UpdateUserToken), ctx, user) 420 } 421 422 // MockAuthChecker is a mock of AuthChecker interface. 423 type MockAuthChecker struct { 424 ctrl *gomock.Controller 425 recorder *MockAuthCheckerMockRecorder 426 } 427 428 // MockAuthCheckerMockRecorder is the mock recorder for MockAuthChecker. 429 type MockAuthCheckerMockRecorder struct { 430 mock *MockAuthChecker 431 } 432 433 // NewMockAuthChecker creates a new mock instance. 434 func NewMockAuthChecker(ctrl *gomock.Controller) *MockAuthChecker { 435 mock := &MockAuthChecker{ctrl: ctrl} 436 mock.recorder = &MockAuthCheckerMockRecorder{mock} 437 return mock 438 } 439 440 // EXPECT returns an object that allows the caller to indicate expected use. 441 func (m *MockAuthChecker) EXPECT() *MockAuthCheckerMockRecorder { 442 return m.recorder 443 } 444 445 // CheckClientPermission mocks base method. 446 func (m *MockAuthChecker) CheckClientPermission(preCtx *model.AcquireContext) (bool, error) { 447 m.ctrl.T.Helper() 448 ret := m.ctrl.Call(m, "CheckClientPermission", preCtx) 449 ret0, _ := ret[0].(bool) 450 ret1, _ := ret[1].(error) 451 return ret0, ret1 452 } 453 454 // CheckClientPermission indicates an expected call of CheckClientPermission. 455 func (mr *MockAuthCheckerMockRecorder) CheckClientPermission(preCtx interface{}) *gomock.Call { 456 mr.mock.ctrl.T.Helper() 457 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckClientPermission", reflect.TypeOf((*MockAuthChecker)(nil).CheckClientPermission), preCtx) 458 } 459 460 // CheckConsolePermission mocks base method. 461 func (m *MockAuthChecker) CheckConsolePermission(preCtx *model.AcquireContext) (bool, error) { 462 m.ctrl.T.Helper() 463 ret := m.ctrl.Call(m, "CheckConsolePermission", preCtx) 464 ret0, _ := ret[0].(bool) 465 ret1, _ := ret[1].(error) 466 return ret0, ret1 467 } 468 469 // CheckConsolePermission indicates an expected call of CheckConsolePermission. 470 func (mr *MockAuthCheckerMockRecorder) CheckConsolePermission(preCtx interface{}) *gomock.Call { 471 mr.mock.ctrl.T.Helper() 472 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckConsolePermission", reflect.TypeOf((*MockAuthChecker)(nil).CheckConsolePermission), preCtx) 473 } 474 475 // Initialize mocks base method. 476 func (m *MockAuthChecker) Initialize(options *auth.Config, storage store.Store, cacheMgn *cache.CacheManager) error { 477 m.ctrl.T.Helper() 478 ret := m.ctrl.Call(m, "Initialize", options, storage, cacheMgn) 479 ret0, _ := ret[0].(error) 480 return ret0 481 } 482 483 // Initialize indicates an expected call of Initialize. 484 func (mr *MockAuthCheckerMockRecorder) Initialize(options, storage, cacheMgn interface{}) *gomock.Call { 485 mr.mock.ctrl.T.Helper() 486 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockAuthChecker)(nil).Initialize), options, storage, cacheMgn) 487 } 488 489 // IsOpenClientAuth mocks base method. 490 func (m *MockAuthChecker) IsOpenClientAuth() bool { 491 m.ctrl.T.Helper() 492 ret := m.ctrl.Call(m, "IsOpenClientAuth") 493 ret0, _ := ret[0].(bool) 494 return ret0 495 } 496 497 // IsOpenClientAuth indicates an expected call of IsOpenClientAuth. 498 func (mr *MockAuthCheckerMockRecorder) IsOpenClientAuth() *gomock.Call { 499 mr.mock.ctrl.T.Helper() 500 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpenClientAuth", reflect.TypeOf((*MockAuthChecker)(nil).IsOpenClientAuth)) 501 } 502 503 // IsOpenConsoleAuth mocks base method. 504 func (m *MockAuthChecker) IsOpenConsoleAuth() bool { 505 m.ctrl.T.Helper() 506 ret := m.ctrl.Call(m, "IsOpenConsoleAuth") 507 ret0, _ := ret[0].(bool) 508 return ret0 509 } 510 511 // IsOpenConsoleAuth indicates an expected call of IsOpenConsoleAuth. 512 func (mr *MockAuthCheckerMockRecorder) IsOpenConsoleAuth() *gomock.Call { 513 mr.mock.ctrl.T.Helper() 514 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpenConsoleAuth", reflect.TypeOf((*MockAuthChecker)(nil).IsOpenConsoleAuth)) 515 } 516 517 // VerifyCredential mocks base method. 518 func (m *MockAuthChecker) VerifyCredential(preCtx *model.AcquireContext) error { 519 m.ctrl.T.Helper() 520 ret := m.ctrl.Call(m, "VerifyCredential", preCtx) 521 ret0, _ := ret[0].(error) 522 return ret0 523 } 524 525 // VerifyCredential indicates an expected call of VerifyCredential. 526 func (mr *MockAuthCheckerMockRecorder) VerifyCredential(preCtx interface{}) *gomock.Call { 527 mr.mock.ctrl.T.Helper() 528 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyCredential", reflect.TypeOf((*MockAuthChecker)(nil).VerifyCredential), preCtx) 529 } 530 531 // MockUserServer is a mock of UserServer interface. 532 type MockUserServer struct { 533 ctrl *gomock.Controller 534 recorder *MockUserServerMockRecorder 535 } 536 537 // MockUserServerMockRecorder is the mock recorder for MockUserServer. 538 type MockUserServerMockRecorder struct { 539 mock *MockUserServer 540 } 541 542 // NewMockUserServer creates a new mock instance. 543 func NewMockUserServer(ctrl *gomock.Controller) *MockUserServer { 544 mock := &MockUserServer{ctrl: ctrl} 545 mock.recorder = &MockUserServerMockRecorder{mock} 546 return mock 547 } 548 549 // EXPECT returns an object that allows the caller to indicate expected use. 550 func (m *MockUserServer) EXPECT() *MockUserServerMockRecorder { 551 return m.recorder 552 } 553 554 // CreateUsers mocks base method. 555 func (m *MockUserServer) CreateUsers(ctx context.Context, users []*security.User) *service_manage.BatchWriteResponse { 556 m.ctrl.T.Helper() 557 ret := m.ctrl.Call(m, "CreateUsers", ctx, users) 558 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 559 return ret0 560 } 561 562 // CreateUsers indicates an expected call of CreateUsers. 563 func (mr *MockUserServerMockRecorder) CreateUsers(ctx, users interface{}) *gomock.Call { 564 mr.mock.ctrl.T.Helper() 565 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUsers", reflect.TypeOf((*MockUserServer)(nil).CreateUsers), ctx, users) 566 } 567 568 // DeleteUsers mocks base method. 569 func (m *MockUserServer) DeleteUsers(ctx context.Context, users []*security.User) *service_manage.BatchWriteResponse { 570 m.ctrl.T.Helper() 571 ret := m.ctrl.Call(m, "DeleteUsers", ctx, users) 572 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 573 return ret0 574 } 575 576 // DeleteUsers indicates an expected call of DeleteUsers. 577 func (mr *MockUserServerMockRecorder) DeleteUsers(ctx, users interface{}) *gomock.Call { 578 mr.mock.ctrl.T.Helper() 579 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUsers", reflect.TypeOf((*MockUserServer)(nil).DeleteUsers), ctx, users) 580 } 581 582 // GetUserToken mocks base method. 583 func (m *MockUserServer) GetUserToken(ctx context.Context, user *security.User) *service_manage.Response { 584 m.ctrl.T.Helper() 585 ret := m.ctrl.Call(m, "GetUserToken", ctx, user) 586 ret0, _ := ret[0].(*service_manage.Response) 587 return ret0 588 } 589 590 // GetUserToken indicates an expected call of GetUserToken. 591 func (mr *MockUserServerMockRecorder) GetUserToken(ctx, user interface{}) *gomock.Call { 592 mr.mock.ctrl.T.Helper() 593 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserToken", reflect.TypeOf((*MockUserServer)(nil).GetUserToken), ctx, user) 594 } 595 596 // GetUsers mocks base method. 597 func (m *MockUserServer) GetUsers(ctx context.Context, query map[string]string) *service_manage.BatchQueryResponse { 598 m.ctrl.T.Helper() 599 ret := m.ctrl.Call(m, "GetUsers", ctx, query) 600 ret0, _ := ret[0].(*service_manage.BatchQueryResponse) 601 return ret0 602 } 603 604 // GetUsers indicates an expected call of GetUsers. 605 func (mr *MockUserServerMockRecorder) GetUsers(ctx, query interface{}) *gomock.Call { 606 mr.mock.ctrl.T.Helper() 607 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsers", reflect.TypeOf((*MockUserServer)(nil).GetUsers), ctx, query) 608 } 609 610 // ResetUserToken mocks base method. 611 func (m *MockUserServer) ResetUserToken(ctx context.Context, user *security.User) *service_manage.Response { 612 m.ctrl.T.Helper() 613 ret := m.ctrl.Call(m, "ResetUserToken", ctx, user) 614 ret0, _ := ret[0].(*service_manage.Response) 615 return ret0 616 } 617 618 // ResetUserToken indicates an expected call of ResetUserToken. 619 func (mr *MockUserServerMockRecorder) ResetUserToken(ctx, user interface{}) *gomock.Call { 620 mr.mock.ctrl.T.Helper() 621 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetUserToken", reflect.TypeOf((*MockUserServer)(nil).ResetUserToken), ctx, user) 622 } 623 624 // UpdateUser mocks base method. 625 func (m *MockUserServer) UpdateUser(ctx context.Context, user *security.User) *service_manage.Response { 626 m.ctrl.T.Helper() 627 ret := m.ctrl.Call(m, "UpdateUser", ctx, user) 628 ret0, _ := ret[0].(*service_manage.Response) 629 return ret0 630 } 631 632 // UpdateUser indicates an expected call of UpdateUser. 633 func (mr *MockUserServerMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call { 634 mr.mock.ctrl.T.Helper() 635 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockUserServer)(nil).UpdateUser), ctx, user) 636 } 637 638 // UpdateUserPassword mocks base method. 639 func (m *MockUserServer) UpdateUserPassword(ctx context.Context, req *security.ModifyUserPassword) *service_manage.Response { 640 m.ctrl.T.Helper() 641 ret := m.ctrl.Call(m, "UpdateUserPassword", ctx, req) 642 ret0, _ := ret[0].(*service_manage.Response) 643 return ret0 644 } 645 646 // UpdateUserPassword indicates an expected call of UpdateUserPassword. 647 func (mr *MockUserServerMockRecorder) UpdateUserPassword(ctx, req interface{}) *gomock.Call { 648 mr.mock.ctrl.T.Helper() 649 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPassword", reflect.TypeOf((*MockUserServer)(nil).UpdateUserPassword), ctx, req) 650 } 651 652 // UpdateUserToken mocks base method. 653 func (m *MockUserServer) UpdateUserToken(ctx context.Context, user *security.User) *service_manage.Response { 654 m.ctrl.T.Helper() 655 ret := m.ctrl.Call(m, "UpdateUserToken", ctx, user) 656 ret0, _ := ret[0].(*service_manage.Response) 657 return ret0 658 } 659 660 // UpdateUserToken indicates an expected call of UpdateUserToken. 661 func (mr *MockUserServerMockRecorder) UpdateUserToken(ctx, user interface{}) *gomock.Call { 662 mr.mock.ctrl.T.Helper() 663 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserToken", reflect.TypeOf((*MockUserServer)(nil).UpdateUserToken), ctx, user) 664 } 665 666 // MockGroupOperator is a mock of GroupOperator interface. 667 type MockGroupOperator struct { 668 ctrl *gomock.Controller 669 recorder *MockGroupOperatorMockRecorder 670 } 671 672 // MockGroupOperatorMockRecorder is the mock recorder for MockGroupOperator. 673 type MockGroupOperatorMockRecorder struct { 674 mock *MockGroupOperator 675 } 676 677 // NewMockGroupOperator creates a new mock instance. 678 func NewMockGroupOperator(ctrl *gomock.Controller) *MockGroupOperator { 679 mock := &MockGroupOperator{ctrl: ctrl} 680 mock.recorder = &MockGroupOperatorMockRecorder{mock} 681 return mock 682 } 683 684 // EXPECT returns an object that allows the caller to indicate expected use. 685 func (m *MockGroupOperator) EXPECT() *MockGroupOperatorMockRecorder { 686 return m.recorder 687 } 688 689 // CreateGroup mocks base method. 690 func (m *MockGroupOperator) CreateGroup(ctx context.Context, group *security.UserGroup) *service_manage.Response { 691 m.ctrl.T.Helper() 692 ret := m.ctrl.Call(m, "CreateGroup", ctx, group) 693 ret0, _ := ret[0].(*service_manage.Response) 694 return ret0 695 } 696 697 // CreateGroup indicates an expected call of CreateGroup. 698 func (mr *MockGroupOperatorMockRecorder) CreateGroup(ctx, group interface{}) *gomock.Call { 699 mr.mock.ctrl.T.Helper() 700 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateGroup", reflect.TypeOf((*MockGroupOperator)(nil).CreateGroup), ctx, group) 701 } 702 703 // DeleteGroups mocks base method. 704 func (m *MockGroupOperator) DeleteGroups(ctx context.Context, group []*security.UserGroup) *service_manage.BatchWriteResponse { 705 m.ctrl.T.Helper() 706 ret := m.ctrl.Call(m, "DeleteGroups", ctx, group) 707 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 708 return ret0 709 } 710 711 // DeleteGroups indicates an expected call of DeleteGroups. 712 func (mr *MockGroupOperatorMockRecorder) DeleteGroups(ctx, group interface{}) *gomock.Call { 713 mr.mock.ctrl.T.Helper() 714 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroups", reflect.TypeOf((*MockGroupOperator)(nil).DeleteGroups), ctx, group) 715 } 716 717 // GetGroup mocks base method. 718 func (m *MockGroupOperator) GetGroup(ctx context.Context, req *security.UserGroup) *service_manage.Response { 719 m.ctrl.T.Helper() 720 ret := m.ctrl.Call(m, "GetGroup", ctx, req) 721 ret0, _ := ret[0].(*service_manage.Response) 722 return ret0 723 } 724 725 // GetGroup indicates an expected call of GetGroup. 726 func (mr *MockGroupOperatorMockRecorder) GetGroup(ctx, req interface{}) *gomock.Call { 727 mr.mock.ctrl.T.Helper() 728 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockGroupOperator)(nil).GetGroup), ctx, req) 729 } 730 731 // GetGroupToken mocks base method. 732 func (m *MockGroupOperator) GetGroupToken(ctx context.Context, group *security.UserGroup) *service_manage.Response { 733 m.ctrl.T.Helper() 734 ret := m.ctrl.Call(m, "GetGroupToken", ctx, group) 735 ret0, _ := ret[0].(*service_manage.Response) 736 return ret0 737 } 738 739 // GetGroupToken indicates an expected call of GetGroupToken. 740 func (mr *MockGroupOperatorMockRecorder) GetGroupToken(ctx, group interface{}) *gomock.Call { 741 mr.mock.ctrl.T.Helper() 742 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupToken", reflect.TypeOf((*MockGroupOperator)(nil).GetGroupToken), ctx, group) 743 } 744 745 // GetGroups mocks base method. 746 func (m *MockGroupOperator) GetGroups(ctx context.Context, query map[string]string) *service_manage.BatchQueryResponse { 747 m.ctrl.T.Helper() 748 ret := m.ctrl.Call(m, "GetGroups", ctx, query) 749 ret0, _ := ret[0].(*service_manage.BatchQueryResponse) 750 return ret0 751 } 752 753 // GetGroups indicates an expected call of GetGroups. 754 func (mr *MockGroupOperatorMockRecorder) GetGroups(ctx, query interface{}) *gomock.Call { 755 mr.mock.ctrl.T.Helper() 756 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroups", reflect.TypeOf((*MockGroupOperator)(nil).GetGroups), ctx, query) 757 } 758 759 // ResetGroupToken mocks base method. 760 func (m *MockGroupOperator) ResetGroupToken(ctx context.Context, group *security.UserGroup) *service_manage.Response { 761 m.ctrl.T.Helper() 762 ret := m.ctrl.Call(m, "ResetGroupToken", ctx, group) 763 ret0, _ := ret[0].(*service_manage.Response) 764 return ret0 765 } 766 767 // ResetGroupToken indicates an expected call of ResetGroupToken. 768 func (mr *MockGroupOperatorMockRecorder) ResetGroupToken(ctx, group interface{}) *gomock.Call { 769 mr.mock.ctrl.T.Helper() 770 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetGroupToken", reflect.TypeOf((*MockGroupOperator)(nil).ResetGroupToken), ctx, group) 771 } 772 773 // UpdateGroupToken mocks base method. 774 func (m *MockGroupOperator) UpdateGroupToken(ctx context.Context, group *security.UserGroup) *service_manage.Response { 775 m.ctrl.T.Helper() 776 ret := m.ctrl.Call(m, "UpdateGroupToken", ctx, group) 777 ret0, _ := ret[0].(*service_manage.Response) 778 return ret0 779 } 780 781 // UpdateGroupToken indicates an expected call of UpdateGroupToken. 782 func (mr *MockGroupOperatorMockRecorder) UpdateGroupToken(ctx, group interface{}) *gomock.Call { 783 mr.mock.ctrl.T.Helper() 784 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroupToken", reflect.TypeOf((*MockGroupOperator)(nil).UpdateGroupToken), ctx, group) 785 } 786 787 // UpdateGroups mocks base method. 788 func (m *MockGroupOperator) UpdateGroups(ctx context.Context, groups []*security.ModifyUserGroup) *service_manage.BatchWriteResponse { 789 m.ctrl.T.Helper() 790 ret := m.ctrl.Call(m, "UpdateGroups", ctx, groups) 791 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 792 return ret0 793 } 794 795 // UpdateGroups indicates an expected call of UpdateGroups. 796 func (mr *MockGroupOperatorMockRecorder) UpdateGroups(ctx, groups interface{}) *gomock.Call { 797 mr.mock.ctrl.T.Helper() 798 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroups", reflect.TypeOf((*MockGroupOperator)(nil).UpdateGroups), ctx, groups) 799 } 800 801 // MockStrategyServer is a mock of StrategyServer interface. 802 type MockStrategyServer struct { 803 ctrl *gomock.Controller 804 recorder *MockStrategyServerMockRecorder 805 } 806 807 // MockStrategyServerMockRecorder is the mock recorder for MockStrategyServer. 808 type MockStrategyServerMockRecorder struct { 809 mock *MockStrategyServer 810 } 811 812 // NewMockStrategyServer creates a new mock instance. 813 func NewMockStrategyServer(ctrl *gomock.Controller) *MockStrategyServer { 814 mock := &MockStrategyServer{ctrl: ctrl} 815 mock.recorder = &MockStrategyServerMockRecorder{mock} 816 return mock 817 } 818 819 // EXPECT returns an object that allows the caller to indicate expected use. 820 func (m *MockStrategyServer) EXPECT() *MockStrategyServerMockRecorder { 821 return m.recorder 822 } 823 824 // CreateStrategy mocks base method. 825 func (m *MockStrategyServer) CreateStrategy(ctx context.Context, strategy *security.AuthStrategy) *service_manage.Response { 826 m.ctrl.T.Helper() 827 ret := m.ctrl.Call(m, "CreateStrategy", ctx, strategy) 828 ret0, _ := ret[0].(*service_manage.Response) 829 return ret0 830 } 831 832 // CreateStrategy indicates an expected call of CreateStrategy. 833 func (mr *MockStrategyServerMockRecorder) CreateStrategy(ctx, strategy interface{}) *gomock.Call { 834 mr.mock.ctrl.T.Helper() 835 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateStrategy", reflect.TypeOf((*MockStrategyServer)(nil).CreateStrategy), ctx, strategy) 836 } 837 838 // DeleteStrategies mocks base method. 839 func (m *MockStrategyServer) DeleteStrategies(ctx context.Context, reqs []*security.AuthStrategy) *service_manage.BatchWriteResponse { 840 m.ctrl.T.Helper() 841 ret := m.ctrl.Call(m, "DeleteStrategies", ctx, reqs) 842 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 843 return ret0 844 } 845 846 // DeleteStrategies indicates an expected call of DeleteStrategies. 847 func (mr *MockStrategyServerMockRecorder) DeleteStrategies(ctx, reqs interface{}) *gomock.Call { 848 mr.mock.ctrl.T.Helper() 849 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStrategies", reflect.TypeOf((*MockStrategyServer)(nil).DeleteStrategies), ctx, reqs) 850 } 851 852 // GetPrincipalResources mocks base method. 853 func (m *MockStrategyServer) GetPrincipalResources(ctx context.Context, query map[string]string) *service_manage.Response { 854 m.ctrl.T.Helper() 855 ret := m.ctrl.Call(m, "GetPrincipalResources", ctx, query) 856 ret0, _ := ret[0].(*service_manage.Response) 857 return ret0 858 } 859 860 // GetPrincipalResources indicates an expected call of GetPrincipalResources. 861 func (mr *MockStrategyServerMockRecorder) GetPrincipalResources(ctx, query interface{}) *gomock.Call { 862 mr.mock.ctrl.T.Helper() 863 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrincipalResources", reflect.TypeOf((*MockStrategyServer)(nil).GetPrincipalResources), ctx, query) 864 } 865 866 // GetStrategies mocks base method. 867 func (m *MockStrategyServer) GetStrategies(ctx context.Context, query map[string]string) *service_manage.BatchQueryResponse { 868 m.ctrl.T.Helper() 869 ret := m.ctrl.Call(m, "GetStrategies", ctx, query) 870 ret0, _ := ret[0].(*service_manage.BatchQueryResponse) 871 return ret0 872 } 873 874 // GetStrategies indicates an expected call of GetStrategies. 875 func (mr *MockStrategyServerMockRecorder) GetStrategies(ctx, query interface{}) *gomock.Call { 876 mr.mock.ctrl.T.Helper() 877 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategies", reflect.TypeOf((*MockStrategyServer)(nil).GetStrategies), ctx, query) 878 } 879 880 // GetStrategy mocks base method. 881 func (m *MockStrategyServer) GetStrategy(ctx context.Context, strategy *security.AuthStrategy) *service_manage.Response { 882 m.ctrl.T.Helper() 883 ret := m.ctrl.Call(m, "GetStrategy", ctx, strategy) 884 ret0, _ := ret[0].(*service_manage.Response) 885 return ret0 886 } 887 888 // GetStrategy indicates an expected call of GetStrategy. 889 func (mr *MockStrategyServerMockRecorder) GetStrategy(ctx, strategy interface{}) *gomock.Call { 890 mr.mock.ctrl.T.Helper() 891 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategy", reflect.TypeOf((*MockStrategyServer)(nil).GetStrategy), ctx, strategy) 892 } 893 894 // UpdateStrategies mocks base method. 895 func (m *MockStrategyServer) UpdateStrategies(ctx context.Context, reqs []*security.ModifyAuthStrategy) *service_manage.BatchWriteResponse { 896 m.ctrl.T.Helper() 897 ret := m.ctrl.Call(m, "UpdateStrategies", ctx, reqs) 898 ret0, _ := ret[0].(*service_manage.BatchWriteResponse) 899 return ret0 900 } 901 902 // UpdateStrategies indicates an expected call of UpdateStrategies. 903 func (mr *MockStrategyServerMockRecorder) UpdateStrategies(ctx, reqs interface{}) *gomock.Call { 904 mr.mock.ctrl.T.Helper() 905 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStrategies", reflect.TypeOf((*MockStrategyServer)(nil).UpdateStrategies), ctx, reqs) 906 }