github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/storage/bootstrap/bootstrap_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ../../storage/bootstrap/types.go 3 4 // Copyright (c) 2022 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 bootstrap is a generated GoMock package. 25 package bootstrap 26 27 import ( 28 "reflect" 29 30 "github.com/m3db/m3/src/dbnode/namespace" 31 "github.com/m3db/m3/src/dbnode/persist/fs" 32 "github.com/m3db/m3/src/dbnode/storage/block" 33 "github.com/m3db/m3/src/dbnode/storage/bootstrap/result" 34 "github.com/m3db/m3/src/dbnode/storage/series" 35 "github.com/m3db/m3/src/dbnode/topology" 36 "github.com/m3db/m3/src/x/context" 37 "github.com/m3db/m3/src/x/ident" 38 "github.com/m3db/m3/src/x/instrument" 39 "github.com/m3db/m3/src/x/time" 40 41 "github.com/golang/mock/gomock" 42 ) 43 44 // MockProcessProvider is a mock of ProcessProvider interface. 45 type MockProcessProvider struct { 46 ctrl *gomock.Controller 47 recorder *MockProcessProviderMockRecorder 48 } 49 50 // MockProcessProviderMockRecorder is the mock recorder for MockProcessProvider. 51 type MockProcessProviderMockRecorder struct { 52 mock *MockProcessProvider 53 } 54 55 // NewMockProcessProvider creates a new mock instance. 56 func NewMockProcessProvider(ctrl *gomock.Controller) *MockProcessProvider { 57 mock := &MockProcessProvider{ctrl: ctrl} 58 mock.recorder = &MockProcessProviderMockRecorder{mock} 59 return mock 60 } 61 62 // EXPECT returns an object that allows the caller to indicate expected use. 63 func (m *MockProcessProvider) EXPECT() *MockProcessProviderMockRecorder { 64 return m.recorder 65 } 66 67 // BootstrapperProvider mocks base method. 68 func (m *MockProcessProvider) BootstrapperProvider() BootstrapperProvider { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "BootstrapperProvider") 71 ret0, _ := ret[0].(BootstrapperProvider) 72 return ret0 73 } 74 75 // BootstrapperProvider indicates an expected call of BootstrapperProvider. 76 func (mr *MockProcessProviderMockRecorder) BootstrapperProvider() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapperProvider", reflect.TypeOf((*MockProcessProvider)(nil).BootstrapperProvider)) 79 } 80 81 // Provide mocks base method. 82 func (m *MockProcessProvider) Provide() (Process, error) { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "Provide") 85 ret0, _ := ret[0].(Process) 86 ret1, _ := ret[1].(error) 87 return ret0, ret1 88 } 89 90 // Provide indicates an expected call of Provide. 91 func (mr *MockProcessProviderMockRecorder) Provide() *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Provide", reflect.TypeOf((*MockProcessProvider)(nil).Provide)) 94 } 95 96 // SetBootstrapperProvider mocks base method. 97 func (m *MockProcessProvider) SetBootstrapperProvider(bootstrapper BootstrapperProvider) { 98 m.ctrl.T.Helper() 99 m.ctrl.Call(m, "SetBootstrapperProvider", bootstrapper) 100 } 101 102 // SetBootstrapperProvider indicates an expected call of SetBootstrapperProvider. 103 func (mr *MockProcessProviderMockRecorder) SetBootstrapperProvider(bootstrapper interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBootstrapperProvider", reflect.TypeOf((*MockProcessProvider)(nil).SetBootstrapperProvider), bootstrapper) 106 } 107 108 // MockProcess is a mock of Process interface. 109 type MockProcess struct { 110 ctrl *gomock.Controller 111 recorder *MockProcessMockRecorder 112 } 113 114 // MockProcessMockRecorder is the mock recorder for MockProcess. 115 type MockProcessMockRecorder struct { 116 mock *MockProcess 117 } 118 119 // NewMockProcess creates a new mock instance. 120 func NewMockProcess(ctrl *gomock.Controller) *MockProcess { 121 mock := &MockProcess{ctrl: ctrl} 122 mock.recorder = &MockProcessMockRecorder{mock} 123 return mock 124 } 125 126 // EXPECT returns an object that allows the caller to indicate expected use. 127 func (m *MockProcess) EXPECT() *MockProcessMockRecorder { 128 return m.recorder 129 } 130 131 // Run mocks base method. 132 func (m *MockProcess) Run(ctx context.Context, start time.UnixNano, namespaces []ProcessNamespace) (NamespaceResults, error) { 133 m.ctrl.T.Helper() 134 ret := m.ctrl.Call(m, "Run", ctx, start, namespaces) 135 ret0, _ := ret[0].(NamespaceResults) 136 ret1, _ := ret[1].(error) 137 return ret0, ret1 138 } 139 140 // Run indicates an expected call of Run. 141 func (mr *MockProcessMockRecorder) Run(ctx, start, namespaces interface{}) *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockProcess)(nil).Run), ctx, start, namespaces) 144 } 145 146 // MockHook is a mock of Hook interface. 147 type MockHook struct { 148 ctrl *gomock.Controller 149 recorder *MockHookMockRecorder 150 } 151 152 // MockHookMockRecorder is the mock recorder for MockHook. 153 type MockHookMockRecorder struct { 154 mock *MockHook 155 } 156 157 // NewMockHook creates a new mock instance. 158 func NewMockHook(ctrl *gomock.Controller) *MockHook { 159 mock := &MockHook{ctrl: ctrl} 160 mock.recorder = &MockHookMockRecorder{mock} 161 return mock 162 } 163 164 // EXPECT returns an object that allows the caller to indicate expected use. 165 func (m *MockHook) EXPECT() *MockHookMockRecorder { 166 return m.recorder 167 } 168 169 // Run mocks base method. 170 func (m *MockHook) Run() error { 171 m.ctrl.T.Helper() 172 ret := m.ctrl.Call(m, "Run") 173 ret0, _ := ret[0].(error) 174 return ret0 175 } 176 177 // Run indicates an expected call of Run. 178 func (mr *MockHookMockRecorder) Run() *gomock.Call { 179 mr.mock.ctrl.T.Helper() 180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockHook)(nil).Run)) 181 } 182 183 // MockNamespaceDataAccumulator is a mock of NamespaceDataAccumulator interface. 184 type MockNamespaceDataAccumulator struct { 185 ctrl *gomock.Controller 186 recorder *MockNamespaceDataAccumulatorMockRecorder 187 } 188 189 // MockNamespaceDataAccumulatorMockRecorder is the mock recorder for MockNamespaceDataAccumulator. 190 type MockNamespaceDataAccumulatorMockRecorder struct { 191 mock *MockNamespaceDataAccumulator 192 } 193 194 // NewMockNamespaceDataAccumulator creates a new mock instance. 195 func NewMockNamespaceDataAccumulator(ctrl *gomock.Controller) *MockNamespaceDataAccumulator { 196 mock := &MockNamespaceDataAccumulator{ctrl: ctrl} 197 mock.recorder = &MockNamespaceDataAccumulatorMockRecorder{mock} 198 return mock 199 } 200 201 // EXPECT returns an object that allows the caller to indicate expected use. 202 func (m *MockNamespaceDataAccumulator) EXPECT() *MockNamespaceDataAccumulatorMockRecorder { 203 return m.recorder 204 } 205 206 // CheckoutSeriesWithLock mocks base method. 207 func (m *MockNamespaceDataAccumulator) CheckoutSeriesWithLock(shardID uint32, id ident.ID, tags ident.TagIterator) (CheckoutSeriesResult, bool, error) { 208 m.ctrl.T.Helper() 209 ret := m.ctrl.Call(m, "CheckoutSeriesWithLock", shardID, id, tags) 210 ret0, _ := ret[0].(CheckoutSeriesResult) 211 ret1, _ := ret[1].(bool) 212 ret2, _ := ret[2].(error) 213 return ret0, ret1, ret2 214 } 215 216 // CheckoutSeriesWithLock indicates an expected call of CheckoutSeriesWithLock. 217 func (mr *MockNamespaceDataAccumulatorMockRecorder) CheckoutSeriesWithLock(shardID, id, tags interface{}) *gomock.Call { 218 mr.mock.ctrl.T.Helper() 219 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckoutSeriesWithLock", reflect.TypeOf((*MockNamespaceDataAccumulator)(nil).CheckoutSeriesWithLock), shardID, id, tags) 220 } 221 222 // CheckoutSeriesWithoutLock mocks base method. 223 func (m *MockNamespaceDataAccumulator) CheckoutSeriesWithoutLock(shardID uint32, id ident.ID, tags ident.TagIterator) (CheckoutSeriesResult, bool, error) { 224 m.ctrl.T.Helper() 225 ret := m.ctrl.Call(m, "CheckoutSeriesWithoutLock", shardID, id, tags) 226 ret0, _ := ret[0].(CheckoutSeriesResult) 227 ret1, _ := ret[1].(bool) 228 ret2, _ := ret[2].(error) 229 return ret0, ret1, ret2 230 } 231 232 // CheckoutSeriesWithoutLock indicates an expected call of CheckoutSeriesWithoutLock. 233 func (mr *MockNamespaceDataAccumulatorMockRecorder) CheckoutSeriesWithoutLock(shardID, id, tags interface{}) *gomock.Call { 234 mr.mock.ctrl.T.Helper() 235 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckoutSeriesWithoutLock", reflect.TypeOf((*MockNamespaceDataAccumulator)(nil).CheckoutSeriesWithoutLock), shardID, id, tags) 236 } 237 238 // Close mocks base method. 239 func (m *MockNamespaceDataAccumulator) Close() error { 240 m.ctrl.T.Helper() 241 ret := m.ctrl.Call(m, "Close") 242 ret0, _ := ret[0].(error) 243 return ret0 244 } 245 246 // Close indicates an expected call of Close. 247 func (mr *MockNamespaceDataAccumulatorMockRecorder) Close() *gomock.Call { 248 mr.mock.ctrl.T.Helper() 249 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockNamespaceDataAccumulator)(nil).Close)) 250 } 251 252 // MockProcessOptions is a mock of ProcessOptions interface. 253 type MockProcessOptions struct { 254 ctrl *gomock.Controller 255 recorder *MockProcessOptionsMockRecorder 256 } 257 258 // MockProcessOptionsMockRecorder is the mock recorder for MockProcessOptions. 259 type MockProcessOptionsMockRecorder struct { 260 mock *MockProcessOptions 261 } 262 263 // NewMockProcessOptions creates a new mock instance. 264 func NewMockProcessOptions(ctrl *gomock.Controller) *MockProcessOptions { 265 mock := &MockProcessOptions{ctrl: ctrl} 266 mock.recorder = &MockProcessOptionsMockRecorder{mock} 267 return mock 268 } 269 270 // EXPECT returns an object that allows the caller to indicate expected use. 271 func (m *MockProcessOptions) EXPECT() *MockProcessOptionsMockRecorder { 272 return m.recorder 273 } 274 275 // CacheSeriesMetadata mocks base method. 276 func (m *MockProcessOptions) CacheSeriesMetadata() bool { 277 m.ctrl.T.Helper() 278 ret := m.ctrl.Call(m, "CacheSeriesMetadata") 279 ret0, _ := ret[0].(bool) 280 return ret0 281 } 282 283 // CacheSeriesMetadata indicates an expected call of CacheSeriesMetadata. 284 func (mr *MockProcessOptionsMockRecorder) CacheSeriesMetadata() *gomock.Call { 285 mr.mock.ctrl.T.Helper() 286 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CacheSeriesMetadata", reflect.TypeOf((*MockProcessOptions)(nil).CacheSeriesMetadata)) 287 } 288 289 // Origin mocks base method. 290 func (m *MockProcessOptions) Origin() topology.Host { 291 m.ctrl.T.Helper() 292 ret := m.ctrl.Call(m, "Origin") 293 ret0, _ := ret[0].(topology.Host) 294 return ret0 295 } 296 297 // Origin indicates an expected call of Origin. 298 func (mr *MockProcessOptionsMockRecorder) Origin() *gomock.Call { 299 mr.mock.ctrl.T.Helper() 300 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Origin", reflect.TypeOf((*MockProcessOptions)(nil).Origin)) 301 } 302 303 // SetCacheSeriesMetadata mocks base method. 304 func (m *MockProcessOptions) SetCacheSeriesMetadata(value bool) ProcessOptions { 305 m.ctrl.T.Helper() 306 ret := m.ctrl.Call(m, "SetCacheSeriesMetadata", value) 307 ret0, _ := ret[0].(ProcessOptions) 308 return ret0 309 } 310 311 // SetCacheSeriesMetadata indicates an expected call of SetCacheSeriesMetadata. 312 func (mr *MockProcessOptionsMockRecorder) SetCacheSeriesMetadata(value interface{}) *gomock.Call { 313 mr.mock.ctrl.T.Helper() 314 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCacheSeriesMetadata", reflect.TypeOf((*MockProcessOptions)(nil).SetCacheSeriesMetadata), value) 315 } 316 317 // SetOrigin mocks base method. 318 func (m *MockProcessOptions) SetOrigin(value topology.Host) ProcessOptions { 319 m.ctrl.T.Helper() 320 ret := m.ctrl.Call(m, "SetOrigin", value) 321 ret0, _ := ret[0].(ProcessOptions) 322 return ret0 323 } 324 325 // SetOrigin indicates an expected call of SetOrigin. 326 func (mr *MockProcessOptionsMockRecorder) SetOrigin(value interface{}) *gomock.Call { 327 mr.mock.ctrl.T.Helper() 328 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOrigin", reflect.TypeOf((*MockProcessOptions)(nil).SetOrigin), value) 329 } 330 331 // SetTopologyMapProvider mocks base method. 332 func (m *MockProcessOptions) SetTopologyMapProvider(value topology.MapProvider) ProcessOptions { 333 m.ctrl.T.Helper() 334 ret := m.ctrl.Call(m, "SetTopologyMapProvider", value) 335 ret0, _ := ret[0].(ProcessOptions) 336 return ret0 337 } 338 339 // SetTopologyMapProvider indicates an expected call of SetTopologyMapProvider. 340 func (mr *MockProcessOptionsMockRecorder) SetTopologyMapProvider(value interface{}) *gomock.Call { 341 mr.mock.ctrl.T.Helper() 342 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTopologyMapProvider", reflect.TypeOf((*MockProcessOptions)(nil).SetTopologyMapProvider), value) 343 } 344 345 // TopologyMapProvider mocks base method. 346 func (m *MockProcessOptions) TopologyMapProvider() topology.MapProvider { 347 m.ctrl.T.Helper() 348 ret := m.ctrl.Call(m, "TopologyMapProvider") 349 ret0, _ := ret[0].(topology.MapProvider) 350 return ret0 351 } 352 353 // TopologyMapProvider indicates an expected call of TopologyMapProvider. 354 func (mr *MockProcessOptionsMockRecorder) TopologyMapProvider() *gomock.Call { 355 mr.mock.ctrl.T.Helper() 356 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TopologyMapProvider", reflect.TypeOf((*MockProcessOptions)(nil).TopologyMapProvider)) 357 } 358 359 // Validate mocks base method. 360 func (m *MockProcessOptions) Validate() error { 361 m.ctrl.T.Helper() 362 ret := m.ctrl.Call(m, "Validate") 363 ret0, _ := ret[0].(error) 364 return ret0 365 } 366 367 // Validate indicates an expected call of Validate. 368 func (mr *MockProcessOptionsMockRecorder) Validate() *gomock.Call { 369 mr.mock.ctrl.T.Helper() 370 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockProcessOptions)(nil).Validate)) 371 } 372 373 // MockRunOptions is a mock of RunOptions interface. 374 type MockRunOptions struct { 375 ctrl *gomock.Controller 376 recorder *MockRunOptionsMockRecorder 377 } 378 379 // MockRunOptionsMockRecorder is the mock recorder for MockRunOptions. 380 type MockRunOptionsMockRecorder struct { 381 mock *MockRunOptions 382 } 383 384 // NewMockRunOptions creates a new mock instance. 385 func NewMockRunOptions(ctrl *gomock.Controller) *MockRunOptions { 386 mock := &MockRunOptions{ctrl: ctrl} 387 mock.recorder = &MockRunOptionsMockRecorder{mock} 388 return mock 389 } 390 391 // EXPECT returns an object that allows the caller to indicate expected use. 392 func (m *MockRunOptions) EXPECT() *MockRunOptionsMockRecorder { 393 return m.recorder 394 } 395 396 // CacheSeriesMetadata mocks base method. 397 func (m *MockRunOptions) CacheSeriesMetadata() bool { 398 m.ctrl.T.Helper() 399 ret := m.ctrl.Call(m, "CacheSeriesMetadata") 400 ret0, _ := ret[0].(bool) 401 return ret0 402 } 403 404 // CacheSeriesMetadata indicates an expected call of CacheSeriesMetadata. 405 func (mr *MockRunOptionsMockRecorder) CacheSeriesMetadata() *gomock.Call { 406 mr.mock.ctrl.T.Helper() 407 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CacheSeriesMetadata", reflect.TypeOf((*MockRunOptions)(nil).CacheSeriesMetadata)) 408 } 409 410 // InitialTopologyState mocks base method. 411 func (m *MockRunOptions) InitialTopologyState() *topology.StateSnapshot { 412 m.ctrl.T.Helper() 413 ret := m.ctrl.Call(m, "InitialTopologyState") 414 ret0, _ := ret[0].(*topology.StateSnapshot) 415 return ret0 416 } 417 418 // InitialTopologyState indicates an expected call of InitialTopologyState. 419 func (mr *MockRunOptionsMockRecorder) InitialTopologyState() *gomock.Call { 420 mr.mock.ctrl.T.Helper() 421 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitialTopologyState", reflect.TypeOf((*MockRunOptions)(nil).InitialTopologyState)) 422 } 423 424 // PersistConfig mocks base method. 425 func (m *MockRunOptions) PersistConfig() PersistConfig { 426 m.ctrl.T.Helper() 427 ret := m.ctrl.Call(m, "PersistConfig") 428 ret0, _ := ret[0].(PersistConfig) 429 return ret0 430 } 431 432 // PersistConfig indicates an expected call of PersistConfig. 433 func (mr *MockRunOptionsMockRecorder) PersistConfig() *gomock.Call { 434 mr.mock.ctrl.T.Helper() 435 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistConfig", reflect.TypeOf((*MockRunOptions)(nil).PersistConfig)) 436 } 437 438 // SetCacheSeriesMetadata mocks base method. 439 func (m *MockRunOptions) SetCacheSeriesMetadata(value bool) RunOptions { 440 m.ctrl.T.Helper() 441 ret := m.ctrl.Call(m, "SetCacheSeriesMetadata", value) 442 ret0, _ := ret[0].(RunOptions) 443 return ret0 444 } 445 446 // SetCacheSeriesMetadata indicates an expected call of SetCacheSeriesMetadata. 447 func (mr *MockRunOptionsMockRecorder) SetCacheSeriesMetadata(value interface{}) *gomock.Call { 448 mr.mock.ctrl.T.Helper() 449 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCacheSeriesMetadata", reflect.TypeOf((*MockRunOptions)(nil).SetCacheSeriesMetadata), value) 450 } 451 452 // SetInitialTopologyState mocks base method. 453 func (m *MockRunOptions) SetInitialTopologyState(value *topology.StateSnapshot) RunOptions { 454 m.ctrl.T.Helper() 455 ret := m.ctrl.Call(m, "SetInitialTopologyState", value) 456 ret0, _ := ret[0].(RunOptions) 457 return ret0 458 } 459 460 // SetInitialTopologyState indicates an expected call of SetInitialTopologyState. 461 func (mr *MockRunOptionsMockRecorder) SetInitialTopologyState(value interface{}) *gomock.Call { 462 mr.mock.ctrl.T.Helper() 463 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInitialTopologyState", reflect.TypeOf((*MockRunOptions)(nil).SetInitialTopologyState), value) 464 } 465 466 // SetPersistConfig mocks base method. 467 func (m *MockRunOptions) SetPersistConfig(value PersistConfig) RunOptions { 468 m.ctrl.T.Helper() 469 ret := m.ctrl.Call(m, "SetPersistConfig", value) 470 ret0, _ := ret[0].(RunOptions) 471 return ret0 472 } 473 474 // SetPersistConfig indicates an expected call of SetPersistConfig. 475 func (mr *MockRunOptionsMockRecorder) SetPersistConfig(value interface{}) *gomock.Call { 476 mr.mock.ctrl.T.Helper() 477 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPersistConfig", reflect.TypeOf((*MockRunOptions)(nil).SetPersistConfig), value) 478 } 479 480 // MockBootstrapperProvider is a mock of BootstrapperProvider interface. 481 type MockBootstrapperProvider struct { 482 ctrl *gomock.Controller 483 recorder *MockBootstrapperProviderMockRecorder 484 } 485 486 // MockBootstrapperProviderMockRecorder is the mock recorder for MockBootstrapperProvider. 487 type MockBootstrapperProviderMockRecorder struct { 488 mock *MockBootstrapperProvider 489 } 490 491 // NewMockBootstrapperProvider creates a new mock instance. 492 func NewMockBootstrapperProvider(ctrl *gomock.Controller) *MockBootstrapperProvider { 493 mock := &MockBootstrapperProvider{ctrl: ctrl} 494 mock.recorder = &MockBootstrapperProviderMockRecorder{mock} 495 return mock 496 } 497 498 // EXPECT returns an object that allows the caller to indicate expected use. 499 func (m *MockBootstrapperProvider) EXPECT() *MockBootstrapperProviderMockRecorder { 500 return m.recorder 501 } 502 503 // Provide mocks base method. 504 func (m *MockBootstrapperProvider) Provide() (Bootstrapper, error) { 505 m.ctrl.T.Helper() 506 ret := m.ctrl.Call(m, "Provide") 507 ret0, _ := ret[0].(Bootstrapper) 508 ret1, _ := ret[1].(error) 509 return ret0, ret1 510 } 511 512 // Provide indicates an expected call of Provide. 513 func (mr *MockBootstrapperProviderMockRecorder) Provide() *gomock.Call { 514 mr.mock.ctrl.T.Helper() 515 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Provide", reflect.TypeOf((*MockBootstrapperProvider)(nil).Provide)) 516 } 517 518 // String mocks base method. 519 func (m *MockBootstrapperProvider) String() string { 520 m.ctrl.T.Helper() 521 ret := m.ctrl.Call(m, "String") 522 ret0, _ := ret[0].(string) 523 return ret0 524 } 525 526 // String indicates an expected call of String. 527 func (mr *MockBootstrapperProviderMockRecorder) String() *gomock.Call { 528 mr.mock.ctrl.T.Helper() 529 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockBootstrapperProvider)(nil).String)) 530 } 531 532 // MockBootstrapper is a mock of Bootstrapper interface. 533 type MockBootstrapper struct { 534 ctrl *gomock.Controller 535 recorder *MockBootstrapperMockRecorder 536 } 537 538 // MockBootstrapperMockRecorder is the mock recorder for MockBootstrapper. 539 type MockBootstrapperMockRecorder struct { 540 mock *MockBootstrapper 541 } 542 543 // NewMockBootstrapper creates a new mock instance. 544 func NewMockBootstrapper(ctrl *gomock.Controller) *MockBootstrapper { 545 mock := &MockBootstrapper{ctrl: ctrl} 546 mock.recorder = &MockBootstrapperMockRecorder{mock} 547 return mock 548 } 549 550 // EXPECT returns an object that allows the caller to indicate expected use. 551 func (m *MockBootstrapper) EXPECT() *MockBootstrapperMockRecorder { 552 return m.recorder 553 } 554 555 // Bootstrap mocks base method. 556 func (m *MockBootstrapper) Bootstrap(ctx context.Context, namespaces Namespaces, cache Cache) (NamespaceResults, error) { 557 m.ctrl.T.Helper() 558 ret := m.ctrl.Call(m, "Bootstrap", ctx, namespaces, cache) 559 ret0, _ := ret[0].(NamespaceResults) 560 ret1, _ := ret[1].(error) 561 return ret0, ret1 562 } 563 564 // Bootstrap indicates an expected call of Bootstrap. 565 func (mr *MockBootstrapperMockRecorder) Bootstrap(ctx, namespaces, cache interface{}) *gomock.Call { 566 mr.mock.ctrl.T.Helper() 567 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockBootstrapper)(nil).Bootstrap), ctx, namespaces, cache) 568 } 569 570 // String mocks base method. 571 func (m *MockBootstrapper) String() string { 572 m.ctrl.T.Helper() 573 ret := m.ctrl.Call(m, "String") 574 ret0, _ := ret[0].(string) 575 return ret0 576 } 577 578 // String indicates an expected call of String. 579 func (mr *MockBootstrapperMockRecorder) String() *gomock.Call { 580 mr.mock.ctrl.T.Helper() 581 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockBootstrapper)(nil).String)) 582 } 583 584 // MockSource is a mock of Source interface. 585 type MockSource struct { 586 ctrl *gomock.Controller 587 recorder *MockSourceMockRecorder 588 } 589 590 // MockSourceMockRecorder is the mock recorder for MockSource. 591 type MockSourceMockRecorder struct { 592 mock *MockSource 593 } 594 595 // NewMockSource creates a new mock instance. 596 func NewMockSource(ctrl *gomock.Controller) *MockSource { 597 mock := &MockSource{ctrl: ctrl} 598 mock.recorder = &MockSourceMockRecorder{mock} 599 return mock 600 } 601 602 // EXPECT returns an object that allows the caller to indicate expected use. 603 func (m *MockSource) EXPECT() *MockSourceMockRecorder { 604 return m.recorder 605 } 606 607 // AvailableData mocks base method. 608 func (m *MockSource) AvailableData(ns namespace.Metadata, shardsTimeRanges result.ShardTimeRanges, cache Cache, runOpts RunOptions) (result.ShardTimeRanges, error) { 609 m.ctrl.T.Helper() 610 ret := m.ctrl.Call(m, "AvailableData", ns, shardsTimeRanges, cache, runOpts) 611 ret0, _ := ret[0].(result.ShardTimeRanges) 612 ret1, _ := ret[1].(error) 613 return ret0, ret1 614 } 615 616 // AvailableData indicates an expected call of AvailableData. 617 func (mr *MockSourceMockRecorder) AvailableData(ns, shardsTimeRanges, cache, runOpts interface{}) *gomock.Call { 618 mr.mock.ctrl.T.Helper() 619 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailableData", reflect.TypeOf((*MockSource)(nil).AvailableData), ns, shardsTimeRanges, cache, runOpts) 620 } 621 622 // AvailableIndex mocks base method. 623 func (m *MockSource) AvailableIndex(ns namespace.Metadata, shardsTimeRanges result.ShardTimeRanges, cache Cache, opts RunOptions) (result.ShardTimeRanges, error) { 624 m.ctrl.T.Helper() 625 ret := m.ctrl.Call(m, "AvailableIndex", ns, shardsTimeRanges, cache, opts) 626 ret0, _ := ret[0].(result.ShardTimeRanges) 627 ret1, _ := ret[1].(error) 628 return ret0, ret1 629 } 630 631 // AvailableIndex indicates an expected call of AvailableIndex. 632 func (mr *MockSourceMockRecorder) AvailableIndex(ns, shardsTimeRanges, cache, opts interface{}) *gomock.Call { 633 mr.mock.ctrl.T.Helper() 634 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AvailableIndex", reflect.TypeOf((*MockSource)(nil).AvailableIndex), ns, shardsTimeRanges, cache, opts) 635 } 636 637 // Read mocks base method. 638 func (m *MockSource) Read(ctx context.Context, namespaces Namespaces, cache Cache) (NamespaceResults, error) { 639 m.ctrl.T.Helper() 640 ret := m.ctrl.Call(m, "Read", ctx, namespaces, cache) 641 ret0, _ := ret[0].(NamespaceResults) 642 ret1, _ := ret[1].(error) 643 return ret0, ret1 644 } 645 646 // Read indicates an expected call of Read. 647 func (mr *MockSourceMockRecorder) Read(ctx, namespaces, cache interface{}) *gomock.Call { 648 mr.mock.ctrl.T.Helper() 649 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockSource)(nil).Read), ctx, namespaces, cache) 650 } 651 652 // MockCache is a mock of Cache interface. 653 type MockCache struct { 654 ctrl *gomock.Controller 655 recorder *MockCacheMockRecorder 656 } 657 658 // MockCacheMockRecorder is the mock recorder for MockCache. 659 type MockCacheMockRecorder struct { 660 mock *MockCache 661 } 662 663 // NewMockCache creates a new mock instance. 664 func NewMockCache(ctrl *gomock.Controller) *MockCache { 665 mock := &MockCache{ctrl: ctrl} 666 mock.recorder = &MockCacheMockRecorder{mock} 667 return mock 668 } 669 670 // EXPECT returns an object that allows the caller to indicate expected use. 671 func (m *MockCache) EXPECT() *MockCacheMockRecorder { 672 return m.recorder 673 } 674 675 // Evict mocks base method. 676 func (m *MockCache) Evict() { 677 m.ctrl.T.Helper() 678 m.ctrl.Call(m, "Evict") 679 } 680 681 // Evict indicates an expected call of Evict. 682 func (mr *MockCacheMockRecorder) Evict() *gomock.Call { 683 mr.mock.ctrl.T.Helper() 684 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Evict", reflect.TypeOf((*MockCache)(nil).Evict)) 685 } 686 687 // InfoFilesForNamespace mocks base method. 688 func (m *MockCache) InfoFilesForNamespace(ns namespace.Metadata) (InfoFileResultsPerShard, error) { 689 m.ctrl.T.Helper() 690 ret := m.ctrl.Call(m, "InfoFilesForNamespace", ns) 691 ret0, _ := ret[0].(InfoFileResultsPerShard) 692 ret1, _ := ret[1].(error) 693 return ret0, ret1 694 } 695 696 // InfoFilesForNamespace indicates an expected call of InfoFilesForNamespace. 697 func (mr *MockCacheMockRecorder) InfoFilesForNamespace(ns interface{}) *gomock.Call { 698 mr.mock.ctrl.T.Helper() 699 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InfoFilesForNamespace", reflect.TypeOf((*MockCache)(nil).InfoFilesForNamespace), ns) 700 } 701 702 // InfoFilesForShard mocks base method. 703 func (m *MockCache) InfoFilesForShard(ns namespace.Metadata, shard uint32) ([]fs.ReadInfoFileResult, error) { 704 m.ctrl.T.Helper() 705 ret := m.ctrl.Call(m, "InfoFilesForShard", ns, shard) 706 ret0, _ := ret[0].([]fs.ReadInfoFileResult) 707 ret1, _ := ret[1].(error) 708 return ret0, ret1 709 } 710 711 // InfoFilesForShard indicates an expected call of InfoFilesForShard. 712 func (mr *MockCacheMockRecorder) InfoFilesForShard(ns, shard interface{}) *gomock.Call { 713 mr.mock.ctrl.T.Helper() 714 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InfoFilesForShard", reflect.TypeOf((*MockCache)(nil).InfoFilesForShard), ns, shard) 715 } 716 717 // ReadInfoFiles mocks base method. 718 func (m *MockCache) ReadInfoFiles() InfoFilesByNamespace { 719 m.ctrl.T.Helper() 720 ret := m.ctrl.Call(m, "ReadInfoFiles") 721 ret0, _ := ret[0].(InfoFilesByNamespace) 722 return ret0 723 } 724 725 // ReadInfoFiles indicates an expected call of ReadInfoFiles. 726 func (mr *MockCacheMockRecorder) ReadInfoFiles() *gomock.Call { 727 mr.mock.ctrl.T.Helper() 728 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadInfoFiles", reflect.TypeOf((*MockCache)(nil).ReadInfoFiles)) 729 } 730 731 // MockCacheOptions is a mock of CacheOptions interface. 732 type MockCacheOptions struct { 733 ctrl *gomock.Controller 734 recorder *MockCacheOptionsMockRecorder 735 } 736 737 // MockCacheOptionsMockRecorder is the mock recorder for MockCacheOptions. 738 type MockCacheOptionsMockRecorder struct { 739 mock *MockCacheOptions 740 } 741 742 // NewMockCacheOptions creates a new mock instance. 743 func NewMockCacheOptions(ctrl *gomock.Controller) *MockCacheOptions { 744 mock := &MockCacheOptions{ctrl: ctrl} 745 mock.recorder = &MockCacheOptionsMockRecorder{mock} 746 return mock 747 } 748 749 // EXPECT returns an object that allows the caller to indicate expected use. 750 func (m *MockCacheOptions) EXPECT() *MockCacheOptionsMockRecorder { 751 return m.recorder 752 } 753 754 // FilesystemOptions mocks base method. 755 func (m *MockCacheOptions) FilesystemOptions() fs.Options { 756 m.ctrl.T.Helper() 757 ret := m.ctrl.Call(m, "FilesystemOptions") 758 ret0, _ := ret[0].(fs.Options) 759 return ret0 760 } 761 762 // FilesystemOptions indicates an expected call of FilesystemOptions. 763 func (mr *MockCacheOptionsMockRecorder) FilesystemOptions() *gomock.Call { 764 mr.mock.ctrl.T.Helper() 765 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilesystemOptions", reflect.TypeOf((*MockCacheOptions)(nil).FilesystemOptions)) 766 } 767 768 // InstrumentOptions mocks base method. 769 func (m *MockCacheOptions) InstrumentOptions() instrument.Options { 770 m.ctrl.T.Helper() 771 ret := m.ctrl.Call(m, "InstrumentOptions") 772 ret0, _ := ret[0].(instrument.Options) 773 return ret0 774 } 775 776 // InstrumentOptions indicates an expected call of InstrumentOptions. 777 func (mr *MockCacheOptionsMockRecorder) InstrumentOptions() *gomock.Call { 778 mr.mock.ctrl.T.Helper() 779 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstrumentOptions", reflect.TypeOf((*MockCacheOptions)(nil).InstrumentOptions)) 780 } 781 782 // NamespaceDetails mocks base method. 783 func (m *MockCacheOptions) NamespaceDetails() []NamespaceDetails { 784 m.ctrl.T.Helper() 785 ret := m.ctrl.Call(m, "NamespaceDetails") 786 ret0, _ := ret[0].([]NamespaceDetails) 787 return ret0 788 } 789 790 // NamespaceDetails indicates an expected call of NamespaceDetails. 791 func (mr *MockCacheOptionsMockRecorder) NamespaceDetails() *gomock.Call { 792 mr.mock.ctrl.T.Helper() 793 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamespaceDetails", reflect.TypeOf((*MockCacheOptions)(nil).NamespaceDetails)) 794 } 795 796 // SetFilesystemOptions mocks base method. 797 func (m *MockCacheOptions) SetFilesystemOptions(value fs.Options) CacheOptions { 798 m.ctrl.T.Helper() 799 ret := m.ctrl.Call(m, "SetFilesystemOptions", value) 800 ret0, _ := ret[0].(CacheOptions) 801 return ret0 802 } 803 804 // SetFilesystemOptions indicates an expected call of SetFilesystemOptions. 805 func (mr *MockCacheOptionsMockRecorder) SetFilesystemOptions(value interface{}) *gomock.Call { 806 mr.mock.ctrl.T.Helper() 807 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFilesystemOptions", reflect.TypeOf((*MockCacheOptions)(nil).SetFilesystemOptions), value) 808 } 809 810 // SetInstrumentOptions mocks base method. 811 func (m *MockCacheOptions) SetInstrumentOptions(value instrument.Options) CacheOptions { 812 m.ctrl.T.Helper() 813 ret := m.ctrl.Call(m, "SetInstrumentOptions", value) 814 ret0, _ := ret[0].(CacheOptions) 815 return ret0 816 } 817 818 // SetInstrumentOptions indicates an expected call of SetInstrumentOptions. 819 func (mr *MockCacheOptionsMockRecorder) SetInstrumentOptions(value interface{}) *gomock.Call { 820 mr.mock.ctrl.T.Helper() 821 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstrumentOptions", reflect.TypeOf((*MockCacheOptions)(nil).SetInstrumentOptions), value) 822 } 823 824 // SetNamespaceDetails mocks base method. 825 func (m *MockCacheOptions) SetNamespaceDetails(value []NamespaceDetails) CacheOptions { 826 m.ctrl.T.Helper() 827 ret := m.ctrl.Call(m, "SetNamespaceDetails", value) 828 ret0, _ := ret[0].(CacheOptions) 829 return ret0 830 } 831 832 // SetNamespaceDetails indicates an expected call of SetNamespaceDetails. 833 func (mr *MockCacheOptionsMockRecorder) SetNamespaceDetails(value interface{}) *gomock.Call { 834 mr.mock.ctrl.T.Helper() 835 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespaceDetails", reflect.TypeOf((*MockCacheOptions)(nil).SetNamespaceDetails), value) 836 } 837 838 // Validate mocks base method. 839 func (m *MockCacheOptions) Validate() error { 840 m.ctrl.T.Helper() 841 ret := m.ctrl.Call(m, "Validate") 842 ret0, _ := ret[0].(error) 843 return ret0 844 } 845 846 // Validate indicates an expected call of Validate. 847 func (mr *MockCacheOptionsMockRecorder) Validate() *gomock.Call { 848 mr.mock.ctrl.T.Helper() 849 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockCacheOptions)(nil).Validate)) 850 } 851 852 // MockSeriesRef is a mock of SeriesRef interface. 853 type MockSeriesRef struct { 854 ctrl *gomock.Controller 855 recorder *MockSeriesRefMockRecorder 856 } 857 858 // MockSeriesRefMockRecorder is the mock recorder for MockSeriesRef. 859 type MockSeriesRefMockRecorder struct { 860 mock *MockSeriesRef 861 } 862 863 // NewMockSeriesRef creates a new mock instance. 864 func NewMockSeriesRef(ctrl *gomock.Controller) *MockSeriesRef { 865 mock := &MockSeriesRef{ctrl: ctrl} 866 mock.recorder = &MockSeriesRefMockRecorder{mock} 867 return mock 868 } 869 870 // EXPECT returns an object that allows the caller to indicate expected use. 871 func (m *MockSeriesRef) EXPECT() *MockSeriesRefMockRecorder { 872 return m.recorder 873 } 874 875 // LoadBlock mocks base method. 876 func (m *MockSeriesRef) LoadBlock(block block.DatabaseBlock, writeType series.WriteType) error { 877 m.ctrl.T.Helper() 878 ret := m.ctrl.Call(m, "LoadBlock", block, writeType) 879 ret0, _ := ret[0].(error) 880 return ret0 881 } 882 883 // LoadBlock indicates an expected call of LoadBlock. 884 func (mr *MockSeriesRefMockRecorder) LoadBlock(block, writeType interface{}) *gomock.Call { 885 mr.mock.ctrl.T.Helper() 886 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadBlock", reflect.TypeOf((*MockSeriesRef)(nil).LoadBlock), block, writeType) 887 } 888 889 // UniqueIndex mocks base method. 890 func (m *MockSeriesRef) UniqueIndex() uint64 { 891 m.ctrl.T.Helper() 892 ret := m.ctrl.Call(m, "UniqueIndex") 893 ret0, _ := ret[0].(uint64) 894 return ret0 895 } 896 897 // UniqueIndex indicates an expected call of UniqueIndex. 898 func (mr *MockSeriesRefMockRecorder) UniqueIndex() *gomock.Call { 899 mr.mock.ctrl.T.Helper() 900 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UniqueIndex", reflect.TypeOf((*MockSeriesRef)(nil).UniqueIndex)) 901 } 902 903 // Write mocks base method. 904 func (m *MockSeriesRef) Write(ctx context.Context, timestamp time.UnixNano, value float64, unit time.Unit, annotation []byte, wOpts series.WriteOptions) (bool, series.WriteType, error) { 905 m.ctrl.T.Helper() 906 ret := m.ctrl.Call(m, "Write", ctx, timestamp, value, unit, annotation, wOpts) 907 ret0, _ := ret[0].(bool) 908 ret1, _ := ret[1].(series.WriteType) 909 ret2, _ := ret[2].(error) 910 return ret0, ret1, ret2 911 } 912 913 // Write indicates an expected call of Write. 914 func (mr *MockSeriesRefMockRecorder) Write(ctx, timestamp, value, unit, annotation, wOpts interface{}) *gomock.Call { 915 mr.mock.ctrl.T.Helper() 916 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSeriesRef)(nil).Write), ctx, timestamp, value, unit, annotation, wOpts) 917 } 918 919 // MockSeriesRefResolver is a mock of SeriesRefResolver interface. 920 type MockSeriesRefResolver struct { 921 ctrl *gomock.Controller 922 recorder *MockSeriesRefResolverMockRecorder 923 } 924 925 // MockSeriesRefResolverMockRecorder is the mock recorder for MockSeriesRefResolver. 926 type MockSeriesRefResolverMockRecorder struct { 927 mock *MockSeriesRefResolver 928 } 929 930 // NewMockSeriesRefResolver creates a new mock instance. 931 func NewMockSeriesRefResolver(ctrl *gomock.Controller) *MockSeriesRefResolver { 932 mock := &MockSeriesRefResolver{ctrl: ctrl} 933 mock.recorder = &MockSeriesRefResolverMockRecorder{mock} 934 return mock 935 } 936 937 // EXPECT returns an object that allows the caller to indicate expected use. 938 func (m *MockSeriesRefResolver) EXPECT() *MockSeriesRefResolverMockRecorder { 939 return m.recorder 940 } 941 942 // ReleaseRef mocks base method. 943 func (m *MockSeriesRefResolver) ReleaseRef() { 944 m.ctrl.T.Helper() 945 m.ctrl.Call(m, "ReleaseRef") 946 } 947 948 // ReleaseRef indicates an expected call of ReleaseRef. 949 func (mr *MockSeriesRefResolverMockRecorder) ReleaseRef() *gomock.Call { 950 mr.mock.ctrl.T.Helper() 951 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseRef", reflect.TypeOf((*MockSeriesRefResolver)(nil).ReleaseRef)) 952 } 953 954 // SeriesRef mocks base method. 955 func (m *MockSeriesRefResolver) SeriesRef() (SeriesRef, error) { 956 m.ctrl.T.Helper() 957 ret := m.ctrl.Call(m, "SeriesRef") 958 ret0, _ := ret[0].(SeriesRef) 959 ret1, _ := ret[1].(error) 960 return ret0, ret1 961 } 962 963 // SeriesRef indicates an expected call of SeriesRef. 964 func (mr *MockSeriesRefResolverMockRecorder) SeriesRef() *gomock.Call { 965 mr.mock.ctrl.T.Helper() 966 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeriesRef", reflect.TypeOf((*MockSeriesRefResolver)(nil).SeriesRef)) 967 }