github.com/polarismesh/polaris@v1.17.8/store/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 reflect "reflect" 9 time "time" 10 11 gomock "github.com/golang/mock/gomock" 12 model "github.com/polarismesh/polaris/common/model" 13 store "github.com/polarismesh/polaris/store" 14 ) 15 16 // MockStore is a mock of Store interface. 17 type MockStore struct { 18 ctrl *gomock.Controller 19 recorder *MockStoreMockRecorder 20 } 21 22 // MockStoreMockRecorder is the mock recorder for MockStore. 23 type MockStoreMockRecorder struct { 24 mock *MockStore 25 } 26 27 // NewMockStore creates a new mock instance. 28 func NewMockStore(ctrl *gomock.Controller) *MockStore { 29 mock := &MockStore{ctrl: ctrl} 30 mock.recorder = &MockStoreMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockStore) EXPECT() *MockStoreMockRecorder { 36 return m.recorder 37 } 38 39 // ActiveConfigFileReleaseTx mocks base method. 40 func (m *MockStore) ActiveConfigFileReleaseTx(tx store.Tx, release *model.ConfigFileRelease) error { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "ActiveConfigFileReleaseTx", tx, release) 43 ret0, _ := ret[0].(error) 44 return ret0 45 } 46 47 // ActiveConfigFileReleaseTx indicates an expected call of ActiveConfigFileReleaseTx. 48 func (mr *MockStoreMockRecorder) ActiveConfigFileReleaseTx(tx, release interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActiveConfigFileReleaseTx", reflect.TypeOf((*MockStore)(nil).ActiveConfigFileReleaseTx), tx, release) 51 } 52 53 // AddGroup mocks base method. 54 func (m *MockStore) AddGroup(group *model.UserGroupDetail) error { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "AddGroup", group) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // AddGroup indicates an expected call of AddGroup. 62 func (mr *MockStoreMockRecorder) AddGroup(group interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddGroup", reflect.TypeOf((*MockStore)(nil).AddGroup), group) 65 } 66 67 // AddInstance mocks base method. 68 func (m *MockStore) AddInstance(instance *model.Instance) error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "AddInstance", instance) 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // AddInstance indicates an expected call of AddInstance. 76 func (mr *MockStoreMockRecorder) AddInstance(instance interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddInstance", reflect.TypeOf((*MockStore)(nil).AddInstance), instance) 79 } 80 81 // AddNamespace mocks base method. 82 func (m *MockStore) AddNamespace(namespace *model.Namespace) error { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "AddNamespace", namespace) 85 ret0, _ := ret[0].(error) 86 return ret0 87 } 88 89 // AddNamespace indicates an expected call of AddNamespace. 90 func (mr *MockStoreMockRecorder) AddNamespace(namespace interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNamespace", reflect.TypeOf((*MockStore)(nil).AddNamespace), namespace) 93 } 94 95 // AddService mocks base method. 96 func (m *MockStore) AddService(service *model.Service) error { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "AddService", service) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // AddService indicates an expected call of AddService. 104 func (mr *MockStoreMockRecorder) AddService(service interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddService", reflect.TypeOf((*MockStore)(nil).AddService), service) 107 } 108 109 // AddStrategy mocks base method. 110 func (m *MockStore) AddStrategy(strategy *model.StrategyDetail) error { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "AddStrategy", strategy) 113 ret0, _ := ret[0].(error) 114 return ret0 115 } 116 117 // AddStrategy indicates an expected call of AddStrategy. 118 func (mr *MockStoreMockRecorder) AddStrategy(strategy interface{}) *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddStrategy", reflect.TypeOf((*MockStore)(nil).AddStrategy), strategy) 121 } 122 123 // AddUser mocks base method. 124 func (m *MockStore) AddUser(user *model.User) error { 125 m.ctrl.T.Helper() 126 ret := m.ctrl.Call(m, "AddUser", user) 127 ret0, _ := ret[0].(error) 128 return ret0 129 } 130 131 // AddUser indicates an expected call of AddUser. 132 func (mr *MockStoreMockRecorder) AddUser(user interface{}) *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddUser", reflect.TypeOf((*MockStore)(nil).AddUser), user) 135 } 136 137 // BatchAddClients mocks base method. 138 func (m *MockStore) BatchAddClients(clients []*model.Client) error { 139 m.ctrl.T.Helper() 140 ret := m.ctrl.Call(m, "BatchAddClients", clients) 141 ret0, _ := ret[0].(error) 142 return ret0 143 } 144 145 // BatchAddClients indicates an expected call of BatchAddClients. 146 func (mr *MockStoreMockRecorder) BatchAddClients(clients interface{}) *gomock.Call { 147 mr.mock.ctrl.T.Helper() 148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchAddClients", reflect.TypeOf((*MockStore)(nil).BatchAddClients), clients) 149 } 150 151 // BatchAddInstances mocks base method. 152 func (m *MockStore) BatchAddInstances(instances []*model.Instance) error { 153 m.ctrl.T.Helper() 154 ret := m.ctrl.Call(m, "BatchAddInstances", instances) 155 ret0, _ := ret[0].(error) 156 return ret0 157 } 158 159 // BatchAddInstances indicates an expected call of BatchAddInstances. 160 func (mr *MockStoreMockRecorder) BatchAddInstances(instances interface{}) *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchAddInstances", reflect.TypeOf((*MockStore)(nil).BatchAddInstances), instances) 163 } 164 165 // BatchAppendInstanceMetadata mocks base method. 166 func (m *MockStore) BatchAppendInstanceMetadata(requests []*store.InstanceMetadataRequest) error { 167 m.ctrl.T.Helper() 168 ret := m.ctrl.Call(m, "BatchAppendInstanceMetadata", requests) 169 ret0, _ := ret[0].(error) 170 return ret0 171 } 172 173 // BatchAppendInstanceMetadata indicates an expected call of BatchAppendInstanceMetadata. 174 func (mr *MockStoreMockRecorder) BatchAppendInstanceMetadata(requests interface{}) *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchAppendInstanceMetadata", reflect.TypeOf((*MockStore)(nil).BatchAppendInstanceMetadata), requests) 177 } 178 179 // BatchCleanDeletedClients mocks base method. 180 func (m *MockStore) BatchCleanDeletedClients(timeout time.Duration, batchSize uint32) (uint32, error) { 181 m.ctrl.T.Helper() 182 ret := m.ctrl.Call(m, "BatchCleanDeletedClients", timeout, batchSize) 183 ret0, _ := ret[0].(uint32) 184 ret1, _ := ret[1].(error) 185 return ret0, ret1 186 } 187 188 // BatchCleanDeletedClients indicates an expected call of BatchCleanDeletedClients. 189 func (mr *MockStoreMockRecorder) BatchCleanDeletedClients(timeout, batchSize interface{}) *gomock.Call { 190 mr.mock.ctrl.T.Helper() 191 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCleanDeletedClients", reflect.TypeOf((*MockStore)(nil).BatchCleanDeletedClients), timeout, batchSize) 192 } 193 194 // BatchCleanDeletedInstances mocks base method. 195 func (m *MockStore) BatchCleanDeletedInstances(timeout time.Duration, batchSize uint32) (uint32, error) { 196 m.ctrl.T.Helper() 197 ret := m.ctrl.Call(m, "BatchCleanDeletedInstances", timeout, batchSize) 198 ret0, _ := ret[0].(uint32) 199 ret1, _ := ret[1].(error) 200 return ret0, ret1 201 } 202 203 // BatchCleanDeletedInstances indicates an expected call of BatchCleanDeletedInstances. 204 func (mr *MockStoreMockRecorder) BatchCleanDeletedInstances(timeout, batchSize interface{}) *gomock.Call { 205 mr.mock.ctrl.T.Helper() 206 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchCleanDeletedInstances", reflect.TypeOf((*MockStore)(nil).BatchCleanDeletedInstances), timeout, batchSize) 207 } 208 209 // BatchDeleteClients mocks base method. 210 func (m *MockStore) BatchDeleteClients(ids []string) error { 211 m.ctrl.T.Helper() 212 ret := m.ctrl.Call(m, "BatchDeleteClients", ids) 213 ret0, _ := ret[0].(error) 214 return ret0 215 } 216 217 // BatchDeleteClients indicates an expected call of BatchDeleteClients. 218 func (mr *MockStoreMockRecorder) BatchDeleteClients(ids interface{}) *gomock.Call { 219 mr.mock.ctrl.T.Helper() 220 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteClients", reflect.TypeOf((*MockStore)(nil).BatchDeleteClients), ids) 221 } 222 223 // BatchDeleteInstances mocks base method. 224 func (m *MockStore) BatchDeleteInstances(ids []interface{}) error { 225 m.ctrl.T.Helper() 226 ret := m.ctrl.Call(m, "BatchDeleteInstances", ids) 227 ret0, _ := ret[0].(error) 228 return ret0 229 } 230 231 // BatchDeleteInstances indicates an expected call of BatchDeleteInstances. 232 func (mr *MockStoreMockRecorder) BatchDeleteInstances(ids interface{}) *gomock.Call { 233 mr.mock.ctrl.T.Helper() 234 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchDeleteInstances", reflect.TypeOf((*MockStore)(nil).BatchDeleteInstances), ids) 235 } 236 237 // BatchGetInstanceIsolate mocks base method. 238 func (m *MockStore) BatchGetInstanceIsolate(ids map[string]bool) (map[string]bool, error) { 239 m.ctrl.T.Helper() 240 ret := m.ctrl.Call(m, "BatchGetInstanceIsolate", ids) 241 ret0, _ := ret[0].(map[string]bool) 242 ret1, _ := ret[1].(error) 243 return ret0, ret1 244 } 245 246 // BatchGetInstanceIsolate indicates an expected call of BatchGetInstanceIsolate. 247 func (mr *MockStoreMockRecorder) BatchGetInstanceIsolate(ids interface{}) *gomock.Call { 248 mr.mock.ctrl.T.Helper() 249 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchGetInstanceIsolate", reflect.TypeOf((*MockStore)(nil).BatchGetInstanceIsolate), ids) 250 } 251 252 // BatchRemoveInstanceMetadata mocks base method. 253 func (m *MockStore) BatchRemoveInstanceMetadata(requests []*store.InstanceMetadataRequest) error { 254 m.ctrl.T.Helper() 255 ret := m.ctrl.Call(m, "BatchRemoveInstanceMetadata", requests) 256 ret0, _ := ret[0].(error) 257 return ret0 258 } 259 260 // BatchRemoveInstanceMetadata indicates an expected call of BatchRemoveInstanceMetadata. 261 func (mr *MockStoreMockRecorder) BatchRemoveInstanceMetadata(requests interface{}) *gomock.Call { 262 mr.mock.ctrl.T.Helper() 263 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchRemoveInstanceMetadata", reflect.TypeOf((*MockStore)(nil).BatchRemoveInstanceMetadata), requests) 264 } 265 266 // BatchSetInstanceHealthStatus mocks base method. 267 func (m *MockStore) BatchSetInstanceHealthStatus(ids []interface{}, healthy int, revision string) error { 268 m.ctrl.T.Helper() 269 ret := m.ctrl.Call(m, "BatchSetInstanceHealthStatus", ids, healthy, revision) 270 ret0, _ := ret[0].(error) 271 return ret0 272 } 273 274 // BatchSetInstanceHealthStatus indicates an expected call of BatchSetInstanceHealthStatus. 275 func (mr *MockStoreMockRecorder) BatchSetInstanceHealthStatus(ids, healthy, revision interface{}) *gomock.Call { 276 mr.mock.ctrl.T.Helper() 277 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchSetInstanceHealthStatus", reflect.TypeOf((*MockStore)(nil).BatchSetInstanceHealthStatus), ids, healthy, revision) 278 } 279 280 // BatchSetInstanceIsolate mocks base method. 281 func (m *MockStore) BatchSetInstanceIsolate(ids []interface{}, isolate int, revision string) error { 282 m.ctrl.T.Helper() 283 ret := m.ctrl.Call(m, "BatchSetInstanceIsolate", ids, isolate, revision) 284 ret0, _ := ret[0].(error) 285 return ret0 286 } 287 288 // BatchSetInstanceIsolate indicates an expected call of BatchSetInstanceIsolate. 289 func (mr *MockStoreMockRecorder) BatchSetInstanceIsolate(ids, isolate, revision interface{}) *gomock.Call { 290 mr.mock.ctrl.T.Helper() 291 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchSetInstanceIsolate", reflect.TypeOf((*MockStore)(nil).BatchSetInstanceIsolate), ids, isolate, revision) 292 } 293 294 // CleanConfigFileReleaseHistory mocks base method. 295 func (m *MockStore) CleanConfigFileReleaseHistory(endTime time.Time, limit uint64) error { 296 m.ctrl.T.Helper() 297 ret := m.ctrl.Call(m, "CleanConfigFileReleaseHistory", endTime, limit) 298 ret0, _ := ret[0].(error) 299 return ret0 300 } 301 302 // CleanConfigFileReleaseHistory indicates an expected call of CleanConfigFileReleaseHistory. 303 func (mr *MockStoreMockRecorder) CleanConfigFileReleaseHistory(endTime, limit interface{}) *gomock.Call { 304 mr.mock.ctrl.T.Helper() 305 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanConfigFileReleaseHistory", reflect.TypeOf((*MockStore)(nil).CleanConfigFileReleaseHistory), endTime, limit) 306 } 307 308 // CleanConfigFileReleasesTx mocks base method. 309 func (m *MockStore) CleanConfigFileReleasesTx(tx store.Tx, namespace, group, fileName string) error { 310 m.ctrl.T.Helper() 311 ret := m.ctrl.Call(m, "CleanConfigFileReleasesTx", tx, namespace, group, fileName) 312 ret0, _ := ret[0].(error) 313 return ret0 314 } 315 316 // CleanConfigFileReleasesTx indicates an expected call of CleanConfigFileReleasesTx. 317 func (mr *MockStoreMockRecorder) CleanConfigFileReleasesTx(tx, namespace, group, fileName interface{}) *gomock.Call { 318 mr.mock.ctrl.T.Helper() 319 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanConfigFileReleasesTx", reflect.TypeOf((*MockStore)(nil).CleanConfigFileReleasesTx), tx, namespace, group, fileName) 320 } 321 322 // CleanInstance mocks base method. 323 func (m *MockStore) CleanInstance(instanceID string) error { 324 m.ctrl.T.Helper() 325 ret := m.ctrl.Call(m, "CleanInstance", instanceID) 326 ret0, _ := ret[0].(error) 327 return ret0 328 } 329 330 // CleanInstance indicates an expected call of CleanInstance. 331 func (mr *MockStoreMockRecorder) CleanInstance(instanceID interface{}) *gomock.Call { 332 mr.mock.ctrl.T.Helper() 333 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanInstance", reflect.TypeOf((*MockStore)(nil).CleanInstance), instanceID) 334 } 335 336 // CountConfigFileEachGroup mocks base method. 337 func (m *MockStore) CountConfigFileEachGroup() (map[string]map[string]int64, error) { 338 m.ctrl.T.Helper() 339 ret := m.ctrl.Call(m, "CountConfigFileEachGroup") 340 ret0, _ := ret[0].(map[string]map[string]int64) 341 ret1, _ := ret[1].(error) 342 return ret0, ret1 343 } 344 345 // CountConfigFileEachGroup indicates an expected call of CountConfigFileEachGroup. 346 func (mr *MockStoreMockRecorder) CountConfigFileEachGroup() *gomock.Call { 347 mr.mock.ctrl.T.Helper() 348 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountConfigFileEachGroup", reflect.TypeOf((*MockStore)(nil).CountConfigFileEachGroup)) 349 } 350 351 // CountConfigFiles mocks base method. 352 func (m *MockStore) CountConfigFiles(namespace, group string) (uint64, error) { 353 m.ctrl.T.Helper() 354 ret := m.ctrl.Call(m, "CountConfigFiles", namespace, group) 355 ret0, _ := ret[0].(uint64) 356 ret1, _ := ret[1].(error) 357 return ret0, ret1 358 } 359 360 // CountConfigFiles indicates an expected call of CountConfigFiles. 361 func (mr *MockStoreMockRecorder) CountConfigFiles(namespace, group interface{}) *gomock.Call { 362 mr.mock.ctrl.T.Helper() 363 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountConfigFiles", reflect.TypeOf((*MockStore)(nil).CountConfigFiles), namespace, group) 364 } 365 366 // CountConfigGroups mocks base method. 367 func (m *MockStore) CountConfigGroups(namespace string) (uint64, error) { 368 m.ctrl.T.Helper() 369 ret := m.ctrl.Call(m, "CountConfigGroups", namespace) 370 ret0, _ := ret[0].(uint64) 371 ret1, _ := ret[1].(error) 372 return ret0, ret1 373 } 374 375 // CountConfigGroups indicates an expected call of CountConfigGroups. 376 func (mr *MockStoreMockRecorder) CountConfigGroups(namespace interface{}) *gomock.Call { 377 mr.mock.ctrl.T.Helper() 378 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountConfigGroups", reflect.TypeOf((*MockStore)(nil).CountConfigGroups), namespace) 379 } 380 381 // CountConfigReleases mocks base method. 382 func (m *MockStore) CountConfigReleases(namespace, group string, onlyActive bool) (uint64, error) { 383 m.ctrl.T.Helper() 384 ret := m.ctrl.Call(m, "CountConfigReleases", namespace, group, onlyActive) 385 ret0, _ := ret[0].(uint64) 386 ret1, _ := ret[1].(error) 387 return ret0, ret1 388 } 389 390 // CountConfigReleases indicates an expected call of CountConfigReleases. 391 func (mr *MockStoreMockRecorder) CountConfigReleases(namespace, group, onlyActive interface{}) *gomock.Call { 392 mr.mock.ctrl.T.Helper() 393 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CountConfigReleases", reflect.TypeOf((*MockStore)(nil).CountConfigReleases), namespace, group, onlyActive) 394 } 395 396 // CreateCircuitBreakerRule mocks base method. 397 func (m *MockStore) CreateCircuitBreakerRule(cbRule *model.CircuitBreakerRule) error { 398 m.ctrl.T.Helper() 399 ret := m.ctrl.Call(m, "CreateCircuitBreakerRule", cbRule) 400 ret0, _ := ret[0].(error) 401 return ret0 402 } 403 404 // CreateCircuitBreakerRule indicates an expected call of CreateCircuitBreakerRule. 405 func (mr *MockStoreMockRecorder) CreateCircuitBreakerRule(cbRule interface{}) *gomock.Call { 406 mr.mock.ctrl.T.Helper() 407 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateCircuitBreakerRule", reflect.TypeOf((*MockStore)(nil).CreateCircuitBreakerRule), cbRule) 408 } 409 410 // CreateConfigFileGroup mocks base method. 411 func (m *MockStore) CreateConfigFileGroup(fileGroup *model.ConfigFileGroup) (*model.ConfigFileGroup, error) { 412 m.ctrl.T.Helper() 413 ret := m.ctrl.Call(m, "CreateConfigFileGroup", fileGroup) 414 ret0, _ := ret[0].(*model.ConfigFileGroup) 415 ret1, _ := ret[1].(error) 416 return ret0, ret1 417 } 418 419 // CreateConfigFileGroup indicates an expected call of CreateConfigFileGroup. 420 func (mr *MockStoreMockRecorder) CreateConfigFileGroup(fileGroup interface{}) *gomock.Call { 421 mr.mock.ctrl.T.Helper() 422 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigFileGroup", reflect.TypeOf((*MockStore)(nil).CreateConfigFileGroup), fileGroup) 423 } 424 425 // CreateConfigFileReleaseHistory mocks base method. 426 func (m *MockStore) CreateConfigFileReleaseHistory(history *model.ConfigFileReleaseHistory) error { 427 m.ctrl.T.Helper() 428 ret := m.ctrl.Call(m, "CreateConfigFileReleaseHistory", history) 429 ret0, _ := ret[0].(error) 430 return ret0 431 } 432 433 // CreateConfigFileReleaseHistory indicates an expected call of CreateConfigFileReleaseHistory. 434 func (mr *MockStoreMockRecorder) CreateConfigFileReleaseHistory(history interface{}) *gomock.Call { 435 mr.mock.ctrl.T.Helper() 436 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigFileReleaseHistory", reflect.TypeOf((*MockStore)(nil).CreateConfigFileReleaseHistory), history) 437 } 438 439 // CreateConfigFileReleaseTx mocks base method. 440 func (m *MockStore) CreateConfigFileReleaseTx(tx store.Tx, fileRelease *model.ConfigFileRelease) error { 441 m.ctrl.T.Helper() 442 ret := m.ctrl.Call(m, "CreateConfigFileReleaseTx", tx, fileRelease) 443 ret0, _ := ret[0].(error) 444 return ret0 445 } 446 447 // CreateConfigFileReleaseTx indicates an expected call of CreateConfigFileReleaseTx. 448 func (mr *MockStoreMockRecorder) CreateConfigFileReleaseTx(tx, fileRelease interface{}) *gomock.Call { 449 mr.mock.ctrl.T.Helper() 450 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigFileReleaseTx", reflect.TypeOf((*MockStore)(nil).CreateConfigFileReleaseTx), tx, fileRelease) 451 } 452 453 // CreateConfigFileTemplate mocks base method. 454 func (m *MockStore) CreateConfigFileTemplate(template *model.ConfigFileTemplate) (*model.ConfigFileTemplate, error) { 455 m.ctrl.T.Helper() 456 ret := m.ctrl.Call(m, "CreateConfigFileTemplate", template) 457 ret0, _ := ret[0].(*model.ConfigFileTemplate) 458 ret1, _ := ret[1].(error) 459 return ret0, ret1 460 } 461 462 // CreateConfigFileTemplate indicates an expected call of CreateConfigFileTemplate. 463 func (mr *MockStoreMockRecorder) CreateConfigFileTemplate(template interface{}) *gomock.Call { 464 mr.mock.ctrl.T.Helper() 465 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigFileTemplate", reflect.TypeOf((*MockStore)(nil).CreateConfigFileTemplate), template) 466 } 467 468 // CreateConfigFileTx mocks base method. 469 func (m *MockStore) CreateConfigFileTx(tx store.Tx, file *model.ConfigFile) error { 470 m.ctrl.T.Helper() 471 ret := m.ctrl.Call(m, "CreateConfigFileTx", tx, file) 472 ret0, _ := ret[0].(error) 473 return ret0 474 } 475 476 // CreateConfigFileTx indicates an expected call of CreateConfigFileTx. 477 func (mr *MockStoreMockRecorder) CreateConfigFileTx(tx, file interface{}) *gomock.Call { 478 mr.mock.ctrl.T.Helper() 479 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateConfigFileTx", reflect.TypeOf((*MockStore)(nil).CreateConfigFileTx), tx, file) 480 } 481 482 // CreateFaultDetectRule mocks base method. 483 func (m *MockStore) CreateFaultDetectRule(conf *model.FaultDetectRule) error { 484 m.ctrl.T.Helper() 485 ret := m.ctrl.Call(m, "CreateFaultDetectRule", conf) 486 ret0, _ := ret[0].(error) 487 return ret0 488 } 489 490 // CreateFaultDetectRule indicates an expected call of CreateFaultDetectRule. 491 func (mr *MockStoreMockRecorder) CreateFaultDetectRule(conf interface{}) *gomock.Call { 492 mr.mock.ctrl.T.Helper() 493 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateFaultDetectRule", reflect.TypeOf((*MockStore)(nil).CreateFaultDetectRule), conf) 494 } 495 496 // CreateRateLimit mocks base method. 497 func (m *MockStore) CreateRateLimit(limiting *model.RateLimit) error { 498 m.ctrl.T.Helper() 499 ret := m.ctrl.Call(m, "CreateRateLimit", limiting) 500 ret0, _ := ret[0].(error) 501 return ret0 502 } 503 504 // CreateRateLimit indicates an expected call of CreateRateLimit. 505 func (mr *MockStoreMockRecorder) CreateRateLimit(limiting interface{}) *gomock.Call { 506 mr.mock.ctrl.T.Helper() 507 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRateLimit", reflect.TypeOf((*MockStore)(nil).CreateRateLimit), limiting) 508 } 509 510 // CreateRoutingConfig mocks base method. 511 func (m *MockStore) CreateRoutingConfig(conf *model.RoutingConfig) error { 512 m.ctrl.T.Helper() 513 ret := m.ctrl.Call(m, "CreateRoutingConfig", conf) 514 ret0, _ := ret[0].(error) 515 return ret0 516 } 517 518 // CreateRoutingConfig indicates an expected call of CreateRoutingConfig. 519 func (mr *MockStoreMockRecorder) CreateRoutingConfig(conf interface{}) *gomock.Call { 520 mr.mock.ctrl.T.Helper() 521 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoutingConfig", reflect.TypeOf((*MockStore)(nil).CreateRoutingConfig), conf) 522 } 523 524 // CreateRoutingConfigV2 mocks base method. 525 func (m *MockStore) CreateRoutingConfigV2(conf *model.RouterConfig) error { 526 m.ctrl.T.Helper() 527 ret := m.ctrl.Call(m, "CreateRoutingConfigV2", conf) 528 ret0, _ := ret[0].(error) 529 return ret0 530 } 531 532 // CreateRoutingConfigV2 indicates an expected call of CreateRoutingConfigV2. 533 func (mr *MockStoreMockRecorder) CreateRoutingConfigV2(conf interface{}) *gomock.Call { 534 mr.mock.ctrl.T.Helper() 535 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoutingConfigV2", reflect.TypeOf((*MockStore)(nil).CreateRoutingConfigV2), conf) 536 } 537 538 // CreateRoutingConfigV2Tx mocks base method. 539 func (m *MockStore) CreateRoutingConfigV2Tx(tx store.Tx, conf *model.RouterConfig) error { 540 m.ctrl.T.Helper() 541 ret := m.ctrl.Call(m, "CreateRoutingConfigV2Tx", tx, conf) 542 ret0, _ := ret[0].(error) 543 return ret0 544 } 545 546 // CreateRoutingConfigV2Tx indicates an expected call of CreateRoutingConfigV2Tx. 547 func (mr *MockStoreMockRecorder) CreateRoutingConfigV2Tx(tx, conf interface{}) *gomock.Call { 548 mr.mock.ctrl.T.Helper() 549 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoutingConfigV2Tx", reflect.TypeOf((*MockStore)(nil).CreateRoutingConfigV2Tx), tx, conf) 550 } 551 552 // CreateTransaction mocks base method. 553 func (m *MockStore) CreateTransaction() (store.Transaction, error) { 554 m.ctrl.T.Helper() 555 ret := m.ctrl.Call(m, "CreateTransaction") 556 ret0, _ := ret[0].(store.Transaction) 557 ret1, _ := ret[1].(error) 558 return ret0, ret1 559 } 560 561 // CreateTransaction indicates an expected call of CreateTransaction. 562 func (mr *MockStoreMockRecorder) CreateTransaction() *gomock.Call { 563 mr.mock.ctrl.T.Helper() 564 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTransaction", reflect.TypeOf((*MockStore)(nil).CreateTransaction)) 565 } 566 567 // DeleteCircuitBreakerRule mocks base method. 568 func (m *MockStore) DeleteCircuitBreakerRule(id string) error { 569 m.ctrl.T.Helper() 570 ret := m.ctrl.Call(m, "DeleteCircuitBreakerRule", id) 571 ret0, _ := ret[0].(error) 572 return ret0 573 } 574 575 // DeleteCircuitBreakerRule indicates an expected call of DeleteCircuitBreakerRule. 576 func (mr *MockStoreMockRecorder) DeleteCircuitBreakerRule(id interface{}) *gomock.Call { 577 mr.mock.ctrl.T.Helper() 578 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCircuitBreakerRule", reflect.TypeOf((*MockStore)(nil).DeleteCircuitBreakerRule), id) 579 } 580 581 // DeleteConfigFileGroup mocks base method. 582 func (m *MockStore) DeleteConfigFileGroup(namespace, name string) error { 583 m.ctrl.T.Helper() 584 ret := m.ctrl.Call(m, "DeleteConfigFileGroup", namespace, name) 585 ret0, _ := ret[0].(error) 586 return ret0 587 } 588 589 // DeleteConfigFileGroup indicates an expected call of DeleteConfigFileGroup. 590 func (mr *MockStoreMockRecorder) DeleteConfigFileGroup(namespace, name interface{}) *gomock.Call { 591 mr.mock.ctrl.T.Helper() 592 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigFileGroup", reflect.TypeOf((*MockStore)(nil).DeleteConfigFileGroup), namespace, name) 593 } 594 595 // DeleteConfigFileReleaseTx mocks base method. 596 func (m *MockStore) DeleteConfigFileReleaseTx(tx store.Tx, data *model.ConfigFileReleaseKey) error { 597 m.ctrl.T.Helper() 598 ret := m.ctrl.Call(m, "DeleteConfigFileReleaseTx", tx, data) 599 ret0, _ := ret[0].(error) 600 return ret0 601 } 602 603 // DeleteConfigFileReleaseTx indicates an expected call of DeleteConfigFileReleaseTx. 604 func (mr *MockStoreMockRecorder) DeleteConfigFileReleaseTx(tx, data interface{}) *gomock.Call { 605 mr.mock.ctrl.T.Helper() 606 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigFileReleaseTx", reflect.TypeOf((*MockStore)(nil).DeleteConfigFileReleaseTx), tx, data) 607 } 608 609 // DeleteConfigFileTx mocks base method. 610 func (m *MockStore) DeleteConfigFileTx(tx store.Tx, namespace, group, name string) error { 611 m.ctrl.T.Helper() 612 ret := m.ctrl.Call(m, "DeleteConfigFileTx", tx, namespace, group, name) 613 ret0, _ := ret[0].(error) 614 return ret0 615 } 616 617 // DeleteConfigFileTx indicates an expected call of DeleteConfigFileTx. 618 func (mr *MockStoreMockRecorder) DeleteConfigFileTx(tx, namespace, group, name interface{}) *gomock.Call { 619 mr.mock.ctrl.T.Helper() 620 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigFileTx", reflect.TypeOf((*MockStore)(nil).DeleteConfigFileTx), tx, namespace, group, name) 621 } 622 623 // DeleteFaultDetectRule mocks base method. 624 func (m *MockStore) DeleteFaultDetectRule(id string) error { 625 m.ctrl.T.Helper() 626 ret := m.ctrl.Call(m, "DeleteFaultDetectRule", id) 627 ret0, _ := ret[0].(error) 628 return ret0 629 } 630 631 // DeleteFaultDetectRule indicates an expected call of DeleteFaultDetectRule. 632 func (mr *MockStoreMockRecorder) DeleteFaultDetectRule(id interface{}) *gomock.Call { 633 mr.mock.ctrl.T.Helper() 634 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteFaultDetectRule", reflect.TypeOf((*MockStore)(nil).DeleteFaultDetectRule), id) 635 } 636 637 // DeleteGroup mocks base method. 638 func (m *MockStore) DeleteGroup(group *model.UserGroupDetail) error { 639 m.ctrl.T.Helper() 640 ret := m.ctrl.Call(m, "DeleteGroup", group) 641 ret0, _ := ret[0].(error) 642 return ret0 643 } 644 645 // DeleteGroup indicates an expected call of DeleteGroup. 646 func (mr *MockStoreMockRecorder) DeleteGroup(group interface{}) *gomock.Call { 647 mr.mock.ctrl.T.Helper() 648 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGroup", reflect.TypeOf((*MockStore)(nil).DeleteGroup), group) 649 } 650 651 // DeleteInstance mocks base method. 652 func (m *MockStore) DeleteInstance(instanceID string) error { 653 m.ctrl.T.Helper() 654 ret := m.ctrl.Call(m, "DeleteInstance", instanceID) 655 ret0, _ := ret[0].(error) 656 return ret0 657 } 658 659 // DeleteInstance indicates an expected call of DeleteInstance. 660 func (mr *MockStoreMockRecorder) DeleteInstance(instanceID interface{}) *gomock.Call { 661 mr.mock.ctrl.T.Helper() 662 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteInstance", reflect.TypeOf((*MockStore)(nil).DeleteInstance), instanceID) 663 } 664 665 // DeleteRateLimit mocks base method. 666 func (m *MockStore) DeleteRateLimit(limiting *model.RateLimit) error { 667 m.ctrl.T.Helper() 668 ret := m.ctrl.Call(m, "DeleteRateLimit", limiting) 669 ret0, _ := ret[0].(error) 670 return ret0 671 } 672 673 // DeleteRateLimit indicates an expected call of DeleteRateLimit. 674 func (mr *MockStoreMockRecorder) DeleteRateLimit(limiting interface{}) *gomock.Call { 675 mr.mock.ctrl.T.Helper() 676 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRateLimit", reflect.TypeOf((*MockStore)(nil).DeleteRateLimit), limiting) 677 } 678 679 // DeleteRoutingConfig mocks base method. 680 func (m *MockStore) DeleteRoutingConfig(serviceID string) error { 681 m.ctrl.T.Helper() 682 ret := m.ctrl.Call(m, "DeleteRoutingConfig", serviceID) 683 ret0, _ := ret[0].(error) 684 return ret0 685 } 686 687 // DeleteRoutingConfig indicates an expected call of DeleteRoutingConfig. 688 func (mr *MockStoreMockRecorder) DeleteRoutingConfig(serviceID interface{}) *gomock.Call { 689 mr.mock.ctrl.T.Helper() 690 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoutingConfig", reflect.TypeOf((*MockStore)(nil).DeleteRoutingConfig), serviceID) 691 } 692 693 // DeleteRoutingConfigTx mocks base method. 694 func (m *MockStore) DeleteRoutingConfigTx(tx store.Tx, serviceID string) error { 695 m.ctrl.T.Helper() 696 ret := m.ctrl.Call(m, "DeleteRoutingConfigTx", tx, serviceID) 697 ret0, _ := ret[0].(error) 698 return ret0 699 } 700 701 // DeleteRoutingConfigTx indicates an expected call of DeleteRoutingConfigTx. 702 func (mr *MockStoreMockRecorder) DeleteRoutingConfigTx(tx, serviceID interface{}) *gomock.Call { 703 mr.mock.ctrl.T.Helper() 704 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoutingConfigTx", reflect.TypeOf((*MockStore)(nil).DeleteRoutingConfigTx), tx, serviceID) 705 } 706 707 // DeleteRoutingConfigV2 mocks base method. 708 func (m *MockStore) DeleteRoutingConfigV2(serviceID string) error { 709 m.ctrl.T.Helper() 710 ret := m.ctrl.Call(m, "DeleteRoutingConfigV2", serviceID) 711 ret0, _ := ret[0].(error) 712 return ret0 713 } 714 715 // DeleteRoutingConfigV2 indicates an expected call of DeleteRoutingConfigV2. 716 func (mr *MockStoreMockRecorder) DeleteRoutingConfigV2(serviceID interface{}) *gomock.Call { 717 mr.mock.ctrl.T.Helper() 718 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoutingConfigV2", reflect.TypeOf((*MockStore)(nil).DeleteRoutingConfigV2), serviceID) 719 } 720 721 // DeleteService mocks base method. 722 func (m *MockStore) DeleteService(id, serviceName, namespaceName string) error { 723 m.ctrl.T.Helper() 724 ret := m.ctrl.Call(m, "DeleteService", id, serviceName, namespaceName) 725 ret0, _ := ret[0].(error) 726 return ret0 727 } 728 729 // DeleteService indicates an expected call of DeleteService. 730 func (mr *MockStoreMockRecorder) DeleteService(id, serviceName, namespaceName interface{}) *gomock.Call { 731 mr.mock.ctrl.T.Helper() 732 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteService", reflect.TypeOf((*MockStore)(nil).DeleteService), id, serviceName, namespaceName) 733 } 734 735 // DeleteServiceAlias mocks base method. 736 func (m *MockStore) DeleteServiceAlias(name, namespace string) error { 737 m.ctrl.T.Helper() 738 ret := m.ctrl.Call(m, "DeleteServiceAlias", name, namespace) 739 ret0, _ := ret[0].(error) 740 return ret0 741 } 742 743 // DeleteServiceAlias indicates an expected call of DeleteServiceAlias. 744 func (mr *MockStoreMockRecorder) DeleteServiceAlias(name, namespace interface{}) *gomock.Call { 745 mr.mock.ctrl.T.Helper() 746 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteServiceAlias", reflect.TypeOf((*MockStore)(nil).DeleteServiceAlias), name, namespace) 747 } 748 749 // DeleteStrategy mocks base method. 750 func (m *MockStore) DeleteStrategy(id string) error { 751 m.ctrl.T.Helper() 752 ret := m.ctrl.Call(m, "DeleteStrategy", id) 753 ret0, _ := ret[0].(error) 754 return ret0 755 } 756 757 // DeleteStrategy indicates an expected call of DeleteStrategy. 758 func (mr *MockStoreMockRecorder) DeleteStrategy(id interface{}) *gomock.Call { 759 mr.mock.ctrl.T.Helper() 760 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteStrategy", reflect.TypeOf((*MockStore)(nil).DeleteStrategy), id) 761 } 762 763 // DeleteUser mocks base method. 764 func (m *MockStore) DeleteUser(user *model.User) error { 765 m.ctrl.T.Helper() 766 ret := m.ctrl.Call(m, "DeleteUser", user) 767 ret0, _ := ret[0].(error) 768 return ret0 769 } 770 771 // DeleteUser indicates an expected call of DeleteUser. 772 func (mr *MockStoreMockRecorder) DeleteUser(user interface{}) *gomock.Call { 773 mr.mock.ctrl.T.Helper() 774 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUser", reflect.TypeOf((*MockStore)(nil).DeleteUser), user) 775 } 776 777 // Destroy mocks base method. 778 func (m *MockStore) Destroy() error { 779 m.ctrl.T.Helper() 780 ret := m.ctrl.Call(m, "Destroy") 781 ret0, _ := ret[0].(error) 782 return ret0 783 } 784 785 // Destroy indicates an expected call of Destroy. 786 func (mr *MockStoreMockRecorder) Destroy() *gomock.Call { 787 mr.mock.ctrl.T.Helper() 788 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockStore)(nil).Destroy)) 789 } 790 791 // EnableCircuitBreakerRule mocks base method. 792 func (m *MockStore) EnableCircuitBreakerRule(cbRule *model.CircuitBreakerRule) error { 793 m.ctrl.T.Helper() 794 ret := m.ctrl.Call(m, "EnableCircuitBreakerRule", cbRule) 795 ret0, _ := ret[0].(error) 796 return ret0 797 } 798 799 // EnableCircuitBreakerRule indicates an expected call of EnableCircuitBreakerRule. 800 func (mr *MockStoreMockRecorder) EnableCircuitBreakerRule(cbRule interface{}) *gomock.Call { 801 mr.mock.ctrl.T.Helper() 802 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableCircuitBreakerRule", reflect.TypeOf((*MockStore)(nil).EnableCircuitBreakerRule), cbRule) 803 } 804 805 // EnableRateLimit mocks base method. 806 func (m *MockStore) EnableRateLimit(limit *model.RateLimit) error { 807 m.ctrl.T.Helper() 808 ret := m.ctrl.Call(m, "EnableRateLimit", limit) 809 ret0, _ := ret[0].(error) 810 return ret0 811 } 812 813 // EnableRateLimit indicates an expected call of EnableRateLimit. 814 func (mr *MockStoreMockRecorder) EnableRateLimit(limit interface{}) *gomock.Call { 815 mr.mock.ctrl.T.Helper() 816 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableRateLimit", reflect.TypeOf((*MockStore)(nil).EnableRateLimit), limit) 817 } 818 819 // EnableRouting mocks base method. 820 func (m *MockStore) EnableRouting(conf *model.RouterConfig) error { 821 m.ctrl.T.Helper() 822 ret := m.ctrl.Call(m, "EnableRouting", conf) 823 ret0, _ := ret[0].(error) 824 return ret0 825 } 826 827 // EnableRouting indicates an expected call of EnableRouting. 828 func (mr *MockStoreMockRecorder) EnableRouting(conf interface{}) *gomock.Call { 829 mr.mock.ctrl.T.Helper() 830 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableRouting", reflect.TypeOf((*MockStore)(nil).EnableRouting), conf) 831 } 832 833 // GenNextL5Sid mocks base method. 834 func (m *MockStore) GenNextL5Sid(layoutID uint32) (string, error) { 835 m.ctrl.T.Helper() 836 ret := m.ctrl.Call(m, "GenNextL5Sid", layoutID) 837 ret0, _ := ret[0].(string) 838 ret1, _ := ret[1].(error) 839 return ret0, ret1 840 } 841 842 // GenNextL5Sid indicates an expected call of GenNextL5Sid. 843 func (mr *MockStoreMockRecorder) GenNextL5Sid(layoutID interface{}) *gomock.Call { 844 mr.mock.ctrl.T.Helper() 845 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenNextL5Sid", reflect.TypeOf((*MockStore)(nil).GenNextL5Sid), layoutID) 846 } 847 848 // GetCircuitBreakerRules mocks base method. 849 func (m *MockStore) GetCircuitBreakerRules(filter map[string]string, offset, limit uint32) (uint32, []*model.CircuitBreakerRule, error) { 850 m.ctrl.T.Helper() 851 ret := m.ctrl.Call(m, "GetCircuitBreakerRules", filter, offset, limit) 852 ret0, _ := ret[0].(uint32) 853 ret1, _ := ret[1].([]*model.CircuitBreakerRule) 854 ret2, _ := ret[2].(error) 855 return ret0, ret1, ret2 856 } 857 858 // GetCircuitBreakerRules indicates an expected call of GetCircuitBreakerRules. 859 func (mr *MockStoreMockRecorder) GetCircuitBreakerRules(filter, offset, limit interface{}) *gomock.Call { 860 mr.mock.ctrl.T.Helper() 861 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCircuitBreakerRules", reflect.TypeOf((*MockStore)(nil).GetCircuitBreakerRules), filter, offset, limit) 862 } 863 864 // GetCircuitBreakerRulesForCache mocks base method. 865 func (m *MockStore) GetCircuitBreakerRulesForCache(mtime time.Time, firstUpdate bool) ([]*model.CircuitBreakerRule, error) { 866 m.ctrl.T.Helper() 867 ret := m.ctrl.Call(m, "GetCircuitBreakerRulesForCache", mtime, firstUpdate) 868 ret0, _ := ret[0].([]*model.CircuitBreakerRule) 869 ret1, _ := ret[1].(error) 870 return ret0, ret1 871 } 872 873 // GetCircuitBreakerRulesForCache indicates an expected call of GetCircuitBreakerRulesForCache. 874 func (mr *MockStoreMockRecorder) GetCircuitBreakerRulesForCache(mtime, firstUpdate interface{}) *gomock.Call { 875 mr.mock.ctrl.T.Helper() 876 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCircuitBreakerRulesForCache", reflect.TypeOf((*MockStore)(nil).GetCircuitBreakerRulesForCache), mtime, firstUpdate) 877 } 878 879 // GetConfigFile mocks base method. 880 func (m *MockStore) GetConfigFile(namespace, group, name string) (*model.ConfigFile, error) { 881 m.ctrl.T.Helper() 882 ret := m.ctrl.Call(m, "GetConfigFile", namespace, group, name) 883 ret0, _ := ret[0].(*model.ConfigFile) 884 ret1, _ := ret[1].(error) 885 return ret0, ret1 886 } 887 888 // GetConfigFile indicates an expected call of GetConfigFile. 889 func (mr *MockStoreMockRecorder) GetConfigFile(namespace, group, name interface{}) *gomock.Call { 890 mr.mock.ctrl.T.Helper() 891 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFile", reflect.TypeOf((*MockStore)(nil).GetConfigFile), namespace, group, name) 892 } 893 894 // GetConfigFileActiveRelease mocks base method. 895 func (m *MockStore) GetConfigFileActiveRelease(file *model.ConfigFileKey) (*model.ConfigFileRelease, error) { 896 m.ctrl.T.Helper() 897 ret := m.ctrl.Call(m, "GetConfigFileActiveRelease", file) 898 ret0, _ := ret[0].(*model.ConfigFileRelease) 899 ret1, _ := ret[1].(error) 900 return ret0, ret1 901 } 902 903 // GetConfigFileActiveRelease indicates an expected call of GetConfigFileActiveRelease. 904 func (mr *MockStoreMockRecorder) GetConfigFileActiveRelease(file interface{}) *gomock.Call { 905 mr.mock.ctrl.T.Helper() 906 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFileActiveRelease", reflect.TypeOf((*MockStore)(nil).GetConfigFileActiveRelease), file) 907 } 908 909 // GetConfigFileActiveReleaseTx mocks base method. 910 func (m *MockStore) GetConfigFileActiveReleaseTx(tx store.Tx, file *model.ConfigFileKey) (*model.ConfigFileRelease, error) { 911 m.ctrl.T.Helper() 912 ret := m.ctrl.Call(m, "GetConfigFileActiveReleaseTx", tx, file) 913 ret0, _ := ret[0].(*model.ConfigFileRelease) 914 ret1, _ := ret[1].(error) 915 return ret0, ret1 916 } 917 918 // GetConfigFileActiveReleaseTx indicates an expected call of GetConfigFileActiveReleaseTx. 919 func (mr *MockStoreMockRecorder) GetConfigFileActiveReleaseTx(tx, file interface{}) *gomock.Call { 920 mr.mock.ctrl.T.Helper() 921 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFileActiveReleaseTx", reflect.TypeOf((*MockStore)(nil).GetConfigFileActiveReleaseTx), tx, file) 922 } 923 924 // GetConfigFileGroup mocks base method. 925 func (m *MockStore) GetConfigFileGroup(namespace, name string) (*model.ConfigFileGroup, error) { 926 m.ctrl.T.Helper() 927 ret := m.ctrl.Call(m, "GetConfigFileGroup", namespace, name) 928 ret0, _ := ret[0].(*model.ConfigFileGroup) 929 ret1, _ := ret[1].(error) 930 return ret0, ret1 931 } 932 933 // GetConfigFileGroup indicates an expected call of GetConfigFileGroup. 934 func (mr *MockStoreMockRecorder) GetConfigFileGroup(namespace, name interface{}) *gomock.Call { 935 mr.mock.ctrl.T.Helper() 936 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFileGroup", reflect.TypeOf((*MockStore)(nil).GetConfigFileGroup), namespace, name) 937 } 938 939 // GetConfigFileRelease mocks base method. 940 func (m *MockStore) GetConfigFileRelease(req *model.ConfigFileReleaseKey) (*model.ConfigFileRelease, error) { 941 m.ctrl.T.Helper() 942 ret := m.ctrl.Call(m, "GetConfigFileRelease", req) 943 ret0, _ := ret[0].(*model.ConfigFileRelease) 944 ret1, _ := ret[1].(error) 945 return ret0, ret1 946 } 947 948 // GetConfigFileRelease indicates an expected call of GetConfigFileRelease. 949 func (mr *MockStoreMockRecorder) GetConfigFileRelease(req interface{}) *gomock.Call { 950 mr.mock.ctrl.T.Helper() 951 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFileRelease", reflect.TypeOf((*MockStore)(nil).GetConfigFileRelease), req) 952 } 953 954 // GetConfigFileReleaseTx mocks base method. 955 func (m *MockStore) GetConfigFileReleaseTx(tx store.Tx, req *model.ConfigFileReleaseKey) (*model.ConfigFileRelease, error) { 956 m.ctrl.T.Helper() 957 ret := m.ctrl.Call(m, "GetConfigFileReleaseTx", tx, req) 958 ret0, _ := ret[0].(*model.ConfigFileRelease) 959 ret1, _ := ret[1].(error) 960 return ret0, ret1 961 } 962 963 // GetConfigFileReleaseTx indicates an expected call of GetConfigFileReleaseTx. 964 func (mr *MockStoreMockRecorder) GetConfigFileReleaseTx(tx, req interface{}) *gomock.Call { 965 mr.mock.ctrl.T.Helper() 966 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFileReleaseTx", reflect.TypeOf((*MockStore)(nil).GetConfigFileReleaseTx), tx, req) 967 } 968 969 // GetConfigFileTemplate mocks base method. 970 func (m *MockStore) GetConfigFileTemplate(name string) (*model.ConfigFileTemplate, error) { 971 m.ctrl.T.Helper() 972 ret := m.ctrl.Call(m, "GetConfigFileTemplate", name) 973 ret0, _ := ret[0].(*model.ConfigFileTemplate) 974 ret1, _ := ret[1].(error) 975 return ret0, ret1 976 } 977 978 // GetConfigFileTemplate indicates an expected call of GetConfigFileTemplate. 979 func (mr *MockStoreMockRecorder) GetConfigFileTemplate(name interface{}) *gomock.Call { 980 mr.mock.ctrl.T.Helper() 981 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFileTemplate", reflect.TypeOf((*MockStore)(nil).GetConfigFileTemplate), name) 982 } 983 984 // GetConfigFileTx mocks base method. 985 func (m *MockStore) GetConfigFileTx(tx store.Tx, namespace, group, name string) (*model.ConfigFile, error) { 986 m.ctrl.T.Helper() 987 ret := m.ctrl.Call(m, "GetConfigFileTx", tx, namespace, group, name) 988 ret0, _ := ret[0].(*model.ConfigFile) 989 ret1, _ := ret[1].(error) 990 return ret0, ret1 991 } 992 993 // GetConfigFileTx indicates an expected call of GetConfigFileTx. 994 func (mr *MockStoreMockRecorder) GetConfigFileTx(tx, namespace, group, name interface{}) *gomock.Call { 995 mr.mock.ctrl.T.Helper() 996 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigFileTx", reflect.TypeOf((*MockStore)(nil).GetConfigFileTx), tx, namespace, group, name) 997 } 998 999 // GetDefaultStrategyDetailByPrincipal mocks base method. 1000 func (m *MockStore) GetDefaultStrategyDetailByPrincipal(principalId string, principalType model.PrincipalType) (*model.StrategyDetail, error) { 1001 m.ctrl.T.Helper() 1002 ret := m.ctrl.Call(m, "GetDefaultStrategyDetailByPrincipal", principalId, principalType) 1003 ret0, _ := ret[0].(*model.StrategyDetail) 1004 ret1, _ := ret[1].(error) 1005 return ret0, ret1 1006 } 1007 1008 // GetDefaultStrategyDetailByPrincipal indicates an expected call of GetDefaultStrategyDetailByPrincipal. 1009 func (mr *MockStoreMockRecorder) GetDefaultStrategyDetailByPrincipal(principalId, principalType interface{}) *gomock.Call { 1010 mr.mock.ctrl.T.Helper() 1011 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultStrategyDetailByPrincipal", reflect.TypeOf((*MockStore)(nil).GetDefaultStrategyDetailByPrincipal), principalId, principalType) 1012 } 1013 1014 // GetExpandInstances mocks base method. 1015 func (m *MockStore) GetExpandInstances(filter, metaFilter map[string]string, offset, limit uint32) (uint32, []*model.Instance, error) { 1016 m.ctrl.T.Helper() 1017 ret := m.ctrl.Call(m, "GetExpandInstances", filter, metaFilter, offset, limit) 1018 ret0, _ := ret[0].(uint32) 1019 ret1, _ := ret[1].([]*model.Instance) 1020 ret2, _ := ret[2].(error) 1021 return ret0, ret1, ret2 1022 } 1023 1024 // GetExpandInstances indicates an expected call of GetExpandInstances. 1025 func (mr *MockStoreMockRecorder) GetExpandInstances(filter, metaFilter, offset, limit interface{}) *gomock.Call { 1026 mr.mock.ctrl.T.Helper() 1027 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExpandInstances", reflect.TypeOf((*MockStore)(nil).GetExpandInstances), filter, metaFilter, offset, limit) 1028 } 1029 1030 // GetExtendRateLimits mocks base method. 1031 func (m *MockStore) GetExtendRateLimits(query map[string]string, offset, limit uint32) (uint32, []*model.ExtendRateLimit, error) { 1032 m.ctrl.T.Helper() 1033 ret := m.ctrl.Call(m, "GetExtendRateLimits", query, offset, limit) 1034 ret0, _ := ret[0].(uint32) 1035 ret1, _ := ret[1].([]*model.ExtendRateLimit) 1036 ret2, _ := ret[2].(error) 1037 return ret0, ret1, ret2 1038 } 1039 1040 // GetExtendRateLimits indicates an expected call of GetExtendRateLimits. 1041 func (mr *MockStoreMockRecorder) GetExtendRateLimits(query, offset, limit interface{}) *gomock.Call { 1042 mr.mock.ctrl.T.Helper() 1043 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExtendRateLimits", reflect.TypeOf((*MockStore)(nil).GetExtendRateLimits), query, offset, limit) 1044 } 1045 1046 // GetFaultDetectRules mocks base method. 1047 func (m *MockStore) GetFaultDetectRules(filter map[string]string, offset, limit uint32) (uint32, []*model.FaultDetectRule, error) { 1048 m.ctrl.T.Helper() 1049 ret := m.ctrl.Call(m, "GetFaultDetectRules", filter, offset, limit) 1050 ret0, _ := ret[0].(uint32) 1051 ret1, _ := ret[1].([]*model.FaultDetectRule) 1052 ret2, _ := ret[2].(error) 1053 return ret0, ret1, ret2 1054 } 1055 1056 // GetFaultDetectRules indicates an expected call of GetFaultDetectRules. 1057 func (mr *MockStoreMockRecorder) GetFaultDetectRules(filter, offset, limit interface{}) *gomock.Call { 1058 mr.mock.ctrl.T.Helper() 1059 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFaultDetectRules", reflect.TypeOf((*MockStore)(nil).GetFaultDetectRules), filter, offset, limit) 1060 } 1061 1062 // GetFaultDetectRulesForCache mocks base method. 1063 func (m *MockStore) GetFaultDetectRulesForCache(mtime time.Time, firstUpdate bool) ([]*model.FaultDetectRule, error) { 1064 m.ctrl.T.Helper() 1065 ret := m.ctrl.Call(m, "GetFaultDetectRulesForCache", mtime, firstUpdate) 1066 ret0, _ := ret[0].([]*model.FaultDetectRule) 1067 ret1, _ := ret[1].(error) 1068 return ret0, ret1 1069 } 1070 1071 // GetFaultDetectRulesForCache indicates an expected call of GetFaultDetectRulesForCache. 1072 func (mr *MockStoreMockRecorder) GetFaultDetectRulesForCache(mtime, firstUpdate interface{}) *gomock.Call { 1073 mr.mock.ctrl.T.Helper() 1074 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFaultDetectRulesForCache", reflect.TypeOf((*MockStore)(nil).GetFaultDetectRulesForCache), mtime, firstUpdate) 1075 } 1076 1077 // GetGroup mocks base method. 1078 func (m *MockStore) GetGroup(id string) (*model.UserGroupDetail, error) { 1079 m.ctrl.T.Helper() 1080 ret := m.ctrl.Call(m, "GetGroup", id) 1081 ret0, _ := ret[0].(*model.UserGroupDetail) 1082 ret1, _ := ret[1].(error) 1083 return ret0, ret1 1084 } 1085 1086 // GetGroup indicates an expected call of GetGroup. 1087 func (mr *MockStoreMockRecorder) GetGroup(id interface{}) *gomock.Call { 1088 mr.mock.ctrl.T.Helper() 1089 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockStore)(nil).GetGroup), id) 1090 } 1091 1092 // GetGroupByName mocks base method. 1093 func (m *MockStore) GetGroupByName(name, owner string) (*model.UserGroup, error) { 1094 m.ctrl.T.Helper() 1095 ret := m.ctrl.Call(m, "GetGroupByName", name, owner) 1096 ret0, _ := ret[0].(*model.UserGroup) 1097 ret1, _ := ret[1].(error) 1098 return ret0, ret1 1099 } 1100 1101 // GetGroupByName indicates an expected call of GetGroupByName. 1102 func (mr *MockStoreMockRecorder) GetGroupByName(name, owner interface{}) *gomock.Call { 1103 mr.mock.ctrl.T.Helper() 1104 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupByName", reflect.TypeOf((*MockStore)(nil).GetGroupByName), name, owner) 1105 } 1106 1107 // GetGroups mocks base method. 1108 func (m *MockStore) GetGroups(filters map[string]string, offset, limit uint32) (uint32, []*model.UserGroup, error) { 1109 m.ctrl.T.Helper() 1110 ret := m.ctrl.Call(m, "GetGroups", filters, offset, limit) 1111 ret0, _ := ret[0].(uint32) 1112 ret1, _ := ret[1].([]*model.UserGroup) 1113 ret2, _ := ret[2].(error) 1114 return ret0, ret1, ret2 1115 } 1116 1117 // GetGroups indicates an expected call of GetGroups. 1118 func (mr *MockStoreMockRecorder) GetGroups(filters, offset, limit interface{}) *gomock.Call { 1119 mr.mock.ctrl.T.Helper() 1120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroups", reflect.TypeOf((*MockStore)(nil).GetGroups), filters, offset, limit) 1121 } 1122 1123 // GetGroupsForCache mocks base method. 1124 func (m *MockStore) GetGroupsForCache(mtime time.Time, firstUpdate bool) ([]*model.UserGroupDetail, error) { 1125 m.ctrl.T.Helper() 1126 ret := m.ctrl.Call(m, "GetGroupsForCache", mtime, firstUpdate) 1127 ret0, _ := ret[0].([]*model.UserGroupDetail) 1128 ret1, _ := ret[1].(error) 1129 return ret0, ret1 1130 } 1131 1132 // GetGroupsForCache indicates an expected call of GetGroupsForCache. 1133 func (mr *MockStoreMockRecorder) GetGroupsForCache(mtime, firstUpdate interface{}) *gomock.Call { 1134 mr.mock.ctrl.T.Helper() 1135 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupsForCache", reflect.TypeOf((*MockStore)(nil).GetGroupsForCache), mtime, firstUpdate) 1136 } 1137 1138 // GetInstance mocks base method. 1139 func (m *MockStore) GetInstance(instanceID string) (*model.Instance, error) { 1140 m.ctrl.T.Helper() 1141 ret := m.ctrl.Call(m, "GetInstance", instanceID) 1142 ret0, _ := ret[0].(*model.Instance) 1143 ret1, _ := ret[1].(error) 1144 return ret0, ret1 1145 } 1146 1147 // GetInstance indicates an expected call of GetInstance. 1148 func (mr *MockStoreMockRecorder) GetInstance(instanceID interface{}) *gomock.Call { 1149 mr.mock.ctrl.T.Helper() 1150 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstance", reflect.TypeOf((*MockStore)(nil).GetInstance), instanceID) 1151 } 1152 1153 // GetInstancesBrief mocks base method. 1154 func (m *MockStore) GetInstancesBrief(ids map[string]bool) (map[string]*model.Instance, error) { 1155 m.ctrl.T.Helper() 1156 ret := m.ctrl.Call(m, "GetInstancesBrief", ids) 1157 ret0, _ := ret[0].(map[string]*model.Instance) 1158 ret1, _ := ret[1].(error) 1159 return ret0, ret1 1160 } 1161 1162 // GetInstancesBrief indicates an expected call of GetInstancesBrief. 1163 func (mr *MockStoreMockRecorder) GetInstancesBrief(ids interface{}) *gomock.Call { 1164 mr.mock.ctrl.T.Helper() 1165 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesBrief", reflect.TypeOf((*MockStore)(nil).GetInstancesBrief), ids) 1166 } 1167 1168 // GetInstancesCount mocks base method. 1169 func (m *MockStore) GetInstancesCount() (uint32, error) { 1170 m.ctrl.T.Helper() 1171 ret := m.ctrl.Call(m, "GetInstancesCount") 1172 ret0, _ := ret[0].(uint32) 1173 ret1, _ := ret[1].(error) 1174 return ret0, ret1 1175 } 1176 1177 // GetInstancesCount indicates an expected call of GetInstancesCount. 1178 func (mr *MockStoreMockRecorder) GetInstancesCount() *gomock.Call { 1179 mr.mock.ctrl.T.Helper() 1180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesCount", reflect.TypeOf((*MockStore)(nil).GetInstancesCount)) 1181 } 1182 1183 // GetInstancesCountTx mocks base method. 1184 func (m *MockStore) GetInstancesCountTx(tx store.Tx) (uint32, error) { 1185 m.ctrl.T.Helper() 1186 ret := m.ctrl.Call(m, "GetInstancesCountTx", tx) 1187 ret0, _ := ret[0].(uint32) 1188 ret1, _ := ret[1].(error) 1189 return ret0, ret1 1190 } 1191 1192 // GetInstancesCountTx indicates an expected call of GetInstancesCountTx. 1193 func (mr *MockStoreMockRecorder) GetInstancesCountTx(tx interface{}) *gomock.Call { 1194 mr.mock.ctrl.T.Helper() 1195 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesCountTx", reflect.TypeOf((*MockStore)(nil).GetInstancesCountTx), tx) 1196 } 1197 1198 // GetInstancesMainByService mocks base method. 1199 func (m *MockStore) GetInstancesMainByService(serviceID, host string) ([]*model.Instance, error) { 1200 m.ctrl.T.Helper() 1201 ret := m.ctrl.Call(m, "GetInstancesMainByService", serviceID, host) 1202 ret0, _ := ret[0].([]*model.Instance) 1203 ret1, _ := ret[1].(error) 1204 return ret0, ret1 1205 } 1206 1207 // GetInstancesMainByService indicates an expected call of GetInstancesMainByService. 1208 func (mr *MockStoreMockRecorder) GetInstancesMainByService(serviceID, host interface{}) *gomock.Call { 1209 mr.mock.ctrl.T.Helper() 1210 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesMainByService", reflect.TypeOf((*MockStore)(nil).GetInstancesMainByService), serviceID, host) 1211 } 1212 1213 // GetL5Extend mocks base method. 1214 func (m *MockStore) GetL5Extend(serviceID string) (map[string]interface{}, error) { 1215 m.ctrl.T.Helper() 1216 ret := m.ctrl.Call(m, "GetL5Extend", serviceID) 1217 ret0, _ := ret[0].(map[string]interface{}) 1218 ret1, _ := ret[1].(error) 1219 return ret0, ret1 1220 } 1221 1222 // GetL5Extend indicates an expected call of GetL5Extend. 1223 func (mr *MockStoreMockRecorder) GetL5Extend(serviceID interface{}) *gomock.Call { 1224 mr.mock.ctrl.T.Helper() 1225 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetL5Extend", reflect.TypeOf((*MockStore)(nil).GetL5Extend), serviceID) 1226 } 1227 1228 // GetMoreClients mocks base method. 1229 func (m *MockStore) GetMoreClients(mtime time.Time, firstUpdate bool) (map[string]*model.Client, error) { 1230 m.ctrl.T.Helper() 1231 ret := m.ctrl.Call(m, "GetMoreClients", mtime, firstUpdate) 1232 ret0, _ := ret[0].(map[string]*model.Client) 1233 ret1, _ := ret[1].(error) 1234 return ret0, ret1 1235 } 1236 1237 // GetMoreClients indicates an expected call of GetMoreClients. 1238 func (mr *MockStoreMockRecorder) GetMoreClients(mtime, firstUpdate interface{}) *gomock.Call { 1239 mr.mock.ctrl.T.Helper() 1240 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreClients", reflect.TypeOf((*MockStore)(nil).GetMoreClients), mtime, firstUpdate) 1241 } 1242 1243 // GetMoreConfigGroup mocks base method. 1244 func (m *MockStore) GetMoreConfigGroup(firstUpdate bool, mtime time.Time) ([]*model.ConfigFileGroup, error) { 1245 m.ctrl.T.Helper() 1246 ret := m.ctrl.Call(m, "GetMoreConfigGroup", firstUpdate, mtime) 1247 ret0, _ := ret[0].([]*model.ConfigFileGroup) 1248 ret1, _ := ret[1].(error) 1249 return ret0, ret1 1250 } 1251 1252 // GetMoreConfigGroup indicates an expected call of GetMoreConfigGroup. 1253 func (mr *MockStoreMockRecorder) GetMoreConfigGroup(firstUpdate, mtime interface{}) *gomock.Call { 1254 mr.mock.ctrl.T.Helper() 1255 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreConfigGroup", reflect.TypeOf((*MockStore)(nil).GetMoreConfigGroup), firstUpdate, mtime) 1256 } 1257 1258 // GetMoreInstances mocks base method. 1259 func (m *MockStore) GetMoreInstances(tx store.Tx, mtime time.Time, firstUpdate, needMeta bool, serviceID []string) (map[string]*model.Instance, error) { 1260 m.ctrl.T.Helper() 1261 ret := m.ctrl.Call(m, "GetMoreInstances", tx, mtime, firstUpdate, needMeta, serviceID) 1262 ret0, _ := ret[0].(map[string]*model.Instance) 1263 ret1, _ := ret[1].(error) 1264 return ret0, ret1 1265 } 1266 1267 // GetMoreInstances indicates an expected call of GetMoreInstances. 1268 func (mr *MockStoreMockRecorder) GetMoreInstances(tx, mtime, firstUpdate, needMeta, serviceID interface{}) *gomock.Call { 1269 mr.mock.ctrl.T.Helper() 1270 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreInstances", reflect.TypeOf((*MockStore)(nil).GetMoreInstances), tx, mtime, firstUpdate, needMeta, serviceID) 1271 } 1272 1273 // GetMoreL5Extend mocks base method. 1274 func (m *MockStore) GetMoreL5Extend(mtime time.Time) (map[string]map[string]interface{}, error) { 1275 m.ctrl.T.Helper() 1276 ret := m.ctrl.Call(m, "GetMoreL5Extend", mtime) 1277 ret0, _ := ret[0].(map[string]map[string]interface{}) 1278 ret1, _ := ret[1].(error) 1279 return ret0, ret1 1280 } 1281 1282 // GetMoreL5Extend indicates an expected call of GetMoreL5Extend. 1283 func (mr *MockStoreMockRecorder) GetMoreL5Extend(mtime interface{}) *gomock.Call { 1284 mr.mock.ctrl.T.Helper() 1285 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreL5Extend", reflect.TypeOf((*MockStore)(nil).GetMoreL5Extend), mtime) 1286 } 1287 1288 // GetMoreL5IPConfigs mocks base method. 1289 func (m *MockStore) GetMoreL5IPConfigs(flow uint32) ([]*model.IPConfig, error) { 1290 m.ctrl.T.Helper() 1291 ret := m.ctrl.Call(m, "GetMoreL5IPConfigs", flow) 1292 ret0, _ := ret[0].([]*model.IPConfig) 1293 ret1, _ := ret[1].(error) 1294 return ret0, ret1 1295 } 1296 1297 // GetMoreL5IPConfigs indicates an expected call of GetMoreL5IPConfigs. 1298 func (mr *MockStoreMockRecorder) GetMoreL5IPConfigs(flow interface{}) *gomock.Call { 1299 mr.mock.ctrl.T.Helper() 1300 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreL5IPConfigs", reflect.TypeOf((*MockStore)(nil).GetMoreL5IPConfigs), flow) 1301 } 1302 1303 // GetMoreL5Policies mocks base method. 1304 func (m *MockStore) GetMoreL5Policies(flow uint32) ([]*model.Policy, error) { 1305 m.ctrl.T.Helper() 1306 ret := m.ctrl.Call(m, "GetMoreL5Policies", flow) 1307 ret0, _ := ret[0].([]*model.Policy) 1308 ret1, _ := ret[1].(error) 1309 return ret0, ret1 1310 } 1311 1312 // GetMoreL5Policies indicates an expected call of GetMoreL5Policies. 1313 func (mr *MockStoreMockRecorder) GetMoreL5Policies(flow interface{}) *gomock.Call { 1314 mr.mock.ctrl.T.Helper() 1315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreL5Policies", reflect.TypeOf((*MockStore)(nil).GetMoreL5Policies), flow) 1316 } 1317 1318 // GetMoreL5Routes mocks base method. 1319 func (m *MockStore) GetMoreL5Routes(flow uint32) ([]*model.Route, error) { 1320 m.ctrl.T.Helper() 1321 ret := m.ctrl.Call(m, "GetMoreL5Routes", flow) 1322 ret0, _ := ret[0].([]*model.Route) 1323 ret1, _ := ret[1].(error) 1324 return ret0, ret1 1325 } 1326 1327 // GetMoreL5Routes indicates an expected call of GetMoreL5Routes. 1328 func (mr *MockStoreMockRecorder) GetMoreL5Routes(flow interface{}) *gomock.Call { 1329 mr.mock.ctrl.T.Helper() 1330 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreL5Routes", reflect.TypeOf((*MockStore)(nil).GetMoreL5Routes), flow) 1331 } 1332 1333 // GetMoreL5Sections mocks base method. 1334 func (m *MockStore) GetMoreL5Sections(flow uint32) ([]*model.Section, error) { 1335 m.ctrl.T.Helper() 1336 ret := m.ctrl.Call(m, "GetMoreL5Sections", flow) 1337 ret0, _ := ret[0].([]*model.Section) 1338 ret1, _ := ret[1].(error) 1339 return ret0, ret1 1340 } 1341 1342 // GetMoreL5Sections indicates an expected call of GetMoreL5Sections. 1343 func (mr *MockStoreMockRecorder) GetMoreL5Sections(flow interface{}) *gomock.Call { 1344 mr.mock.ctrl.T.Helper() 1345 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreL5Sections", reflect.TypeOf((*MockStore)(nil).GetMoreL5Sections), flow) 1346 } 1347 1348 // GetMoreNamespaces mocks base method. 1349 func (m *MockStore) GetMoreNamespaces(mtime time.Time) ([]*model.Namespace, error) { 1350 m.ctrl.T.Helper() 1351 ret := m.ctrl.Call(m, "GetMoreNamespaces", mtime) 1352 ret0, _ := ret[0].([]*model.Namespace) 1353 ret1, _ := ret[1].(error) 1354 return ret0, ret1 1355 } 1356 1357 // GetMoreNamespaces indicates an expected call of GetMoreNamespaces. 1358 func (mr *MockStoreMockRecorder) GetMoreNamespaces(mtime interface{}) *gomock.Call { 1359 mr.mock.ctrl.T.Helper() 1360 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreNamespaces", reflect.TypeOf((*MockStore)(nil).GetMoreNamespaces), mtime) 1361 } 1362 1363 // GetMoreReleaseFile mocks base method. 1364 func (m *MockStore) GetMoreReleaseFile(firstUpdate bool, modifyTime time.Time) ([]*model.ConfigFileRelease, error) { 1365 m.ctrl.T.Helper() 1366 ret := m.ctrl.Call(m, "GetMoreReleaseFile", firstUpdate, modifyTime) 1367 ret0, _ := ret[0].([]*model.ConfigFileRelease) 1368 ret1, _ := ret[1].(error) 1369 return ret0, ret1 1370 } 1371 1372 // GetMoreReleaseFile indicates an expected call of GetMoreReleaseFile. 1373 func (mr *MockStoreMockRecorder) GetMoreReleaseFile(firstUpdate, modifyTime interface{}) *gomock.Call { 1374 mr.mock.ctrl.T.Helper() 1375 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreReleaseFile", reflect.TypeOf((*MockStore)(nil).GetMoreReleaseFile), firstUpdate, modifyTime) 1376 } 1377 1378 // GetMoreServices mocks base method. 1379 func (m *MockStore) GetMoreServices(mtime time.Time, firstUpdate, disableBusiness, needMeta bool) (map[string]*model.Service, error) { 1380 m.ctrl.T.Helper() 1381 ret := m.ctrl.Call(m, "GetMoreServices", mtime, firstUpdate, disableBusiness, needMeta) 1382 ret0, _ := ret[0].(map[string]*model.Service) 1383 ret1, _ := ret[1].(error) 1384 return ret0, ret1 1385 } 1386 1387 // GetMoreServices indicates an expected call of GetMoreServices. 1388 func (mr *MockStoreMockRecorder) GetMoreServices(mtime, firstUpdate, disableBusiness, needMeta interface{}) *gomock.Call { 1389 mr.mock.ctrl.T.Helper() 1390 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreServices", reflect.TypeOf((*MockStore)(nil).GetMoreServices), mtime, firstUpdate, disableBusiness, needMeta) 1391 } 1392 1393 // GetNamespace mocks base method. 1394 func (m *MockStore) GetNamespace(name string) (*model.Namespace, error) { 1395 m.ctrl.T.Helper() 1396 ret := m.ctrl.Call(m, "GetNamespace", name) 1397 ret0, _ := ret[0].(*model.Namespace) 1398 ret1, _ := ret[1].(error) 1399 return ret0, ret1 1400 } 1401 1402 // GetNamespace indicates an expected call of GetNamespace. 1403 func (mr *MockStoreMockRecorder) GetNamespace(name interface{}) *gomock.Call { 1404 mr.mock.ctrl.T.Helper() 1405 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockStore)(nil).GetNamespace), name) 1406 } 1407 1408 // GetNamespaces mocks base method. 1409 func (m *MockStore) GetNamespaces(filter map[string][]string, offset, limit int) ([]*model.Namespace, uint32, error) { 1410 m.ctrl.T.Helper() 1411 ret := m.ctrl.Call(m, "GetNamespaces", filter, offset, limit) 1412 ret0, _ := ret[0].([]*model.Namespace) 1413 ret1, _ := ret[1].(uint32) 1414 ret2, _ := ret[2].(error) 1415 return ret0, ret1, ret2 1416 } 1417 1418 // GetNamespaces indicates an expected call of GetNamespaces. 1419 func (mr *MockStoreMockRecorder) GetNamespaces(filter, offset, limit interface{}) *gomock.Call { 1420 mr.mock.ctrl.T.Helper() 1421 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaces", reflect.TypeOf((*MockStore)(nil).GetNamespaces), filter, offset, limit) 1422 } 1423 1424 // GetRateLimitWithID mocks base method. 1425 func (m *MockStore) GetRateLimitWithID(id string) (*model.RateLimit, error) { 1426 m.ctrl.T.Helper() 1427 ret := m.ctrl.Call(m, "GetRateLimitWithID", id) 1428 ret0, _ := ret[0].(*model.RateLimit) 1429 ret1, _ := ret[1].(error) 1430 return ret0, ret1 1431 } 1432 1433 // GetRateLimitWithID indicates an expected call of GetRateLimitWithID. 1434 func (mr *MockStoreMockRecorder) GetRateLimitWithID(id interface{}) *gomock.Call { 1435 mr.mock.ctrl.T.Helper() 1436 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRateLimitWithID", reflect.TypeOf((*MockStore)(nil).GetRateLimitWithID), id) 1437 } 1438 1439 // GetRateLimitsForCache mocks base method. 1440 func (m *MockStore) GetRateLimitsForCache(mtime time.Time, firstUpdate bool) ([]*model.RateLimit, error) { 1441 m.ctrl.T.Helper() 1442 ret := m.ctrl.Call(m, "GetRateLimitsForCache", mtime, firstUpdate) 1443 ret0, _ := ret[0].([]*model.RateLimit) 1444 ret1, _ := ret[1].(error) 1445 return ret0, ret1 1446 } 1447 1448 // GetRateLimitsForCache indicates an expected call of GetRateLimitsForCache. 1449 func (mr *MockStoreMockRecorder) GetRateLimitsForCache(mtime, firstUpdate interface{}) *gomock.Call { 1450 mr.mock.ctrl.T.Helper() 1451 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRateLimitsForCache", reflect.TypeOf((*MockStore)(nil).GetRateLimitsForCache), mtime, firstUpdate) 1452 } 1453 1454 // GetRoutingConfigV2WithID mocks base method. 1455 func (m *MockStore) GetRoutingConfigV2WithID(id string) (*model.RouterConfig, error) { 1456 m.ctrl.T.Helper() 1457 ret := m.ctrl.Call(m, "GetRoutingConfigV2WithID", id) 1458 ret0, _ := ret[0].(*model.RouterConfig) 1459 ret1, _ := ret[1].(error) 1460 return ret0, ret1 1461 } 1462 1463 // GetRoutingConfigV2WithID indicates an expected call of GetRoutingConfigV2WithID. 1464 func (mr *MockStoreMockRecorder) GetRoutingConfigV2WithID(id interface{}) *gomock.Call { 1465 mr.mock.ctrl.T.Helper() 1466 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigV2WithID", reflect.TypeOf((*MockStore)(nil).GetRoutingConfigV2WithID), id) 1467 } 1468 1469 // GetRoutingConfigV2WithIDTx mocks base method. 1470 func (m *MockStore) GetRoutingConfigV2WithIDTx(tx store.Tx, id string) (*model.RouterConfig, error) { 1471 m.ctrl.T.Helper() 1472 ret := m.ctrl.Call(m, "GetRoutingConfigV2WithIDTx", tx, id) 1473 ret0, _ := ret[0].(*model.RouterConfig) 1474 ret1, _ := ret[1].(error) 1475 return ret0, ret1 1476 } 1477 1478 // GetRoutingConfigV2WithIDTx indicates an expected call of GetRoutingConfigV2WithIDTx. 1479 func (mr *MockStoreMockRecorder) GetRoutingConfigV2WithIDTx(tx, id interface{}) *gomock.Call { 1480 mr.mock.ctrl.T.Helper() 1481 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigV2WithIDTx", reflect.TypeOf((*MockStore)(nil).GetRoutingConfigV2WithIDTx), tx, id) 1482 } 1483 1484 // GetRoutingConfigWithID mocks base method. 1485 func (m *MockStore) GetRoutingConfigWithID(id string) (*model.RoutingConfig, error) { 1486 m.ctrl.T.Helper() 1487 ret := m.ctrl.Call(m, "GetRoutingConfigWithID", id) 1488 ret0, _ := ret[0].(*model.RoutingConfig) 1489 ret1, _ := ret[1].(error) 1490 return ret0, ret1 1491 } 1492 1493 // GetRoutingConfigWithID indicates an expected call of GetRoutingConfigWithID. 1494 func (mr *MockStoreMockRecorder) GetRoutingConfigWithID(id interface{}) *gomock.Call { 1495 mr.mock.ctrl.T.Helper() 1496 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigWithID", reflect.TypeOf((*MockStore)(nil).GetRoutingConfigWithID), id) 1497 } 1498 1499 // GetRoutingConfigWithService mocks base method. 1500 func (m *MockStore) GetRoutingConfigWithService(name, namespace string) (*model.RoutingConfig, error) { 1501 m.ctrl.T.Helper() 1502 ret := m.ctrl.Call(m, "GetRoutingConfigWithService", name, namespace) 1503 ret0, _ := ret[0].(*model.RoutingConfig) 1504 ret1, _ := ret[1].(error) 1505 return ret0, ret1 1506 } 1507 1508 // GetRoutingConfigWithService indicates an expected call of GetRoutingConfigWithService. 1509 func (mr *MockStoreMockRecorder) GetRoutingConfigWithService(name, namespace interface{}) *gomock.Call { 1510 mr.mock.ctrl.T.Helper() 1511 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigWithService", reflect.TypeOf((*MockStore)(nil).GetRoutingConfigWithService), name, namespace) 1512 } 1513 1514 // GetRoutingConfigs mocks base method. 1515 func (m *MockStore) GetRoutingConfigs(filter map[string]string, offset, limit uint32) (uint32, []*model.ExtendRoutingConfig, error) { 1516 m.ctrl.T.Helper() 1517 ret := m.ctrl.Call(m, "GetRoutingConfigs", filter, offset, limit) 1518 ret0, _ := ret[0].(uint32) 1519 ret1, _ := ret[1].([]*model.ExtendRoutingConfig) 1520 ret2, _ := ret[2].(error) 1521 return ret0, ret1, ret2 1522 } 1523 1524 // GetRoutingConfigs indicates an expected call of GetRoutingConfigs. 1525 func (mr *MockStoreMockRecorder) GetRoutingConfigs(filter, offset, limit interface{}) *gomock.Call { 1526 mr.mock.ctrl.T.Helper() 1527 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigs", reflect.TypeOf((*MockStore)(nil).GetRoutingConfigs), filter, offset, limit) 1528 } 1529 1530 // GetRoutingConfigsForCache mocks base method. 1531 func (m *MockStore) GetRoutingConfigsForCache(mtime time.Time, firstUpdate bool) ([]*model.RoutingConfig, error) { 1532 m.ctrl.T.Helper() 1533 ret := m.ctrl.Call(m, "GetRoutingConfigsForCache", mtime, firstUpdate) 1534 ret0, _ := ret[0].([]*model.RoutingConfig) 1535 ret1, _ := ret[1].(error) 1536 return ret0, ret1 1537 } 1538 1539 // GetRoutingConfigsForCache indicates an expected call of GetRoutingConfigsForCache. 1540 func (mr *MockStoreMockRecorder) GetRoutingConfigsForCache(mtime, firstUpdate interface{}) *gomock.Call { 1541 mr.mock.ctrl.T.Helper() 1542 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigsForCache", reflect.TypeOf((*MockStore)(nil).GetRoutingConfigsForCache), mtime, firstUpdate) 1543 } 1544 1545 // GetRoutingConfigsV2ForCache mocks base method. 1546 func (m *MockStore) GetRoutingConfigsV2ForCache(mtime time.Time, firstUpdate bool) ([]*model.RouterConfig, error) { 1547 m.ctrl.T.Helper() 1548 ret := m.ctrl.Call(m, "GetRoutingConfigsV2ForCache", mtime, firstUpdate) 1549 ret0, _ := ret[0].([]*model.RouterConfig) 1550 ret1, _ := ret[1].(error) 1551 return ret0, ret1 1552 } 1553 1554 // GetRoutingConfigsV2ForCache indicates an expected call of GetRoutingConfigsV2ForCache. 1555 func (mr *MockStoreMockRecorder) GetRoutingConfigsV2ForCache(mtime, firstUpdate interface{}) *gomock.Call { 1556 mr.mock.ctrl.T.Helper() 1557 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigsV2ForCache", reflect.TypeOf((*MockStore)(nil).GetRoutingConfigsV2ForCache), mtime, firstUpdate) 1558 } 1559 1560 // GetService mocks base method. 1561 func (m *MockStore) GetService(name, namespace string) (*model.Service, error) { 1562 m.ctrl.T.Helper() 1563 ret := m.ctrl.Call(m, "GetService", name, namespace) 1564 ret0, _ := ret[0].(*model.Service) 1565 ret1, _ := ret[1].(error) 1566 return ret0, ret1 1567 } 1568 1569 // GetService indicates an expected call of GetService. 1570 func (mr *MockStoreMockRecorder) GetService(name, namespace interface{}) *gomock.Call { 1571 mr.mock.ctrl.T.Helper() 1572 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetService", reflect.TypeOf((*MockStore)(nil).GetService), name, namespace) 1573 } 1574 1575 // GetServiceAliases mocks base method. 1576 func (m *MockStore) GetServiceAliases(filter map[string]string, offset, limit uint32) (uint32, []*model.ServiceAlias, error) { 1577 m.ctrl.T.Helper() 1578 ret := m.ctrl.Call(m, "GetServiceAliases", filter, offset, limit) 1579 ret0, _ := ret[0].(uint32) 1580 ret1, _ := ret[1].([]*model.ServiceAlias) 1581 ret2, _ := ret[2].(error) 1582 return ret0, ret1, ret2 1583 } 1584 1585 // GetServiceAliases indicates an expected call of GetServiceAliases. 1586 func (mr *MockStoreMockRecorder) GetServiceAliases(filter, offset, limit interface{}) *gomock.Call { 1587 mr.mock.ctrl.T.Helper() 1588 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAliases", reflect.TypeOf((*MockStore)(nil).GetServiceAliases), filter, offset, limit) 1589 } 1590 1591 // GetServiceByID mocks base method. 1592 func (m *MockStore) GetServiceByID(id string) (*model.Service, error) { 1593 m.ctrl.T.Helper() 1594 ret := m.ctrl.Call(m, "GetServiceByID", id) 1595 ret0, _ := ret[0].(*model.Service) 1596 ret1, _ := ret[1].(error) 1597 return ret0, ret1 1598 } 1599 1600 // GetServiceByID indicates an expected call of GetServiceByID. 1601 func (mr *MockStoreMockRecorder) GetServiceByID(id interface{}) *gomock.Call { 1602 mr.mock.ctrl.T.Helper() 1603 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByID", reflect.TypeOf((*MockStore)(nil).GetServiceByID), id) 1604 } 1605 1606 // GetServices mocks base method. 1607 func (m *MockStore) GetServices(serviceFilters, serviceMetas map[string]string, instanceFilters *store.InstanceArgs, offset, limit uint32) (uint32, []*model.Service, error) { 1608 m.ctrl.T.Helper() 1609 ret := m.ctrl.Call(m, "GetServices", serviceFilters, serviceMetas, instanceFilters, offset, limit) 1610 ret0, _ := ret[0].(uint32) 1611 ret1, _ := ret[1].([]*model.Service) 1612 ret2, _ := ret[2].(error) 1613 return ret0, ret1, ret2 1614 } 1615 1616 // GetServices indicates an expected call of GetServices. 1617 func (mr *MockStoreMockRecorder) GetServices(serviceFilters, serviceMetas, instanceFilters, offset, limit interface{}) *gomock.Call { 1618 mr.mock.ctrl.T.Helper() 1619 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServices", reflect.TypeOf((*MockStore)(nil).GetServices), serviceFilters, serviceMetas, instanceFilters, offset, limit) 1620 } 1621 1622 // GetServicesBatch mocks base method. 1623 func (m *MockStore) GetServicesBatch(services []*model.Service) ([]*model.Service, error) { 1624 m.ctrl.T.Helper() 1625 ret := m.ctrl.Call(m, "GetServicesBatch", services) 1626 ret0, _ := ret[0].([]*model.Service) 1627 ret1, _ := ret[1].(error) 1628 return ret0, ret1 1629 } 1630 1631 // GetServicesBatch indicates an expected call of GetServicesBatch. 1632 func (mr *MockStoreMockRecorder) GetServicesBatch(services interface{}) *gomock.Call { 1633 mr.mock.ctrl.T.Helper() 1634 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicesBatch", reflect.TypeOf((*MockStore)(nil).GetServicesBatch), services) 1635 } 1636 1637 // GetServicesCount mocks base method. 1638 func (m *MockStore) GetServicesCount() (uint32, error) { 1639 m.ctrl.T.Helper() 1640 ret := m.ctrl.Call(m, "GetServicesCount") 1641 ret0, _ := ret[0].(uint32) 1642 ret1, _ := ret[1].(error) 1643 return ret0, ret1 1644 } 1645 1646 // GetServicesCount indicates an expected call of GetServicesCount. 1647 func (mr *MockStoreMockRecorder) GetServicesCount() *gomock.Call { 1648 mr.mock.ctrl.T.Helper() 1649 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicesCount", reflect.TypeOf((*MockStore)(nil).GetServicesCount)) 1650 } 1651 1652 // GetSourceServiceToken mocks base method. 1653 func (m *MockStore) GetSourceServiceToken(name, namespace string) (*model.Service, error) { 1654 m.ctrl.T.Helper() 1655 ret := m.ctrl.Call(m, "GetSourceServiceToken", name, namespace) 1656 ret0, _ := ret[0].(*model.Service) 1657 ret1, _ := ret[1].(error) 1658 return ret0, ret1 1659 } 1660 1661 // GetSourceServiceToken indicates an expected call of GetSourceServiceToken. 1662 func (mr *MockStoreMockRecorder) GetSourceServiceToken(name, namespace interface{}) *gomock.Call { 1663 mr.mock.ctrl.T.Helper() 1664 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSourceServiceToken", reflect.TypeOf((*MockStore)(nil).GetSourceServiceToken), name, namespace) 1665 } 1666 1667 // GetStrategies mocks base method. 1668 func (m *MockStore) GetStrategies(filters map[string]string, offset, limit uint32) (uint32, []*model.StrategyDetail, error) { 1669 m.ctrl.T.Helper() 1670 ret := m.ctrl.Call(m, "GetStrategies", filters, offset, limit) 1671 ret0, _ := ret[0].(uint32) 1672 ret1, _ := ret[1].([]*model.StrategyDetail) 1673 ret2, _ := ret[2].(error) 1674 return ret0, ret1, ret2 1675 } 1676 1677 // GetStrategies indicates an expected call of GetStrategies. 1678 func (mr *MockStoreMockRecorder) GetStrategies(filters, offset, limit interface{}) *gomock.Call { 1679 mr.mock.ctrl.T.Helper() 1680 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategies", reflect.TypeOf((*MockStore)(nil).GetStrategies), filters, offset, limit) 1681 } 1682 1683 // GetStrategyDetail mocks base method. 1684 func (m *MockStore) GetStrategyDetail(id string) (*model.StrategyDetail, error) { 1685 m.ctrl.T.Helper() 1686 ret := m.ctrl.Call(m, "GetStrategyDetail", id) 1687 ret0, _ := ret[0].(*model.StrategyDetail) 1688 ret1, _ := ret[1].(error) 1689 return ret0, ret1 1690 } 1691 1692 // GetStrategyDetail indicates an expected call of GetStrategyDetail. 1693 func (mr *MockStoreMockRecorder) GetStrategyDetail(id interface{}) *gomock.Call { 1694 mr.mock.ctrl.T.Helper() 1695 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategyDetail", reflect.TypeOf((*MockStore)(nil).GetStrategyDetail), id) 1696 } 1697 1698 // GetStrategyDetailsForCache mocks base method. 1699 func (m *MockStore) GetStrategyDetailsForCache(mtime time.Time, firstUpdate bool) ([]*model.StrategyDetail, error) { 1700 m.ctrl.T.Helper() 1701 ret := m.ctrl.Call(m, "GetStrategyDetailsForCache", mtime, firstUpdate) 1702 ret0, _ := ret[0].([]*model.StrategyDetail) 1703 ret1, _ := ret[1].(error) 1704 return ret0, ret1 1705 } 1706 1707 // GetStrategyDetailsForCache indicates an expected call of GetStrategyDetailsForCache. 1708 func (mr *MockStoreMockRecorder) GetStrategyDetailsForCache(mtime, firstUpdate interface{}) *gomock.Call { 1709 mr.mock.ctrl.T.Helper() 1710 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategyDetailsForCache", reflect.TypeOf((*MockStore)(nil).GetStrategyDetailsForCache), mtime, firstUpdate) 1711 } 1712 1713 // GetStrategyResources mocks base method. 1714 func (m *MockStore) GetStrategyResources(principalId string, principalRole model.PrincipalType) ([]model.StrategyResource, error) { 1715 m.ctrl.T.Helper() 1716 ret := m.ctrl.Call(m, "GetStrategyResources", principalId, principalRole) 1717 ret0, _ := ret[0].([]model.StrategyResource) 1718 ret1, _ := ret[1].(error) 1719 return ret0, ret1 1720 } 1721 1722 // GetStrategyResources indicates an expected call of GetStrategyResources. 1723 func (mr *MockStoreMockRecorder) GetStrategyResources(principalId, principalRole interface{}) *gomock.Call { 1724 mr.mock.ctrl.T.Helper() 1725 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategyResources", reflect.TypeOf((*MockStore)(nil).GetStrategyResources), principalId, principalRole) 1726 } 1727 1728 // GetSubCount mocks base method. 1729 func (m *MockStore) GetSubCount(user *model.User) (uint32, error) { 1730 m.ctrl.T.Helper() 1731 ret := m.ctrl.Call(m, "GetSubCount", user) 1732 ret0, _ := ret[0].(uint32) 1733 ret1, _ := ret[1].(error) 1734 return ret0, ret1 1735 } 1736 1737 // GetSubCount indicates an expected call of GetSubCount. 1738 func (mr *MockStoreMockRecorder) GetSubCount(user interface{}) *gomock.Call { 1739 mr.mock.ctrl.T.Helper() 1740 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubCount", reflect.TypeOf((*MockStore)(nil).GetSubCount), user) 1741 } 1742 1743 // GetSystemServices mocks base method. 1744 func (m *MockStore) GetSystemServices() ([]*model.Service, error) { 1745 m.ctrl.T.Helper() 1746 ret := m.ctrl.Call(m, "GetSystemServices") 1747 ret0, _ := ret[0].([]*model.Service) 1748 ret1, _ := ret[1].(error) 1749 return ret0, ret1 1750 } 1751 1752 // GetSystemServices indicates an expected call of GetSystemServices. 1753 func (mr *MockStoreMockRecorder) GetSystemServices() *gomock.Call { 1754 mr.mock.ctrl.T.Helper() 1755 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSystemServices", reflect.TypeOf((*MockStore)(nil).GetSystemServices)) 1756 } 1757 1758 // GetUnHealthyInstances mocks base method. 1759 func (m *MockStore) GetUnHealthyInstances(timeout time.Duration, limit uint32) ([]string, error) { 1760 m.ctrl.T.Helper() 1761 ret := m.ctrl.Call(m, "GetUnHealthyInstances", timeout, limit) 1762 ret0, _ := ret[0].([]string) 1763 ret1, _ := ret[1].(error) 1764 return ret0, ret1 1765 } 1766 1767 // GetUnHealthyInstances indicates an expected call of GetUnHealthyInstances. 1768 func (mr *MockStoreMockRecorder) GetUnHealthyInstances(timeout, limit interface{}) *gomock.Call { 1769 mr.mock.ctrl.T.Helper() 1770 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnHealthyInstances", reflect.TypeOf((*MockStore)(nil).GetUnHealthyInstances), timeout, limit) 1771 } 1772 1773 // GetUnixSecond mocks base method. 1774 func (m *MockStore) GetUnixSecond(maxWait time.Duration) (int64, error) { 1775 m.ctrl.T.Helper() 1776 ret := m.ctrl.Call(m, "GetUnixSecond", maxWait) 1777 ret0, _ := ret[0].(int64) 1778 ret1, _ := ret[1].(error) 1779 return ret0, ret1 1780 } 1781 1782 // GetUnixSecond indicates an expected call of GetUnixSecond. 1783 func (mr *MockStoreMockRecorder) GetUnixSecond(maxWait interface{}) *gomock.Call { 1784 mr.mock.ctrl.T.Helper() 1785 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnixSecond", reflect.TypeOf((*MockStore)(nil).GetUnixSecond), maxWait) 1786 } 1787 1788 // GetUser mocks base method. 1789 func (m *MockStore) GetUser(id string) (*model.User, error) { 1790 m.ctrl.T.Helper() 1791 ret := m.ctrl.Call(m, "GetUser", id) 1792 ret0, _ := ret[0].(*model.User) 1793 ret1, _ := ret[1].(error) 1794 return ret0, ret1 1795 } 1796 1797 // GetUser indicates an expected call of GetUser. 1798 func (mr *MockStoreMockRecorder) GetUser(id interface{}) *gomock.Call { 1799 mr.mock.ctrl.T.Helper() 1800 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockStore)(nil).GetUser), id) 1801 } 1802 1803 // GetUserByIds mocks base method. 1804 func (m *MockStore) GetUserByIds(ids []string) ([]*model.User, error) { 1805 m.ctrl.T.Helper() 1806 ret := m.ctrl.Call(m, "GetUserByIds", ids) 1807 ret0, _ := ret[0].([]*model.User) 1808 ret1, _ := ret[1].(error) 1809 return ret0, ret1 1810 } 1811 1812 // GetUserByIds indicates an expected call of GetUserByIds. 1813 func (mr *MockStoreMockRecorder) GetUserByIds(ids interface{}) *gomock.Call { 1814 mr.mock.ctrl.T.Helper() 1815 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserByIds", reflect.TypeOf((*MockStore)(nil).GetUserByIds), ids) 1816 } 1817 1818 // GetUserByName mocks base method. 1819 func (m *MockStore) GetUserByName(name, ownerId string) (*model.User, error) { 1820 m.ctrl.T.Helper() 1821 ret := m.ctrl.Call(m, "GetUserByName", name, ownerId) 1822 ret0, _ := ret[0].(*model.User) 1823 ret1, _ := ret[1].(error) 1824 return ret0, ret1 1825 } 1826 1827 // GetUserByName indicates an expected call of GetUserByName. 1828 func (mr *MockStoreMockRecorder) GetUserByName(name, ownerId interface{}) *gomock.Call { 1829 mr.mock.ctrl.T.Helper() 1830 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserByName", reflect.TypeOf((*MockStore)(nil).GetUserByName), name, ownerId) 1831 } 1832 1833 // GetUsers mocks base method. 1834 func (m *MockStore) GetUsers(filters map[string]string, offset, limit uint32) (uint32, []*model.User, error) { 1835 m.ctrl.T.Helper() 1836 ret := m.ctrl.Call(m, "GetUsers", filters, offset, limit) 1837 ret0, _ := ret[0].(uint32) 1838 ret1, _ := ret[1].([]*model.User) 1839 ret2, _ := ret[2].(error) 1840 return ret0, ret1, ret2 1841 } 1842 1843 // GetUsers indicates an expected call of GetUsers. 1844 func (mr *MockStoreMockRecorder) GetUsers(filters, offset, limit interface{}) *gomock.Call { 1845 mr.mock.ctrl.T.Helper() 1846 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsers", reflect.TypeOf((*MockStore)(nil).GetUsers), filters, offset, limit) 1847 } 1848 1849 // GetUsersForCache mocks base method. 1850 func (m *MockStore) GetUsersForCache(mtime time.Time, firstUpdate bool) ([]*model.User, error) { 1851 m.ctrl.T.Helper() 1852 ret := m.ctrl.Call(m, "GetUsersForCache", mtime, firstUpdate) 1853 ret0, _ := ret[0].([]*model.User) 1854 ret1, _ := ret[1].(error) 1855 return ret0, ret1 1856 } 1857 1858 // GetUsersForCache indicates an expected call of GetUsersForCache. 1859 func (mr *MockStoreMockRecorder) GetUsersForCache(mtime, firstUpdate interface{}) *gomock.Call { 1860 mr.mock.ctrl.T.Helper() 1861 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsersForCache", reflect.TypeOf((*MockStore)(nil).GetUsersForCache), mtime, firstUpdate) 1862 } 1863 1864 // HasCircuitBreakerRule mocks base method. 1865 func (m *MockStore) HasCircuitBreakerRule(id string) (bool, error) { 1866 m.ctrl.T.Helper() 1867 ret := m.ctrl.Call(m, "HasCircuitBreakerRule", id) 1868 ret0, _ := ret[0].(bool) 1869 ret1, _ := ret[1].(error) 1870 return ret0, ret1 1871 } 1872 1873 // HasCircuitBreakerRule indicates an expected call of HasCircuitBreakerRule. 1874 func (mr *MockStoreMockRecorder) HasCircuitBreakerRule(id interface{}) *gomock.Call { 1875 mr.mock.ctrl.T.Helper() 1876 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasCircuitBreakerRule", reflect.TypeOf((*MockStore)(nil).HasCircuitBreakerRule), id) 1877 } 1878 1879 // HasCircuitBreakerRuleByName mocks base method. 1880 func (m *MockStore) HasCircuitBreakerRuleByName(name, namespace string) (bool, error) { 1881 m.ctrl.T.Helper() 1882 ret := m.ctrl.Call(m, "HasCircuitBreakerRuleByName", name, namespace) 1883 ret0, _ := ret[0].(bool) 1884 ret1, _ := ret[1].(error) 1885 return ret0, ret1 1886 } 1887 1888 // HasCircuitBreakerRuleByName indicates an expected call of HasCircuitBreakerRuleByName. 1889 func (mr *MockStoreMockRecorder) HasCircuitBreakerRuleByName(name, namespace interface{}) *gomock.Call { 1890 mr.mock.ctrl.T.Helper() 1891 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasCircuitBreakerRuleByName", reflect.TypeOf((*MockStore)(nil).HasCircuitBreakerRuleByName), name, namespace) 1892 } 1893 1894 // HasCircuitBreakerRuleByNameExcludeId mocks base method. 1895 func (m *MockStore) HasCircuitBreakerRuleByNameExcludeId(name, namespace, id string) (bool, error) { 1896 m.ctrl.T.Helper() 1897 ret := m.ctrl.Call(m, "HasCircuitBreakerRuleByNameExcludeId", name, namespace, id) 1898 ret0, _ := ret[0].(bool) 1899 ret1, _ := ret[1].(error) 1900 return ret0, ret1 1901 } 1902 1903 // HasCircuitBreakerRuleByNameExcludeId indicates an expected call of HasCircuitBreakerRuleByNameExcludeId. 1904 func (mr *MockStoreMockRecorder) HasCircuitBreakerRuleByNameExcludeId(name, namespace, id interface{}) *gomock.Call { 1905 mr.mock.ctrl.T.Helper() 1906 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasCircuitBreakerRuleByNameExcludeId", reflect.TypeOf((*MockStore)(nil).HasCircuitBreakerRuleByNameExcludeId), name, namespace, id) 1907 } 1908 1909 // HasFaultDetectRule mocks base method. 1910 func (m *MockStore) HasFaultDetectRule(id string) (bool, error) { 1911 m.ctrl.T.Helper() 1912 ret := m.ctrl.Call(m, "HasFaultDetectRule", id) 1913 ret0, _ := ret[0].(bool) 1914 ret1, _ := ret[1].(error) 1915 return ret0, ret1 1916 } 1917 1918 // HasFaultDetectRule indicates an expected call of HasFaultDetectRule. 1919 func (mr *MockStoreMockRecorder) HasFaultDetectRule(id interface{}) *gomock.Call { 1920 mr.mock.ctrl.T.Helper() 1921 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasFaultDetectRule", reflect.TypeOf((*MockStore)(nil).HasFaultDetectRule), id) 1922 } 1923 1924 // HasFaultDetectRuleByName mocks base method. 1925 func (m *MockStore) HasFaultDetectRuleByName(name, namespace string) (bool, error) { 1926 m.ctrl.T.Helper() 1927 ret := m.ctrl.Call(m, "HasFaultDetectRuleByName", name, namespace) 1928 ret0, _ := ret[0].(bool) 1929 ret1, _ := ret[1].(error) 1930 return ret0, ret1 1931 } 1932 1933 // HasFaultDetectRuleByName indicates an expected call of HasFaultDetectRuleByName. 1934 func (mr *MockStoreMockRecorder) HasFaultDetectRuleByName(name, namespace interface{}) *gomock.Call { 1935 mr.mock.ctrl.T.Helper() 1936 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasFaultDetectRuleByName", reflect.TypeOf((*MockStore)(nil).HasFaultDetectRuleByName), name, namespace) 1937 } 1938 1939 // HasFaultDetectRuleByNameExcludeId mocks base method. 1940 func (m *MockStore) HasFaultDetectRuleByNameExcludeId(name, namespace, id string) (bool, error) { 1941 m.ctrl.T.Helper() 1942 ret := m.ctrl.Call(m, "HasFaultDetectRuleByNameExcludeId", name, namespace, id) 1943 ret0, _ := ret[0].(bool) 1944 ret1, _ := ret[1].(error) 1945 return ret0, ret1 1946 } 1947 1948 // HasFaultDetectRuleByNameExcludeId indicates an expected call of HasFaultDetectRuleByNameExcludeId. 1949 func (mr *MockStoreMockRecorder) HasFaultDetectRuleByNameExcludeId(name, namespace, id interface{}) *gomock.Call { 1950 mr.mock.ctrl.T.Helper() 1951 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasFaultDetectRuleByNameExcludeId", reflect.TypeOf((*MockStore)(nil).HasFaultDetectRuleByNameExcludeId), name, namespace, id) 1952 } 1953 1954 // Initialize mocks base method. 1955 func (m *MockStore) Initialize(c *store.Config) error { 1956 m.ctrl.T.Helper() 1957 ret := m.ctrl.Call(m, "Initialize", c) 1958 ret0, _ := ret[0].(error) 1959 return ret0 1960 } 1961 1962 // Initialize indicates an expected call of Initialize. 1963 func (mr *MockStoreMockRecorder) Initialize(c interface{}) *gomock.Call { 1964 mr.mock.ctrl.T.Helper() 1965 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockStore)(nil).Initialize), c) 1966 } 1967 1968 // IsLeader mocks base method. 1969 func (m *MockStore) IsLeader(key string) bool { 1970 m.ctrl.T.Helper() 1971 ret := m.ctrl.Call(m, "IsLeader", key) 1972 ret0, _ := ret[0].(bool) 1973 return ret0 1974 } 1975 1976 // IsLeader indicates an expected call of IsLeader. 1977 func (mr *MockStoreMockRecorder) IsLeader(key interface{}) *gomock.Call { 1978 mr.mock.ctrl.T.Helper() 1979 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsLeader", reflect.TypeOf((*MockStore)(nil).IsLeader), key) 1980 } 1981 1982 // ListLeaderElections mocks base method. 1983 func (m *MockStore) ListLeaderElections() ([]*model.LeaderElection, error) { 1984 m.ctrl.T.Helper() 1985 ret := m.ctrl.Call(m, "ListLeaderElections") 1986 ret0, _ := ret[0].([]*model.LeaderElection) 1987 ret1, _ := ret[1].(error) 1988 return ret0, ret1 1989 } 1990 1991 // ListLeaderElections indicates an expected call of ListLeaderElections. 1992 func (mr *MockStoreMockRecorder) ListLeaderElections() *gomock.Call { 1993 mr.mock.ctrl.T.Helper() 1994 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLeaderElections", reflect.TypeOf((*MockStore)(nil).ListLeaderElections)) 1995 } 1996 1997 // LockConfigFile mocks base method. 1998 func (m *MockStore) LockConfigFile(tx store.Tx, file *model.ConfigFileKey) (*model.ConfigFile, error) { 1999 m.ctrl.T.Helper() 2000 ret := m.ctrl.Call(m, "LockConfigFile", tx, file) 2001 ret0, _ := ret[0].(*model.ConfigFile) 2002 ret1, _ := ret[1].(error) 2003 return ret0, ret1 2004 } 2005 2006 // LockConfigFile indicates an expected call of LockConfigFile. 2007 func (mr *MockStoreMockRecorder) LockConfigFile(tx, file interface{}) *gomock.Call { 2008 mr.mock.ctrl.T.Helper() 2009 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockConfigFile", reflect.TypeOf((*MockStore)(nil).LockConfigFile), tx, file) 2010 } 2011 2012 // LooseAddStrategyResources mocks base method. 2013 func (m *MockStore) LooseAddStrategyResources(resources []model.StrategyResource) error { 2014 m.ctrl.T.Helper() 2015 ret := m.ctrl.Call(m, "LooseAddStrategyResources", resources) 2016 ret0, _ := ret[0].(error) 2017 return ret0 2018 } 2019 2020 // LooseAddStrategyResources indicates an expected call of LooseAddStrategyResources. 2021 func (mr *MockStoreMockRecorder) LooseAddStrategyResources(resources interface{}) *gomock.Call { 2022 mr.mock.ctrl.T.Helper() 2023 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LooseAddStrategyResources", reflect.TypeOf((*MockStore)(nil).LooseAddStrategyResources), resources) 2024 } 2025 2026 // Name mocks base method. 2027 func (m *MockStore) Name() string { 2028 m.ctrl.T.Helper() 2029 ret := m.ctrl.Call(m, "Name") 2030 ret0, _ := ret[0].(string) 2031 return ret0 2032 } 2033 2034 // Name indicates an expected call of Name. 2035 func (mr *MockStoreMockRecorder) Name() *gomock.Call { 2036 mr.mock.ctrl.T.Helper() 2037 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockStore)(nil).Name)) 2038 } 2039 2040 // QueryAllConfigFileTemplates mocks base method. 2041 func (m *MockStore) QueryAllConfigFileTemplates() ([]*model.ConfigFileTemplate, error) { 2042 m.ctrl.T.Helper() 2043 ret := m.ctrl.Call(m, "QueryAllConfigFileTemplates") 2044 ret0, _ := ret[0].([]*model.ConfigFileTemplate) 2045 ret1, _ := ret[1].(error) 2046 return ret0, ret1 2047 } 2048 2049 // QueryAllConfigFileTemplates indicates an expected call of QueryAllConfigFileTemplates. 2050 func (mr *MockStoreMockRecorder) QueryAllConfigFileTemplates() *gomock.Call { 2051 mr.mock.ctrl.T.Helper() 2052 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryAllConfigFileTemplates", reflect.TypeOf((*MockStore)(nil).QueryAllConfigFileTemplates)) 2053 } 2054 2055 // QueryConfigFileReleaseHistories mocks base method. 2056 func (m *MockStore) QueryConfigFileReleaseHistories(filter map[string]string, offset, limit uint32) (uint32, []*model.ConfigFileReleaseHistory, error) { 2057 m.ctrl.T.Helper() 2058 ret := m.ctrl.Call(m, "QueryConfigFileReleaseHistories", filter, offset, limit) 2059 ret0, _ := ret[0].(uint32) 2060 ret1, _ := ret[1].([]*model.ConfigFileReleaseHistory) 2061 ret2, _ := ret[2].(error) 2062 return ret0, ret1, ret2 2063 } 2064 2065 // QueryConfigFileReleaseHistories indicates an expected call of QueryConfigFileReleaseHistories. 2066 func (mr *MockStoreMockRecorder) QueryConfigFileReleaseHistories(filter, offset, limit interface{}) *gomock.Call { 2067 mr.mock.ctrl.T.Helper() 2068 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryConfigFileReleaseHistories", reflect.TypeOf((*MockStore)(nil).QueryConfigFileReleaseHistories), filter, offset, limit) 2069 } 2070 2071 // QueryConfigFiles mocks base method. 2072 func (m *MockStore) QueryConfigFiles(filter map[string]string, offset, limit uint32) (uint32, []*model.ConfigFile, error) { 2073 m.ctrl.T.Helper() 2074 ret := m.ctrl.Call(m, "QueryConfigFiles", filter, offset, limit) 2075 ret0, _ := ret[0].(uint32) 2076 ret1, _ := ret[1].([]*model.ConfigFile) 2077 ret2, _ := ret[2].(error) 2078 return ret0, ret1, ret2 2079 } 2080 2081 // QueryConfigFiles indicates an expected call of QueryConfigFiles. 2082 func (mr *MockStoreMockRecorder) QueryConfigFiles(filter, offset, limit interface{}) *gomock.Call { 2083 mr.mock.ctrl.T.Helper() 2084 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryConfigFiles", reflect.TypeOf((*MockStore)(nil).QueryConfigFiles), filter, offset, limit) 2085 } 2086 2087 // ReleaseLeaderElection mocks base method. 2088 func (m *MockStore) ReleaseLeaderElection(key string) error { 2089 m.ctrl.T.Helper() 2090 ret := m.ctrl.Call(m, "ReleaseLeaderElection", key) 2091 ret0, _ := ret[0].(error) 2092 return ret0 2093 } 2094 2095 // ReleaseLeaderElection indicates an expected call of ReleaseLeaderElection. 2096 func (mr *MockStoreMockRecorder) ReleaseLeaderElection(key interface{}) *gomock.Call { 2097 mr.mock.ctrl.T.Helper() 2098 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseLeaderElection", reflect.TypeOf((*MockStore)(nil).ReleaseLeaderElection), key) 2099 } 2100 2101 // RemoveStrategyResources mocks base method. 2102 func (m *MockStore) RemoveStrategyResources(resources []model.StrategyResource) error { 2103 m.ctrl.T.Helper() 2104 ret := m.ctrl.Call(m, "RemoveStrategyResources", resources) 2105 ret0, _ := ret[0].(error) 2106 return ret0 2107 } 2108 2109 // RemoveStrategyResources indicates an expected call of RemoveStrategyResources. 2110 func (mr *MockStoreMockRecorder) RemoveStrategyResources(resources interface{}) *gomock.Call { 2111 mr.mock.ctrl.T.Helper() 2112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveStrategyResources", reflect.TypeOf((*MockStore)(nil).RemoveStrategyResources), resources) 2113 } 2114 2115 // SetInstanceHealthStatus mocks base method. 2116 func (m *MockStore) SetInstanceHealthStatus(instanceID string, flag int, revision string) error { 2117 m.ctrl.T.Helper() 2118 ret := m.ctrl.Call(m, "SetInstanceHealthStatus", instanceID, flag, revision) 2119 ret0, _ := ret[0].(error) 2120 return ret0 2121 } 2122 2123 // SetInstanceHealthStatus indicates an expected call of SetInstanceHealthStatus. 2124 func (mr *MockStoreMockRecorder) SetInstanceHealthStatus(instanceID, flag, revision interface{}) *gomock.Call { 2125 mr.mock.ctrl.T.Helper() 2126 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceHealthStatus", reflect.TypeOf((*MockStore)(nil).SetInstanceHealthStatus), instanceID, flag, revision) 2127 } 2128 2129 // SetL5Extend mocks base method. 2130 func (m *MockStore) SetL5Extend(serviceID string, meta map[string]interface{}) (map[string]interface{}, error) { 2131 m.ctrl.T.Helper() 2132 ret := m.ctrl.Call(m, "SetL5Extend", serviceID, meta) 2133 ret0, _ := ret[0].(map[string]interface{}) 2134 ret1, _ := ret[1].(error) 2135 return ret0, ret1 2136 } 2137 2138 // SetL5Extend indicates an expected call of SetL5Extend. 2139 func (mr *MockStoreMockRecorder) SetL5Extend(serviceID, meta interface{}) *gomock.Call { 2140 mr.mock.ctrl.T.Helper() 2141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetL5Extend", reflect.TypeOf((*MockStore)(nil).SetL5Extend), serviceID, meta) 2142 } 2143 2144 // StartLeaderElection mocks base method. 2145 func (m *MockStore) StartLeaderElection(key string) error { 2146 m.ctrl.T.Helper() 2147 ret := m.ctrl.Call(m, "StartLeaderElection", key) 2148 ret0, _ := ret[0].(error) 2149 return ret0 2150 } 2151 2152 // StartLeaderElection indicates an expected call of StartLeaderElection. 2153 func (mr *MockStoreMockRecorder) StartLeaderElection(key interface{}) *gomock.Call { 2154 mr.mock.ctrl.T.Helper() 2155 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartLeaderElection", reflect.TypeOf((*MockStore)(nil).StartLeaderElection), key) 2156 } 2157 2158 // StartReadTx mocks base method. 2159 func (m *MockStore) StartReadTx() (store.Tx, error) { 2160 m.ctrl.T.Helper() 2161 ret := m.ctrl.Call(m, "StartReadTx") 2162 ret0, _ := ret[0].(store.Tx) 2163 ret1, _ := ret[1].(error) 2164 return ret0, ret1 2165 } 2166 2167 // StartReadTx indicates an expected call of StartReadTx. 2168 func (mr *MockStoreMockRecorder) StartReadTx() *gomock.Call { 2169 mr.mock.ctrl.T.Helper() 2170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartReadTx", reflect.TypeOf((*MockStore)(nil).StartReadTx)) 2171 } 2172 2173 // StartTx mocks base method. 2174 func (m *MockStore) StartTx() (store.Tx, error) { 2175 m.ctrl.T.Helper() 2176 ret := m.ctrl.Call(m, "StartTx") 2177 ret0, _ := ret[0].(store.Tx) 2178 ret1, _ := ret[1].(error) 2179 return ret0, ret1 2180 } 2181 2182 // StartTx indicates an expected call of StartTx. 2183 func (mr *MockStoreMockRecorder) StartTx() *gomock.Call { 2184 mr.mock.ctrl.T.Helper() 2185 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTx", reflect.TypeOf((*MockStore)(nil).StartTx)) 2186 } 2187 2188 // UpdateCircuitBreakerRule mocks base method. 2189 func (m *MockStore) UpdateCircuitBreakerRule(cbRule *model.CircuitBreakerRule) error { 2190 m.ctrl.T.Helper() 2191 ret := m.ctrl.Call(m, "UpdateCircuitBreakerRule", cbRule) 2192 ret0, _ := ret[0].(error) 2193 return ret0 2194 } 2195 2196 // UpdateCircuitBreakerRule indicates an expected call of UpdateCircuitBreakerRule. 2197 func (mr *MockStoreMockRecorder) UpdateCircuitBreakerRule(cbRule interface{}) *gomock.Call { 2198 mr.mock.ctrl.T.Helper() 2199 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCircuitBreakerRule", reflect.TypeOf((*MockStore)(nil).UpdateCircuitBreakerRule), cbRule) 2200 } 2201 2202 // UpdateConfigFileGroup mocks base method. 2203 func (m *MockStore) UpdateConfigFileGroup(fileGroup *model.ConfigFileGroup) error { 2204 m.ctrl.T.Helper() 2205 ret := m.ctrl.Call(m, "UpdateConfigFileGroup", fileGroup) 2206 ret0, _ := ret[0].(error) 2207 return ret0 2208 } 2209 2210 // UpdateConfigFileGroup indicates an expected call of UpdateConfigFileGroup. 2211 func (mr *MockStoreMockRecorder) UpdateConfigFileGroup(fileGroup interface{}) *gomock.Call { 2212 mr.mock.ctrl.T.Helper() 2213 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConfigFileGroup", reflect.TypeOf((*MockStore)(nil).UpdateConfigFileGroup), fileGroup) 2214 } 2215 2216 // UpdateConfigFileTx mocks base method. 2217 func (m *MockStore) UpdateConfigFileTx(tx store.Tx, file *model.ConfigFile) error { 2218 m.ctrl.T.Helper() 2219 ret := m.ctrl.Call(m, "UpdateConfigFileTx", tx, file) 2220 ret0, _ := ret[0].(error) 2221 return ret0 2222 } 2223 2224 // UpdateConfigFileTx indicates an expected call of UpdateConfigFileTx. 2225 func (mr *MockStoreMockRecorder) UpdateConfigFileTx(tx, file interface{}) *gomock.Call { 2226 mr.mock.ctrl.T.Helper() 2227 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConfigFileTx", reflect.TypeOf((*MockStore)(nil).UpdateConfigFileTx), tx, file) 2228 } 2229 2230 // UpdateFaultDetectRule mocks base method. 2231 func (m *MockStore) UpdateFaultDetectRule(conf *model.FaultDetectRule) error { 2232 m.ctrl.T.Helper() 2233 ret := m.ctrl.Call(m, "UpdateFaultDetectRule", conf) 2234 ret0, _ := ret[0].(error) 2235 return ret0 2236 } 2237 2238 // UpdateFaultDetectRule indicates an expected call of UpdateFaultDetectRule. 2239 func (mr *MockStoreMockRecorder) UpdateFaultDetectRule(conf interface{}) *gomock.Call { 2240 mr.mock.ctrl.T.Helper() 2241 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFaultDetectRule", reflect.TypeOf((*MockStore)(nil).UpdateFaultDetectRule), conf) 2242 } 2243 2244 // UpdateGroup mocks base method. 2245 func (m *MockStore) UpdateGroup(group *model.ModifyUserGroup) error { 2246 m.ctrl.T.Helper() 2247 ret := m.ctrl.Call(m, "UpdateGroup", group) 2248 ret0, _ := ret[0].(error) 2249 return ret0 2250 } 2251 2252 // UpdateGroup indicates an expected call of UpdateGroup. 2253 func (mr *MockStoreMockRecorder) UpdateGroup(group interface{}) *gomock.Call { 2254 mr.mock.ctrl.T.Helper() 2255 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateGroup", reflect.TypeOf((*MockStore)(nil).UpdateGroup), group) 2256 } 2257 2258 // UpdateInstance mocks base method. 2259 func (m *MockStore) UpdateInstance(instance *model.Instance) error { 2260 m.ctrl.T.Helper() 2261 ret := m.ctrl.Call(m, "UpdateInstance", instance) 2262 ret0, _ := ret[0].(error) 2263 return ret0 2264 } 2265 2266 // UpdateInstance indicates an expected call of UpdateInstance. 2267 func (mr *MockStoreMockRecorder) UpdateInstance(instance interface{}) *gomock.Call { 2268 mr.mock.ctrl.T.Helper() 2269 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateInstance", reflect.TypeOf((*MockStore)(nil).UpdateInstance), instance) 2270 } 2271 2272 // UpdateNamespace mocks base method. 2273 func (m *MockStore) UpdateNamespace(namespace *model.Namespace) error { 2274 m.ctrl.T.Helper() 2275 ret := m.ctrl.Call(m, "UpdateNamespace", namespace) 2276 ret0, _ := ret[0].(error) 2277 return ret0 2278 } 2279 2280 // UpdateNamespace indicates an expected call of UpdateNamespace. 2281 func (mr *MockStoreMockRecorder) UpdateNamespace(namespace interface{}) *gomock.Call { 2282 mr.mock.ctrl.T.Helper() 2283 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespace", reflect.TypeOf((*MockStore)(nil).UpdateNamespace), namespace) 2284 } 2285 2286 // UpdateNamespaceToken mocks base method. 2287 func (m *MockStore) UpdateNamespaceToken(name, token string) error { 2288 m.ctrl.T.Helper() 2289 ret := m.ctrl.Call(m, "UpdateNamespaceToken", name, token) 2290 ret0, _ := ret[0].(error) 2291 return ret0 2292 } 2293 2294 // UpdateNamespaceToken indicates an expected call of UpdateNamespaceToken. 2295 func (mr *MockStoreMockRecorder) UpdateNamespaceToken(name, token interface{}) *gomock.Call { 2296 mr.mock.ctrl.T.Helper() 2297 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespaceToken", reflect.TypeOf((*MockStore)(nil).UpdateNamespaceToken), name, token) 2298 } 2299 2300 // UpdateRateLimit mocks base method. 2301 func (m *MockStore) UpdateRateLimit(limiting *model.RateLimit) error { 2302 m.ctrl.T.Helper() 2303 ret := m.ctrl.Call(m, "UpdateRateLimit", limiting) 2304 ret0, _ := ret[0].(error) 2305 return ret0 2306 } 2307 2308 // UpdateRateLimit indicates an expected call of UpdateRateLimit. 2309 func (mr *MockStoreMockRecorder) UpdateRateLimit(limiting interface{}) *gomock.Call { 2310 mr.mock.ctrl.T.Helper() 2311 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRateLimit", reflect.TypeOf((*MockStore)(nil).UpdateRateLimit), limiting) 2312 } 2313 2314 // UpdateRoutingConfig mocks base method. 2315 func (m *MockStore) UpdateRoutingConfig(conf *model.RoutingConfig) error { 2316 m.ctrl.T.Helper() 2317 ret := m.ctrl.Call(m, "UpdateRoutingConfig", conf) 2318 ret0, _ := ret[0].(error) 2319 return ret0 2320 } 2321 2322 // UpdateRoutingConfig indicates an expected call of UpdateRoutingConfig. 2323 func (mr *MockStoreMockRecorder) UpdateRoutingConfig(conf interface{}) *gomock.Call { 2324 mr.mock.ctrl.T.Helper() 2325 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoutingConfig", reflect.TypeOf((*MockStore)(nil).UpdateRoutingConfig), conf) 2326 } 2327 2328 // UpdateRoutingConfigV2 mocks base method. 2329 func (m *MockStore) UpdateRoutingConfigV2(conf *model.RouterConfig) error { 2330 m.ctrl.T.Helper() 2331 ret := m.ctrl.Call(m, "UpdateRoutingConfigV2", conf) 2332 ret0, _ := ret[0].(error) 2333 return ret0 2334 } 2335 2336 // UpdateRoutingConfigV2 indicates an expected call of UpdateRoutingConfigV2. 2337 func (mr *MockStoreMockRecorder) UpdateRoutingConfigV2(conf interface{}) *gomock.Call { 2338 mr.mock.ctrl.T.Helper() 2339 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoutingConfigV2", reflect.TypeOf((*MockStore)(nil).UpdateRoutingConfigV2), conf) 2340 } 2341 2342 // UpdateRoutingConfigV2Tx mocks base method. 2343 func (m *MockStore) UpdateRoutingConfigV2Tx(tx store.Tx, conf *model.RouterConfig) error { 2344 m.ctrl.T.Helper() 2345 ret := m.ctrl.Call(m, "UpdateRoutingConfigV2Tx", tx, conf) 2346 ret0, _ := ret[0].(error) 2347 return ret0 2348 } 2349 2350 // UpdateRoutingConfigV2Tx indicates an expected call of UpdateRoutingConfigV2Tx. 2351 func (mr *MockStoreMockRecorder) UpdateRoutingConfigV2Tx(tx, conf interface{}) *gomock.Call { 2352 mr.mock.ctrl.T.Helper() 2353 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoutingConfigV2Tx", reflect.TypeOf((*MockStore)(nil).UpdateRoutingConfigV2Tx), tx, conf) 2354 } 2355 2356 // UpdateService mocks base method. 2357 func (m *MockStore) UpdateService(service *model.Service, needUpdateOwner bool) error { 2358 m.ctrl.T.Helper() 2359 ret := m.ctrl.Call(m, "UpdateService", service, needUpdateOwner) 2360 ret0, _ := ret[0].(error) 2361 return ret0 2362 } 2363 2364 // UpdateService indicates an expected call of UpdateService. 2365 func (mr *MockStoreMockRecorder) UpdateService(service, needUpdateOwner interface{}) *gomock.Call { 2366 mr.mock.ctrl.T.Helper() 2367 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateService", reflect.TypeOf((*MockStore)(nil).UpdateService), service, needUpdateOwner) 2368 } 2369 2370 // UpdateServiceAlias mocks base method. 2371 func (m *MockStore) UpdateServiceAlias(alias *model.Service, needUpdateOwner bool) error { 2372 m.ctrl.T.Helper() 2373 ret := m.ctrl.Call(m, "UpdateServiceAlias", alias, needUpdateOwner) 2374 ret0, _ := ret[0].(error) 2375 return ret0 2376 } 2377 2378 // UpdateServiceAlias indicates an expected call of UpdateServiceAlias. 2379 func (mr *MockStoreMockRecorder) UpdateServiceAlias(alias, needUpdateOwner interface{}) *gomock.Call { 2380 mr.mock.ctrl.T.Helper() 2381 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceAlias", reflect.TypeOf((*MockStore)(nil).UpdateServiceAlias), alias, needUpdateOwner) 2382 } 2383 2384 // UpdateServiceToken mocks base method. 2385 func (m *MockStore) UpdateServiceToken(serviceID, token, revision string) error { 2386 m.ctrl.T.Helper() 2387 ret := m.ctrl.Call(m, "UpdateServiceToken", serviceID, token, revision) 2388 ret0, _ := ret[0].(error) 2389 return ret0 2390 } 2391 2392 // UpdateServiceToken indicates an expected call of UpdateServiceToken. 2393 func (mr *MockStoreMockRecorder) UpdateServiceToken(serviceID, token, revision interface{}) *gomock.Call { 2394 mr.mock.ctrl.T.Helper() 2395 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateServiceToken", reflect.TypeOf((*MockStore)(nil).UpdateServiceToken), serviceID, token, revision) 2396 } 2397 2398 // UpdateStrategy mocks base method. 2399 func (m *MockStore) UpdateStrategy(strategy *model.ModifyStrategyDetail) error { 2400 m.ctrl.T.Helper() 2401 ret := m.ctrl.Call(m, "UpdateStrategy", strategy) 2402 ret0, _ := ret[0].(error) 2403 return ret0 2404 } 2405 2406 // UpdateStrategy indicates an expected call of UpdateStrategy. 2407 func (mr *MockStoreMockRecorder) UpdateStrategy(strategy interface{}) *gomock.Call { 2408 mr.mock.ctrl.T.Helper() 2409 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStrategy", reflect.TypeOf((*MockStore)(nil).UpdateStrategy), strategy) 2410 } 2411 2412 // UpdateUser mocks base method. 2413 func (m *MockStore) UpdateUser(user *model.User) error { 2414 m.ctrl.T.Helper() 2415 ret := m.ctrl.Call(m, "UpdateUser", user) 2416 ret0, _ := ret[0].(error) 2417 return ret0 2418 } 2419 2420 // UpdateUser indicates an expected call of UpdateUser. 2421 func (mr *MockStoreMockRecorder) UpdateUser(user interface{}) *gomock.Call { 2422 mr.mock.ctrl.T.Helper() 2423 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockStore)(nil).UpdateUser), user) 2424 } 2425 2426 // MockNamespaceStore is a mock of NamespaceStore interface. 2427 type MockNamespaceStore struct { 2428 ctrl *gomock.Controller 2429 recorder *MockNamespaceStoreMockRecorder 2430 } 2431 2432 // MockNamespaceStoreMockRecorder is the mock recorder for MockNamespaceStore. 2433 type MockNamespaceStoreMockRecorder struct { 2434 mock *MockNamespaceStore 2435 } 2436 2437 // NewMockNamespaceStore creates a new mock instance. 2438 func NewMockNamespaceStore(ctrl *gomock.Controller) *MockNamespaceStore { 2439 mock := &MockNamespaceStore{ctrl: ctrl} 2440 mock.recorder = &MockNamespaceStoreMockRecorder{mock} 2441 return mock 2442 } 2443 2444 // EXPECT returns an object that allows the caller to indicate expected use. 2445 func (m *MockNamespaceStore) EXPECT() *MockNamespaceStoreMockRecorder { 2446 return m.recorder 2447 } 2448 2449 // AddNamespace mocks base method. 2450 func (m *MockNamespaceStore) AddNamespace(namespace *model.Namespace) error { 2451 m.ctrl.T.Helper() 2452 ret := m.ctrl.Call(m, "AddNamespace", namespace) 2453 ret0, _ := ret[0].(error) 2454 return ret0 2455 } 2456 2457 // AddNamespace indicates an expected call of AddNamespace. 2458 func (mr *MockNamespaceStoreMockRecorder) AddNamespace(namespace interface{}) *gomock.Call { 2459 mr.mock.ctrl.T.Helper() 2460 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddNamespace", reflect.TypeOf((*MockNamespaceStore)(nil).AddNamespace), namespace) 2461 } 2462 2463 // GetMoreNamespaces mocks base method. 2464 func (m *MockNamespaceStore) GetMoreNamespaces(mtime time.Time) ([]*model.Namespace, error) { 2465 m.ctrl.T.Helper() 2466 ret := m.ctrl.Call(m, "GetMoreNamespaces", mtime) 2467 ret0, _ := ret[0].([]*model.Namespace) 2468 ret1, _ := ret[1].(error) 2469 return ret0, ret1 2470 } 2471 2472 // GetMoreNamespaces indicates an expected call of GetMoreNamespaces. 2473 func (mr *MockNamespaceStoreMockRecorder) GetMoreNamespaces(mtime interface{}) *gomock.Call { 2474 mr.mock.ctrl.T.Helper() 2475 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMoreNamespaces", reflect.TypeOf((*MockNamespaceStore)(nil).GetMoreNamespaces), mtime) 2476 } 2477 2478 // GetNamespace mocks base method. 2479 func (m *MockNamespaceStore) GetNamespace(name string) (*model.Namespace, error) { 2480 m.ctrl.T.Helper() 2481 ret := m.ctrl.Call(m, "GetNamespace", name) 2482 ret0, _ := ret[0].(*model.Namespace) 2483 ret1, _ := ret[1].(error) 2484 return ret0, ret1 2485 } 2486 2487 // GetNamespace indicates an expected call of GetNamespace. 2488 func (mr *MockNamespaceStoreMockRecorder) GetNamespace(name interface{}) *gomock.Call { 2489 mr.mock.ctrl.T.Helper() 2490 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockNamespaceStore)(nil).GetNamespace), name) 2491 } 2492 2493 // GetNamespaces mocks base method. 2494 func (m *MockNamespaceStore) GetNamespaces(filter map[string][]string, offset, limit int) ([]*model.Namespace, uint32, error) { 2495 m.ctrl.T.Helper() 2496 ret := m.ctrl.Call(m, "GetNamespaces", filter, offset, limit) 2497 ret0, _ := ret[0].([]*model.Namespace) 2498 ret1, _ := ret[1].(uint32) 2499 ret2, _ := ret[2].(error) 2500 return ret0, ret1, ret2 2501 } 2502 2503 // GetNamespaces indicates an expected call of GetNamespaces. 2504 func (mr *MockNamespaceStoreMockRecorder) GetNamespaces(filter, offset, limit interface{}) *gomock.Call { 2505 mr.mock.ctrl.T.Helper() 2506 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaces", reflect.TypeOf((*MockNamespaceStore)(nil).GetNamespaces), filter, offset, limit) 2507 } 2508 2509 // UpdateNamespace mocks base method. 2510 func (m *MockNamespaceStore) UpdateNamespace(namespace *model.Namespace) error { 2511 m.ctrl.T.Helper() 2512 ret := m.ctrl.Call(m, "UpdateNamespace", namespace) 2513 ret0, _ := ret[0].(error) 2514 return ret0 2515 } 2516 2517 // UpdateNamespace indicates an expected call of UpdateNamespace. 2518 func (mr *MockNamespaceStoreMockRecorder) UpdateNamespace(namespace interface{}) *gomock.Call { 2519 mr.mock.ctrl.T.Helper() 2520 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespace", reflect.TypeOf((*MockNamespaceStore)(nil).UpdateNamespace), namespace) 2521 } 2522 2523 // UpdateNamespaceToken mocks base method. 2524 func (m *MockNamespaceStore) UpdateNamespaceToken(name, token string) error { 2525 m.ctrl.T.Helper() 2526 ret := m.ctrl.Call(m, "UpdateNamespaceToken", name, token) 2527 ret0, _ := ret[0].(error) 2528 return ret0 2529 } 2530 2531 // UpdateNamespaceToken indicates an expected call of UpdateNamespaceToken. 2532 func (mr *MockNamespaceStoreMockRecorder) UpdateNamespaceToken(name, token interface{}) *gomock.Call { 2533 mr.mock.ctrl.T.Helper() 2534 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespaceToken", reflect.TypeOf((*MockNamespaceStore)(nil).UpdateNamespaceToken), name, token) 2535 } 2536 2537 // MockTransaction is a mock of Transaction interface. 2538 type MockTransaction struct { 2539 ctrl *gomock.Controller 2540 recorder *MockTransactionMockRecorder 2541 } 2542 2543 // MockTransactionMockRecorder is the mock recorder for MockTransaction. 2544 type MockTransactionMockRecorder struct { 2545 mock *MockTransaction 2546 } 2547 2548 // NewMockTransaction creates a new mock instance. 2549 func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction { 2550 mock := &MockTransaction{ctrl: ctrl} 2551 mock.recorder = &MockTransactionMockRecorder{mock} 2552 return mock 2553 } 2554 2555 // EXPECT returns an object that allows the caller to indicate expected use. 2556 func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder { 2557 return m.recorder 2558 } 2559 2560 // Commit mocks base method. 2561 func (m *MockTransaction) Commit() error { 2562 m.ctrl.T.Helper() 2563 ret := m.ctrl.Call(m, "Commit") 2564 ret0, _ := ret[0].(error) 2565 return ret0 2566 } 2567 2568 // Commit indicates an expected call of Commit. 2569 func (mr *MockTransactionMockRecorder) Commit() *gomock.Call { 2570 mr.mock.ctrl.T.Helper() 2571 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockTransaction)(nil).Commit)) 2572 } 2573 2574 // DeleteNamespace mocks base method. 2575 func (m *MockTransaction) DeleteNamespace(name string) error { 2576 m.ctrl.T.Helper() 2577 ret := m.ctrl.Call(m, "DeleteNamespace", name) 2578 ret0, _ := ret[0].(error) 2579 return ret0 2580 } 2581 2582 // DeleteNamespace indicates an expected call of DeleteNamespace. 2583 func (mr *MockTransactionMockRecorder) DeleteNamespace(name interface{}) *gomock.Call { 2584 mr.mock.ctrl.T.Helper() 2585 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockTransaction)(nil).DeleteNamespace), name) 2586 } 2587 2588 // LockBootstrap mocks base method. 2589 func (m *MockTransaction) LockBootstrap(key, server string) error { 2590 m.ctrl.T.Helper() 2591 ret := m.ctrl.Call(m, "LockBootstrap", key, server) 2592 ret0, _ := ret[0].(error) 2593 return ret0 2594 } 2595 2596 // LockBootstrap indicates an expected call of LockBootstrap. 2597 func (mr *MockTransactionMockRecorder) LockBootstrap(key, server interface{}) *gomock.Call { 2598 mr.mock.ctrl.T.Helper() 2599 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockBootstrap", reflect.TypeOf((*MockTransaction)(nil).LockBootstrap), key, server) 2600 } 2601 2602 // LockNamespace mocks base method. 2603 func (m *MockTransaction) LockNamespace(name string) (*model.Namespace, error) { 2604 m.ctrl.T.Helper() 2605 ret := m.ctrl.Call(m, "LockNamespace", name) 2606 ret0, _ := ret[0].(*model.Namespace) 2607 ret1, _ := ret[1].(error) 2608 return ret0, ret1 2609 } 2610 2611 // LockNamespace indicates an expected call of LockNamespace. 2612 func (mr *MockTransactionMockRecorder) LockNamespace(name interface{}) *gomock.Call { 2613 mr.mock.ctrl.T.Helper() 2614 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockNamespace", reflect.TypeOf((*MockTransaction)(nil).LockNamespace), name) 2615 } 2616 2617 // LockService mocks base method. 2618 func (m *MockTransaction) LockService(name, namespace string) (*model.Service, error) { 2619 m.ctrl.T.Helper() 2620 ret := m.ctrl.Call(m, "LockService", name, namespace) 2621 ret0, _ := ret[0].(*model.Service) 2622 ret1, _ := ret[1].(error) 2623 return ret0, ret1 2624 } 2625 2626 // LockService indicates an expected call of LockService. 2627 func (mr *MockTransactionMockRecorder) LockService(name, namespace interface{}) *gomock.Call { 2628 mr.mock.ctrl.T.Helper() 2629 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockService", reflect.TypeOf((*MockTransaction)(nil).LockService), name, namespace) 2630 } 2631 2632 // RLockService mocks base method. 2633 func (m *MockTransaction) RLockService(name, namespace string) (*model.Service, error) { 2634 m.ctrl.T.Helper() 2635 ret := m.ctrl.Call(m, "RLockService", name, namespace) 2636 ret0, _ := ret[0].(*model.Service) 2637 ret1, _ := ret[1].(error) 2638 return ret0, ret1 2639 } 2640 2641 // RLockService indicates an expected call of RLockService. 2642 func (mr *MockTransactionMockRecorder) RLockService(name, namespace interface{}) *gomock.Call { 2643 mr.mock.ctrl.T.Helper() 2644 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RLockService", reflect.TypeOf((*MockTransaction)(nil).RLockService), name, namespace) 2645 } 2646 2647 // MockTx is a mock of Tx interface. 2648 type MockTx struct { 2649 ctrl *gomock.Controller 2650 recorder *MockTxMockRecorder 2651 } 2652 2653 // MockTxMockRecorder is the mock recorder for MockTx. 2654 type MockTxMockRecorder struct { 2655 mock *MockTx 2656 } 2657 2658 // NewMockTx creates a new mock instance. 2659 func NewMockTx(ctrl *gomock.Controller) *MockTx { 2660 mock := &MockTx{ctrl: ctrl} 2661 mock.recorder = &MockTxMockRecorder{mock} 2662 return mock 2663 } 2664 2665 // EXPECT returns an object that allows the caller to indicate expected use. 2666 func (m *MockTx) EXPECT() *MockTxMockRecorder { 2667 return m.recorder 2668 } 2669 2670 // Commit mocks base method. 2671 func (m *MockTx) Commit() error { 2672 m.ctrl.T.Helper() 2673 ret := m.ctrl.Call(m, "Commit") 2674 ret0, _ := ret[0].(error) 2675 return ret0 2676 } 2677 2678 // Commit indicates an expected call of Commit. 2679 func (mr *MockTxMockRecorder) Commit() *gomock.Call { 2680 mr.mock.ctrl.T.Helper() 2681 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockTx)(nil).Commit)) 2682 } 2683 2684 // CreateReadView mocks base method. 2685 func (m *MockTx) CreateReadView() error { 2686 m.ctrl.T.Helper() 2687 ret := m.ctrl.Call(m, "CreateReadView") 2688 ret0, _ := ret[0].(error) 2689 return ret0 2690 } 2691 2692 // CreateReadView indicates an expected call of CreateReadView. 2693 func (mr *MockTxMockRecorder) CreateReadView() *gomock.Call { 2694 mr.mock.ctrl.T.Helper() 2695 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReadView", reflect.TypeOf((*MockTx)(nil).CreateReadView)) 2696 } 2697 2698 // GetDelegateTx mocks base method. 2699 func (m *MockTx) GetDelegateTx() interface{} { 2700 m.ctrl.T.Helper() 2701 ret := m.ctrl.Call(m, "GetDelegateTx") 2702 ret0, _ := ret[0].(interface{}) 2703 return ret0 2704 } 2705 2706 // GetDelegateTx indicates an expected call of GetDelegateTx. 2707 func (mr *MockTxMockRecorder) GetDelegateTx() *gomock.Call { 2708 mr.mock.ctrl.T.Helper() 2709 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDelegateTx", reflect.TypeOf((*MockTx)(nil).GetDelegateTx)) 2710 } 2711 2712 // Rollback mocks base method. 2713 func (m *MockTx) Rollback() error { 2714 m.ctrl.T.Helper() 2715 ret := m.ctrl.Call(m, "Rollback") 2716 ret0, _ := ret[0].(error) 2717 return ret0 2718 } 2719 2720 // Rollback indicates an expected call of Rollback. 2721 func (mr *MockTxMockRecorder) Rollback() *gomock.Call { 2722 mr.mock.ctrl.T.Helper() 2723 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockTx)(nil).Rollback)) 2724 } 2725 2726 // MockToolStore is a mock of ToolStore interface. 2727 type MockToolStore struct { 2728 ctrl *gomock.Controller 2729 recorder *MockToolStoreMockRecorder 2730 } 2731 2732 // MockToolStoreMockRecorder is the mock recorder for MockToolStore. 2733 type MockToolStoreMockRecorder struct { 2734 mock *MockToolStore 2735 } 2736 2737 // NewMockToolStore creates a new mock instance. 2738 func NewMockToolStore(ctrl *gomock.Controller) *MockToolStore { 2739 mock := &MockToolStore{ctrl: ctrl} 2740 mock.recorder = &MockToolStoreMockRecorder{mock} 2741 return mock 2742 } 2743 2744 // EXPECT returns an object that allows the caller to indicate expected use. 2745 func (m *MockToolStore) EXPECT() *MockToolStoreMockRecorder { 2746 return m.recorder 2747 } 2748 2749 // GetUnixSecond mocks base method. 2750 func (m *MockToolStore) GetUnixSecond(maxWait time.Duration) (int64, error) { 2751 m.ctrl.T.Helper() 2752 ret := m.ctrl.Call(m, "GetUnixSecond", maxWait) 2753 ret0, _ := ret[0].(int64) 2754 ret1, _ := ret[1].(error) 2755 return ret0, ret1 2756 } 2757 2758 // GetUnixSecond indicates an expected call of GetUnixSecond. 2759 func (mr *MockToolStoreMockRecorder) GetUnixSecond(maxWait interface{}) *gomock.Call { 2760 mr.mock.ctrl.T.Helper() 2761 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUnixSecond", reflect.TypeOf((*MockToolStore)(nil).GetUnixSecond), maxWait) 2762 }