github.com/m3db/m3@v1.5.0/src/dbnode/runtime/runtime_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/dbnode/runtime/types.go 3 4 // Copyright (c) 2021 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package runtime is a generated GoMock package. 25 package runtime 26 27 import ( 28 "reflect" 29 "time" 30 31 "github.com/m3db/m3/src/dbnode/ratelimit" 32 "github.com/m3db/m3/src/dbnode/topology" 33 "github.com/m3db/m3/src/x/resource" 34 35 "github.com/golang/mock/gomock" 36 ) 37 38 // MockOptions is a mock of Options interface. 39 type MockOptions struct { 40 ctrl *gomock.Controller 41 recorder *MockOptionsMockRecorder 42 } 43 44 // MockOptionsMockRecorder is the mock recorder for MockOptions. 45 type MockOptionsMockRecorder struct { 46 mock *MockOptions 47 } 48 49 // NewMockOptions creates a new mock instance. 50 func NewMockOptions(ctrl *gomock.Controller) *MockOptions { 51 mock := &MockOptions{ctrl: ctrl} 52 mock.recorder = &MockOptionsMockRecorder{mock} 53 return mock 54 } 55 56 // EXPECT returns an object that allows the caller to indicate expected use. 57 func (m *MockOptions) EXPECT() *MockOptionsMockRecorder { 58 return m.recorder 59 } 60 61 // ClientBootstrapConsistencyLevel mocks base method. 62 func (m *MockOptions) ClientBootstrapConsistencyLevel() topology.ReadConsistencyLevel { 63 m.ctrl.T.Helper() 64 ret := m.ctrl.Call(m, "ClientBootstrapConsistencyLevel") 65 ret0, _ := ret[0].(topology.ReadConsistencyLevel) 66 return ret0 67 } 68 69 // ClientBootstrapConsistencyLevel indicates an expected call of ClientBootstrapConsistencyLevel. 70 func (mr *MockOptionsMockRecorder) ClientBootstrapConsistencyLevel() *gomock.Call { 71 mr.mock.ctrl.T.Helper() 72 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientBootstrapConsistencyLevel", reflect.TypeOf((*MockOptions)(nil).ClientBootstrapConsistencyLevel)) 73 } 74 75 // ClientReadConsistencyLevel mocks base method. 76 func (m *MockOptions) ClientReadConsistencyLevel() topology.ReadConsistencyLevel { 77 m.ctrl.T.Helper() 78 ret := m.ctrl.Call(m, "ClientReadConsistencyLevel") 79 ret0, _ := ret[0].(topology.ReadConsistencyLevel) 80 return ret0 81 } 82 83 // ClientReadConsistencyLevel indicates an expected call of ClientReadConsistencyLevel. 84 func (mr *MockOptionsMockRecorder) ClientReadConsistencyLevel() *gomock.Call { 85 mr.mock.ctrl.T.Helper() 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientReadConsistencyLevel", reflect.TypeOf((*MockOptions)(nil).ClientReadConsistencyLevel)) 87 } 88 89 // ClientWriteConsistencyLevel mocks base method. 90 func (m *MockOptions) ClientWriteConsistencyLevel() topology.ConsistencyLevel { 91 m.ctrl.T.Helper() 92 ret := m.ctrl.Call(m, "ClientWriteConsistencyLevel") 93 ret0, _ := ret[0].(topology.ConsistencyLevel) 94 return ret0 95 } 96 97 // ClientWriteConsistencyLevel indicates an expected call of ClientWriteConsistencyLevel. 98 func (mr *MockOptionsMockRecorder) ClientWriteConsistencyLevel() *gomock.Call { 99 mr.mock.ctrl.T.Helper() 100 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientWriteConsistencyLevel", reflect.TypeOf((*MockOptions)(nil).ClientWriteConsistencyLevel)) 101 } 102 103 // EncodersPerBlockLimit mocks base method. 104 func (m *MockOptions) EncodersPerBlockLimit() int { 105 m.ctrl.T.Helper() 106 ret := m.ctrl.Call(m, "EncodersPerBlockLimit") 107 ret0, _ := ret[0].(int) 108 return ret0 109 } 110 111 // EncodersPerBlockLimit indicates an expected call of EncodersPerBlockLimit. 112 func (mr *MockOptionsMockRecorder) EncodersPerBlockLimit() *gomock.Call { 113 mr.mock.ctrl.T.Helper() 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncodersPerBlockLimit", reflect.TypeOf((*MockOptions)(nil).EncodersPerBlockLimit)) 115 } 116 117 // MaxWiredBlocks mocks base method. 118 func (m *MockOptions) MaxWiredBlocks() uint { 119 m.ctrl.T.Helper() 120 ret := m.ctrl.Call(m, "MaxWiredBlocks") 121 ret0, _ := ret[0].(uint) 122 return ret0 123 } 124 125 // MaxWiredBlocks indicates an expected call of MaxWiredBlocks. 126 func (mr *MockOptionsMockRecorder) MaxWiredBlocks() *gomock.Call { 127 mr.mock.ctrl.T.Helper() 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxWiredBlocks", reflect.TypeOf((*MockOptions)(nil).MaxWiredBlocks)) 129 } 130 131 // PersistRateLimitOptions mocks base method. 132 func (m *MockOptions) PersistRateLimitOptions() ratelimit.Options { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "PersistRateLimitOptions") 135 ret0, _ := ret[0].(ratelimit.Options) 136 return ret0 137 } 138 139 // PersistRateLimitOptions indicates an expected call of PersistRateLimitOptions. 140 func (mr *MockOptionsMockRecorder) PersistRateLimitOptions() *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistRateLimitOptions", reflect.TypeOf((*MockOptions)(nil).PersistRateLimitOptions)) 143 } 144 145 // SetClientBootstrapConsistencyLevel mocks base method. 146 func (m *MockOptions) SetClientBootstrapConsistencyLevel(value topology.ReadConsistencyLevel) Options { 147 m.ctrl.T.Helper() 148 ret := m.ctrl.Call(m, "SetClientBootstrapConsistencyLevel", value) 149 ret0, _ := ret[0].(Options) 150 return ret0 151 } 152 153 // SetClientBootstrapConsistencyLevel indicates an expected call of SetClientBootstrapConsistencyLevel. 154 func (mr *MockOptionsMockRecorder) SetClientBootstrapConsistencyLevel(value interface{}) *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClientBootstrapConsistencyLevel", reflect.TypeOf((*MockOptions)(nil).SetClientBootstrapConsistencyLevel), value) 157 } 158 159 // SetClientReadConsistencyLevel mocks base method. 160 func (m *MockOptions) SetClientReadConsistencyLevel(value topology.ReadConsistencyLevel) Options { 161 m.ctrl.T.Helper() 162 ret := m.ctrl.Call(m, "SetClientReadConsistencyLevel", value) 163 ret0, _ := ret[0].(Options) 164 return ret0 165 } 166 167 // SetClientReadConsistencyLevel indicates an expected call of SetClientReadConsistencyLevel. 168 func (mr *MockOptionsMockRecorder) SetClientReadConsistencyLevel(value interface{}) *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClientReadConsistencyLevel", reflect.TypeOf((*MockOptions)(nil).SetClientReadConsistencyLevel), value) 171 } 172 173 // SetClientWriteConsistencyLevel mocks base method. 174 func (m *MockOptions) SetClientWriteConsistencyLevel(value topology.ConsistencyLevel) Options { 175 m.ctrl.T.Helper() 176 ret := m.ctrl.Call(m, "SetClientWriteConsistencyLevel", value) 177 ret0, _ := ret[0].(Options) 178 return ret0 179 } 180 181 // SetClientWriteConsistencyLevel indicates an expected call of SetClientWriteConsistencyLevel. 182 func (mr *MockOptionsMockRecorder) SetClientWriteConsistencyLevel(value interface{}) *gomock.Call { 183 mr.mock.ctrl.T.Helper() 184 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClientWriteConsistencyLevel", reflect.TypeOf((*MockOptions)(nil).SetClientWriteConsistencyLevel), value) 185 } 186 187 // SetEncodersPerBlockLimit mocks base method. 188 func (m *MockOptions) SetEncodersPerBlockLimit(value int) Options { 189 m.ctrl.T.Helper() 190 ret := m.ctrl.Call(m, "SetEncodersPerBlockLimit", value) 191 ret0, _ := ret[0].(Options) 192 return ret0 193 } 194 195 // SetEncodersPerBlockLimit indicates an expected call of SetEncodersPerBlockLimit. 196 func (mr *MockOptionsMockRecorder) SetEncodersPerBlockLimit(value interface{}) *gomock.Call { 197 mr.mock.ctrl.T.Helper() 198 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEncodersPerBlockLimit", reflect.TypeOf((*MockOptions)(nil).SetEncodersPerBlockLimit), value) 199 } 200 201 // SetMaxWiredBlocks mocks base method. 202 func (m *MockOptions) SetMaxWiredBlocks(value uint) Options { 203 m.ctrl.T.Helper() 204 ret := m.ctrl.Call(m, "SetMaxWiredBlocks", value) 205 ret0, _ := ret[0].(Options) 206 return ret0 207 } 208 209 // SetMaxWiredBlocks indicates an expected call of SetMaxWiredBlocks. 210 func (mr *MockOptionsMockRecorder) SetMaxWiredBlocks(value interface{}) *gomock.Call { 211 mr.mock.ctrl.T.Helper() 212 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxWiredBlocks", reflect.TypeOf((*MockOptions)(nil).SetMaxWiredBlocks), value) 213 } 214 215 // SetPersistRateLimitOptions mocks base method. 216 func (m *MockOptions) SetPersistRateLimitOptions(value ratelimit.Options) Options { 217 m.ctrl.T.Helper() 218 ret := m.ctrl.Call(m, "SetPersistRateLimitOptions", value) 219 ret0, _ := ret[0].(Options) 220 return ret0 221 } 222 223 // SetPersistRateLimitOptions indicates an expected call of SetPersistRateLimitOptions. 224 func (mr *MockOptionsMockRecorder) SetPersistRateLimitOptions(value interface{}) *gomock.Call { 225 mr.mock.ctrl.T.Helper() 226 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPersistRateLimitOptions", reflect.TypeOf((*MockOptions)(nil).SetPersistRateLimitOptions), value) 227 } 228 229 // SetTickCancellationCheckInterval mocks base method. 230 func (m *MockOptions) SetTickCancellationCheckInterval(value time.Duration) Options { 231 m.ctrl.T.Helper() 232 ret := m.ctrl.Call(m, "SetTickCancellationCheckInterval", value) 233 ret0, _ := ret[0].(Options) 234 return ret0 235 } 236 237 // SetTickCancellationCheckInterval indicates an expected call of SetTickCancellationCheckInterval. 238 func (mr *MockOptionsMockRecorder) SetTickCancellationCheckInterval(value interface{}) *gomock.Call { 239 mr.mock.ctrl.T.Helper() 240 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTickCancellationCheckInterval", reflect.TypeOf((*MockOptions)(nil).SetTickCancellationCheckInterval), value) 241 } 242 243 // SetTickMinimumInterval mocks base method. 244 func (m *MockOptions) SetTickMinimumInterval(value time.Duration) Options { 245 m.ctrl.T.Helper() 246 ret := m.ctrl.Call(m, "SetTickMinimumInterval", value) 247 ret0, _ := ret[0].(Options) 248 return ret0 249 } 250 251 // SetTickMinimumInterval indicates an expected call of SetTickMinimumInterval. 252 func (mr *MockOptionsMockRecorder) SetTickMinimumInterval(value interface{}) *gomock.Call { 253 mr.mock.ctrl.T.Helper() 254 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTickMinimumInterval", reflect.TypeOf((*MockOptions)(nil).SetTickMinimumInterval), value) 255 } 256 257 // SetTickPerSeriesSleepDuration mocks base method. 258 func (m *MockOptions) SetTickPerSeriesSleepDuration(value time.Duration) Options { 259 m.ctrl.T.Helper() 260 ret := m.ctrl.Call(m, "SetTickPerSeriesSleepDuration", value) 261 ret0, _ := ret[0].(Options) 262 return ret0 263 } 264 265 // SetTickPerSeriesSleepDuration indicates an expected call of SetTickPerSeriesSleepDuration. 266 func (mr *MockOptionsMockRecorder) SetTickPerSeriesSleepDuration(value interface{}) *gomock.Call { 267 mr.mock.ctrl.T.Helper() 268 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTickPerSeriesSleepDuration", reflect.TypeOf((*MockOptions)(nil).SetTickPerSeriesSleepDuration), value) 269 } 270 271 // SetTickSeriesBatchSize mocks base method. 272 func (m *MockOptions) SetTickSeriesBatchSize(value int) Options { 273 m.ctrl.T.Helper() 274 ret := m.ctrl.Call(m, "SetTickSeriesBatchSize", value) 275 ret0, _ := ret[0].(Options) 276 return ret0 277 } 278 279 // SetTickSeriesBatchSize indicates an expected call of SetTickSeriesBatchSize. 280 func (mr *MockOptionsMockRecorder) SetTickSeriesBatchSize(value interface{}) *gomock.Call { 281 mr.mock.ctrl.T.Helper() 282 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTickSeriesBatchSize", reflect.TypeOf((*MockOptions)(nil).SetTickSeriesBatchSize), value) 283 } 284 285 // SetWriteNewSeriesAsync mocks base method. 286 func (m *MockOptions) SetWriteNewSeriesAsync(value bool) Options { 287 m.ctrl.T.Helper() 288 ret := m.ctrl.Call(m, "SetWriteNewSeriesAsync", value) 289 ret0, _ := ret[0].(Options) 290 return ret0 291 } 292 293 // SetWriteNewSeriesAsync indicates an expected call of SetWriteNewSeriesAsync. 294 func (mr *MockOptionsMockRecorder) SetWriteNewSeriesAsync(value interface{}) *gomock.Call { 295 mr.mock.ctrl.T.Helper() 296 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesAsync", reflect.TypeOf((*MockOptions)(nil).SetWriteNewSeriesAsync), value) 297 } 298 299 // SetWriteNewSeriesBackoffDuration mocks base method. 300 func (m *MockOptions) SetWriteNewSeriesBackoffDuration(value time.Duration) Options { 301 m.ctrl.T.Helper() 302 ret := m.ctrl.Call(m, "SetWriteNewSeriesBackoffDuration", value) 303 ret0, _ := ret[0].(Options) 304 return ret0 305 } 306 307 // SetWriteNewSeriesBackoffDuration indicates an expected call of SetWriteNewSeriesBackoffDuration. 308 func (mr *MockOptionsMockRecorder) SetWriteNewSeriesBackoffDuration(value interface{}) *gomock.Call { 309 mr.mock.ctrl.T.Helper() 310 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesBackoffDuration", reflect.TypeOf((*MockOptions)(nil).SetWriteNewSeriesBackoffDuration), value) 311 } 312 313 // SetWriteNewSeriesLimitPerShardPerSecond mocks base method. 314 func (m *MockOptions) SetWriteNewSeriesLimitPerShardPerSecond(value int) Options { 315 m.ctrl.T.Helper() 316 ret := m.ctrl.Call(m, "SetWriteNewSeriesLimitPerShardPerSecond", value) 317 ret0, _ := ret[0].(Options) 318 return ret0 319 } 320 321 // SetWriteNewSeriesLimitPerShardPerSecond indicates an expected call of SetWriteNewSeriesLimitPerShardPerSecond. 322 func (mr *MockOptionsMockRecorder) SetWriteNewSeriesLimitPerShardPerSecond(value interface{}) *gomock.Call { 323 mr.mock.ctrl.T.Helper() 324 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteNewSeriesLimitPerShardPerSecond", reflect.TypeOf((*MockOptions)(nil).SetWriteNewSeriesLimitPerShardPerSecond), value) 325 } 326 327 // TickCancellationCheckInterval mocks base method. 328 func (m *MockOptions) TickCancellationCheckInterval() time.Duration { 329 m.ctrl.T.Helper() 330 ret := m.ctrl.Call(m, "TickCancellationCheckInterval") 331 ret0, _ := ret[0].(time.Duration) 332 return ret0 333 } 334 335 // TickCancellationCheckInterval indicates an expected call of TickCancellationCheckInterval. 336 func (mr *MockOptionsMockRecorder) TickCancellationCheckInterval() *gomock.Call { 337 mr.mock.ctrl.T.Helper() 338 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TickCancellationCheckInterval", reflect.TypeOf((*MockOptions)(nil).TickCancellationCheckInterval)) 339 } 340 341 // TickMinimumInterval mocks base method. 342 func (m *MockOptions) TickMinimumInterval() time.Duration { 343 m.ctrl.T.Helper() 344 ret := m.ctrl.Call(m, "TickMinimumInterval") 345 ret0, _ := ret[0].(time.Duration) 346 return ret0 347 } 348 349 // TickMinimumInterval indicates an expected call of TickMinimumInterval. 350 func (mr *MockOptionsMockRecorder) TickMinimumInterval() *gomock.Call { 351 mr.mock.ctrl.T.Helper() 352 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TickMinimumInterval", reflect.TypeOf((*MockOptions)(nil).TickMinimumInterval)) 353 } 354 355 // TickPerSeriesSleepDuration mocks base method. 356 func (m *MockOptions) TickPerSeriesSleepDuration() time.Duration { 357 m.ctrl.T.Helper() 358 ret := m.ctrl.Call(m, "TickPerSeriesSleepDuration") 359 ret0, _ := ret[0].(time.Duration) 360 return ret0 361 } 362 363 // TickPerSeriesSleepDuration indicates an expected call of TickPerSeriesSleepDuration. 364 func (mr *MockOptionsMockRecorder) TickPerSeriesSleepDuration() *gomock.Call { 365 mr.mock.ctrl.T.Helper() 366 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TickPerSeriesSleepDuration", reflect.TypeOf((*MockOptions)(nil).TickPerSeriesSleepDuration)) 367 } 368 369 // TickSeriesBatchSize mocks base method. 370 func (m *MockOptions) TickSeriesBatchSize() int { 371 m.ctrl.T.Helper() 372 ret := m.ctrl.Call(m, "TickSeriesBatchSize") 373 ret0, _ := ret[0].(int) 374 return ret0 375 } 376 377 // TickSeriesBatchSize indicates an expected call of TickSeriesBatchSize. 378 func (mr *MockOptionsMockRecorder) TickSeriesBatchSize() *gomock.Call { 379 mr.mock.ctrl.T.Helper() 380 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TickSeriesBatchSize", reflect.TypeOf((*MockOptions)(nil).TickSeriesBatchSize)) 381 } 382 383 // Validate mocks base method. 384 func (m *MockOptions) Validate() error { 385 m.ctrl.T.Helper() 386 ret := m.ctrl.Call(m, "Validate") 387 ret0, _ := ret[0].(error) 388 return ret0 389 } 390 391 // Validate indicates an expected call of Validate. 392 func (mr *MockOptionsMockRecorder) Validate() *gomock.Call { 393 mr.mock.ctrl.T.Helper() 394 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate)) 395 } 396 397 // WriteNewSeriesAsync mocks base method. 398 func (m *MockOptions) WriteNewSeriesAsync() bool { 399 m.ctrl.T.Helper() 400 ret := m.ctrl.Call(m, "WriteNewSeriesAsync") 401 ret0, _ := ret[0].(bool) 402 return ret0 403 } 404 405 // WriteNewSeriesAsync indicates an expected call of WriteNewSeriesAsync. 406 func (mr *MockOptionsMockRecorder) WriteNewSeriesAsync() *gomock.Call { 407 mr.mock.ctrl.T.Helper() 408 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteNewSeriesAsync", reflect.TypeOf((*MockOptions)(nil).WriteNewSeriesAsync)) 409 } 410 411 // WriteNewSeriesBackoffDuration mocks base method. 412 func (m *MockOptions) WriteNewSeriesBackoffDuration() time.Duration { 413 m.ctrl.T.Helper() 414 ret := m.ctrl.Call(m, "WriteNewSeriesBackoffDuration") 415 ret0, _ := ret[0].(time.Duration) 416 return ret0 417 } 418 419 // WriteNewSeriesBackoffDuration indicates an expected call of WriteNewSeriesBackoffDuration. 420 func (mr *MockOptionsMockRecorder) WriteNewSeriesBackoffDuration() *gomock.Call { 421 mr.mock.ctrl.T.Helper() 422 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteNewSeriesBackoffDuration", reflect.TypeOf((*MockOptions)(nil).WriteNewSeriesBackoffDuration)) 423 } 424 425 // WriteNewSeriesLimitPerShardPerSecond mocks base method. 426 func (m *MockOptions) WriteNewSeriesLimitPerShardPerSecond() int { 427 m.ctrl.T.Helper() 428 ret := m.ctrl.Call(m, "WriteNewSeriesLimitPerShardPerSecond") 429 ret0, _ := ret[0].(int) 430 return ret0 431 } 432 433 // WriteNewSeriesLimitPerShardPerSecond indicates an expected call of WriteNewSeriesLimitPerShardPerSecond. 434 func (mr *MockOptionsMockRecorder) WriteNewSeriesLimitPerShardPerSecond() *gomock.Call { 435 mr.mock.ctrl.T.Helper() 436 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteNewSeriesLimitPerShardPerSecond", reflect.TypeOf((*MockOptions)(nil).WriteNewSeriesLimitPerShardPerSecond)) 437 } 438 439 // MockOptionsManager is a mock of OptionsManager interface. 440 type MockOptionsManager struct { 441 ctrl *gomock.Controller 442 recorder *MockOptionsManagerMockRecorder 443 } 444 445 // MockOptionsManagerMockRecorder is the mock recorder for MockOptionsManager. 446 type MockOptionsManagerMockRecorder struct { 447 mock *MockOptionsManager 448 } 449 450 // NewMockOptionsManager creates a new mock instance. 451 func NewMockOptionsManager(ctrl *gomock.Controller) *MockOptionsManager { 452 mock := &MockOptionsManager{ctrl: ctrl} 453 mock.recorder = &MockOptionsManagerMockRecorder{mock} 454 return mock 455 } 456 457 // EXPECT returns an object that allows the caller to indicate expected use. 458 func (m *MockOptionsManager) EXPECT() *MockOptionsManagerMockRecorder { 459 return m.recorder 460 } 461 462 // Close mocks base method. 463 func (m *MockOptionsManager) Close() { 464 m.ctrl.T.Helper() 465 m.ctrl.Call(m, "Close") 466 } 467 468 // Close indicates an expected call of Close. 469 func (mr *MockOptionsManagerMockRecorder) Close() *gomock.Call { 470 mr.mock.ctrl.T.Helper() 471 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockOptionsManager)(nil).Close)) 472 } 473 474 // Get mocks base method. 475 func (m *MockOptionsManager) Get() Options { 476 m.ctrl.T.Helper() 477 ret := m.ctrl.Call(m, "Get") 478 ret0, _ := ret[0].(Options) 479 return ret0 480 } 481 482 // Get indicates an expected call of Get. 483 func (mr *MockOptionsManagerMockRecorder) Get() *gomock.Call { 484 mr.mock.ctrl.T.Helper() 485 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockOptionsManager)(nil).Get)) 486 } 487 488 // RegisterListener mocks base method. 489 func (m *MockOptionsManager) RegisterListener(l OptionsListener) resource.SimpleCloser { 490 m.ctrl.T.Helper() 491 ret := m.ctrl.Call(m, "RegisterListener", l) 492 ret0, _ := ret[0].(resource.SimpleCloser) 493 return ret0 494 } 495 496 // RegisterListener indicates an expected call of RegisterListener. 497 func (mr *MockOptionsManagerMockRecorder) RegisterListener(l interface{}) *gomock.Call { 498 mr.mock.ctrl.T.Helper() 499 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterListener", reflect.TypeOf((*MockOptionsManager)(nil).RegisterListener), l) 500 } 501 502 // Update mocks base method. 503 func (m *MockOptionsManager) Update(value Options) error { 504 m.ctrl.T.Helper() 505 ret := m.ctrl.Call(m, "Update", value) 506 ret0, _ := ret[0].(error) 507 return ret0 508 } 509 510 // Update indicates an expected call of Update. 511 func (mr *MockOptionsManagerMockRecorder) Update(value interface{}) *gomock.Call { 512 mr.mock.ctrl.T.Helper() 513 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockOptionsManager)(nil).Update), value) 514 } 515 516 // MockOptionsListener is a mock of OptionsListener interface. 517 type MockOptionsListener struct { 518 ctrl *gomock.Controller 519 recorder *MockOptionsListenerMockRecorder 520 } 521 522 // MockOptionsListenerMockRecorder is the mock recorder for MockOptionsListener. 523 type MockOptionsListenerMockRecorder struct { 524 mock *MockOptionsListener 525 } 526 527 // NewMockOptionsListener creates a new mock instance. 528 func NewMockOptionsListener(ctrl *gomock.Controller) *MockOptionsListener { 529 mock := &MockOptionsListener{ctrl: ctrl} 530 mock.recorder = &MockOptionsListenerMockRecorder{mock} 531 return mock 532 } 533 534 // EXPECT returns an object that allows the caller to indicate expected use. 535 func (m *MockOptionsListener) EXPECT() *MockOptionsListenerMockRecorder { 536 return m.recorder 537 } 538 539 // SetRuntimeOptions mocks base method. 540 func (m *MockOptionsListener) SetRuntimeOptions(value Options) { 541 m.ctrl.T.Helper() 542 m.ctrl.Call(m, "SetRuntimeOptions", value) 543 } 544 545 // SetRuntimeOptions indicates an expected call of SetRuntimeOptions. 546 func (mr *MockOptionsListenerMockRecorder) SetRuntimeOptions(value interface{}) *gomock.Call { 547 mr.mock.ctrl.T.Helper() 548 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRuntimeOptions", reflect.TypeOf((*MockOptionsListener)(nil).SetRuntimeOptions), value) 549 }