-
Notifications
You must be signed in to change notification settings - Fork 453
/
services_mock.go
1772 lines (1509 loc) · 59.4 KB
/
services_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/m3db/m3/src/cluster/services/types.go
// Copyright (c) 2019 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Package services is a generated GoMock package.
package services
import (
"reflect"
"time"
"github.com/m3db/m3/src/cluster/generated/proto/metadatapb"
"github.com/m3db/m3/src/cluster/placement"
"github.com/m3db/m3/src/cluster/services/leader/campaign"
"github.com/m3db/m3/src/cluster/shard"
"github.com/m3db/m3/src/x/instrument"
"github.com/m3db/m3/src/x/watch"
"github.com/golang/mock/gomock"
)
// MockServices is a mock of Services interface
type MockServices struct {
ctrl *gomock.Controller
recorder *MockServicesMockRecorder
}
// MockServicesMockRecorder is the mock recorder for MockServices
type MockServicesMockRecorder struct {
mock *MockServices
}
// NewMockServices creates a new mock instance
func NewMockServices(ctrl *gomock.Controller) *MockServices {
mock := &MockServices{ctrl: ctrl}
mock.recorder = &MockServicesMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockServices) EXPECT() *MockServicesMockRecorder {
return m.recorder
}
// Advertise mocks base method
func (m *MockServices) Advertise(ad Advertisement) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Advertise", ad)
ret0, _ := ret[0].(error)
return ret0
}
// Advertise indicates an expected call of Advertise
func (mr *MockServicesMockRecorder) Advertise(ad interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Advertise", reflect.TypeOf((*MockServices)(nil).Advertise), ad)
}
// Unadvertise mocks base method
func (m *MockServices) Unadvertise(service ServiceID, id string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Unadvertise", service, id)
ret0, _ := ret[0].(error)
return ret0
}
// Unadvertise indicates an expected call of Unadvertise
func (mr *MockServicesMockRecorder) Unadvertise(service, id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unadvertise", reflect.TypeOf((*MockServices)(nil).Unadvertise), service, id)
}
// Query mocks base method
func (m *MockServices) Query(service ServiceID, opts QueryOptions) (Service, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Query", service, opts)
ret0, _ := ret[0].(Service)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Query indicates an expected call of Query
func (mr *MockServicesMockRecorder) Query(service, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockServices)(nil).Query), service, opts)
}
// Watch mocks base method
func (m *MockServices) Watch(service ServiceID, opts QueryOptions) (Watch, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Watch", service, opts)
ret0, _ := ret[0].(Watch)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Watch indicates an expected call of Watch
func (mr *MockServicesMockRecorder) Watch(service, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockServices)(nil).Watch), service, opts)
}
// Metadata mocks base method
func (m *MockServices) Metadata(sid ServiceID) (Metadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Metadata", sid)
ret0, _ := ret[0].(Metadata)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Metadata indicates an expected call of Metadata
func (mr *MockServicesMockRecorder) Metadata(sid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockServices)(nil).Metadata), sid)
}
// SetMetadata mocks base method
func (m_2 *MockServices) SetMetadata(sid ServiceID, m Metadata) error {
m_2.ctrl.T.Helper()
ret := m_2.ctrl.Call(m_2, "SetMetadata", sid, m)
ret0, _ := ret[0].(error)
return ret0
}
// SetMetadata indicates an expected call of SetMetadata
func (mr *MockServicesMockRecorder) SetMetadata(sid, m interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMetadata", reflect.TypeOf((*MockServices)(nil).SetMetadata), sid, m)
}
// DeleteMetadata mocks base method
func (m *MockServices) DeleteMetadata(sid ServiceID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteMetadata", sid)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteMetadata indicates an expected call of DeleteMetadata
func (mr *MockServicesMockRecorder) DeleteMetadata(sid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMetadata", reflect.TypeOf((*MockServices)(nil).DeleteMetadata), sid)
}
// PlacementService mocks base method
func (m *MockServices) PlacementService(sid ServiceID, popts placement.Options) (placement.Service, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PlacementService", sid, popts)
ret0, _ := ret[0].(placement.Service)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PlacementService indicates an expected call of PlacementService
func (mr *MockServicesMockRecorder) PlacementService(sid, popts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PlacementService", reflect.TypeOf((*MockServices)(nil).PlacementService), sid, popts)
}
// HeartbeatService mocks base method
func (m *MockServices) HeartbeatService(service ServiceID) (HeartbeatService, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HeartbeatService", service)
ret0, _ := ret[0].(HeartbeatService)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// HeartbeatService indicates an expected call of HeartbeatService
func (mr *MockServicesMockRecorder) HeartbeatService(service interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeartbeatService", reflect.TypeOf((*MockServices)(nil).HeartbeatService), service)
}
// LeaderService mocks base method
func (m *MockServices) LeaderService(service ServiceID, opts ElectionOptions) (LeaderService, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LeaderService", service, opts)
ret0, _ := ret[0].(LeaderService)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LeaderService indicates an expected call of LeaderService
func (mr *MockServicesMockRecorder) LeaderService(service, opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LeaderService", reflect.TypeOf((*MockServices)(nil).LeaderService), service, opts)
}
// MockOptions is a mock of Options interface
type MockOptions struct {
ctrl *gomock.Controller
recorder *MockOptionsMockRecorder
}
// MockOptionsMockRecorder is the mock recorder for MockOptions
type MockOptionsMockRecorder struct {
mock *MockOptions
}
// NewMockOptions creates a new mock instance
func NewMockOptions(ctrl *gomock.Controller) *MockOptions {
mock := &MockOptions{ctrl: ctrl}
mock.recorder = &MockOptionsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockOptions) EXPECT() *MockOptionsMockRecorder {
return m.recorder
}
// InitTimeout mocks base method
func (m *MockOptions) InitTimeout() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InitTimeout")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// InitTimeout indicates an expected call of InitTimeout
func (mr *MockOptionsMockRecorder) InitTimeout() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitTimeout", reflect.TypeOf((*MockOptions)(nil).InitTimeout))
}
// SetInitTimeout mocks base method
func (m *MockOptions) SetInitTimeout(t time.Duration) Options {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetInitTimeout", t)
ret0, _ := ret[0].(Options)
return ret0
}
// SetInitTimeout indicates an expected call of SetInitTimeout
func (mr *MockOptionsMockRecorder) SetInitTimeout(t interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInitTimeout", reflect.TypeOf((*MockOptions)(nil).SetInitTimeout), t)
}
// KVGen mocks base method
func (m *MockOptions) KVGen() KVGen {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KVGen")
ret0, _ := ret[0].(KVGen)
return ret0
}
// KVGen indicates an expected call of KVGen
func (mr *MockOptionsMockRecorder) KVGen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KVGen", reflect.TypeOf((*MockOptions)(nil).KVGen))
}
// SetKVGen mocks base method
func (m *MockOptions) SetKVGen(gen KVGen) Options {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetKVGen", gen)
ret0, _ := ret[0].(Options)
return ret0
}
// SetKVGen indicates an expected call of SetKVGen
func (mr *MockOptionsMockRecorder) SetKVGen(gen interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetKVGen", reflect.TypeOf((*MockOptions)(nil).SetKVGen), gen)
}
// HeartbeatGen mocks base method
func (m *MockOptions) HeartbeatGen() HeartbeatGen {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HeartbeatGen")
ret0, _ := ret[0].(HeartbeatGen)
return ret0
}
// HeartbeatGen indicates an expected call of HeartbeatGen
func (mr *MockOptionsMockRecorder) HeartbeatGen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeartbeatGen", reflect.TypeOf((*MockOptions)(nil).HeartbeatGen))
}
// SetHeartbeatGen mocks base method
func (m *MockOptions) SetHeartbeatGen(gen HeartbeatGen) Options {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetHeartbeatGen", gen)
ret0, _ := ret[0].(Options)
return ret0
}
// SetHeartbeatGen indicates an expected call of SetHeartbeatGen
func (mr *MockOptionsMockRecorder) SetHeartbeatGen(gen interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHeartbeatGen", reflect.TypeOf((*MockOptions)(nil).SetHeartbeatGen), gen)
}
// LeaderGen mocks base method
func (m *MockOptions) LeaderGen() LeaderGen {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LeaderGen")
ret0, _ := ret[0].(LeaderGen)
return ret0
}
// LeaderGen indicates an expected call of LeaderGen
func (mr *MockOptionsMockRecorder) LeaderGen() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LeaderGen", reflect.TypeOf((*MockOptions)(nil).LeaderGen))
}
// SetLeaderGen mocks base method
func (m *MockOptions) SetLeaderGen(gen LeaderGen) Options {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetLeaderGen", gen)
ret0, _ := ret[0].(Options)
return ret0
}
// SetLeaderGen indicates an expected call of SetLeaderGen
func (mr *MockOptionsMockRecorder) SetLeaderGen(gen interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLeaderGen", reflect.TypeOf((*MockOptions)(nil).SetLeaderGen), gen)
}
// InstrumentsOptions mocks base method
func (m *MockOptions) InstrumentsOptions() instrument.Options {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InstrumentsOptions")
ret0, _ := ret[0].(instrument.Options)
return ret0
}
// InstrumentsOptions indicates an expected call of InstrumentsOptions
func (mr *MockOptionsMockRecorder) InstrumentsOptions() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstrumentsOptions", reflect.TypeOf((*MockOptions)(nil).InstrumentsOptions))
}
// SetInstrumentsOptions mocks base method
func (m *MockOptions) SetInstrumentsOptions(iopts instrument.Options) Options {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetInstrumentsOptions", iopts)
ret0, _ := ret[0].(Options)
return ret0
}
// SetInstrumentsOptions indicates an expected call of SetInstrumentsOptions
func (mr *MockOptionsMockRecorder) SetInstrumentsOptions(iopts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstrumentsOptions", reflect.TypeOf((*MockOptions)(nil).SetInstrumentsOptions), iopts)
}
// NamespaceOptions mocks base method
func (m *MockOptions) NamespaceOptions() NamespaceOptions {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NamespaceOptions")
ret0, _ := ret[0].(NamespaceOptions)
return ret0
}
// NamespaceOptions indicates an expected call of NamespaceOptions
func (mr *MockOptionsMockRecorder) NamespaceOptions() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamespaceOptions", reflect.TypeOf((*MockOptions)(nil).NamespaceOptions))
}
// SetNamespaceOptions mocks base method
func (m *MockOptions) SetNamespaceOptions(opts NamespaceOptions) Options {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetNamespaceOptions", opts)
ret0, _ := ret[0].(Options)
return ret0
}
// SetNamespaceOptions indicates an expected call of SetNamespaceOptions
func (mr *MockOptionsMockRecorder) SetNamespaceOptions(opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespaceOptions", reflect.TypeOf((*MockOptions)(nil).SetNamespaceOptions), opts)
}
// Validate mocks base method
func (m *MockOptions) Validate() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Validate")
ret0, _ := ret[0].(error)
return ret0
}
// Validate indicates an expected call of Validate
func (mr *MockOptionsMockRecorder) Validate() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate))
}
// MockNamespaceOptions is a mock of NamespaceOptions interface
type MockNamespaceOptions struct {
ctrl *gomock.Controller
recorder *MockNamespaceOptionsMockRecorder
}
// MockNamespaceOptionsMockRecorder is the mock recorder for MockNamespaceOptions
type MockNamespaceOptionsMockRecorder struct {
mock *MockNamespaceOptions
}
// NewMockNamespaceOptions creates a new mock instance
func NewMockNamespaceOptions(ctrl *gomock.Controller) *MockNamespaceOptions {
mock := &MockNamespaceOptions{ctrl: ctrl}
mock.recorder = &MockNamespaceOptionsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockNamespaceOptions) EXPECT() *MockNamespaceOptionsMockRecorder {
return m.recorder
}
// PlacementNamespace mocks base method
func (m *MockNamespaceOptions) PlacementNamespace() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PlacementNamespace")
ret0, _ := ret[0].(string)
return ret0
}
// PlacementNamespace indicates an expected call of PlacementNamespace
func (mr *MockNamespaceOptionsMockRecorder) PlacementNamespace() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PlacementNamespace", reflect.TypeOf((*MockNamespaceOptions)(nil).PlacementNamespace))
}
// SetPlacementNamespace mocks base method
func (m *MockNamespaceOptions) SetPlacementNamespace(v string) NamespaceOptions {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetPlacementNamespace", v)
ret0, _ := ret[0].(NamespaceOptions)
return ret0
}
// SetPlacementNamespace indicates an expected call of SetPlacementNamespace
func (mr *MockNamespaceOptionsMockRecorder) SetPlacementNamespace(v interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPlacementNamespace", reflect.TypeOf((*MockNamespaceOptions)(nil).SetPlacementNamespace), v)
}
// MetadataNamespace mocks base method
func (m *MockNamespaceOptions) MetadataNamespace() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MetadataNamespace")
ret0, _ := ret[0].(string)
return ret0
}
// MetadataNamespace indicates an expected call of MetadataNamespace
func (mr *MockNamespaceOptionsMockRecorder) MetadataNamespace() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetadataNamespace", reflect.TypeOf((*MockNamespaceOptions)(nil).MetadataNamespace))
}
// SetMetadataNamespace mocks base method
func (m *MockNamespaceOptions) SetMetadataNamespace(v string) NamespaceOptions {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetMetadataNamespace", v)
ret0, _ := ret[0].(NamespaceOptions)
return ret0
}
// SetMetadataNamespace indicates an expected call of SetMetadataNamespace
func (mr *MockNamespaceOptionsMockRecorder) SetMetadataNamespace(v interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMetadataNamespace", reflect.TypeOf((*MockNamespaceOptions)(nil).SetMetadataNamespace), v)
}
// MockOverrideOptions is a mock of OverrideOptions interface
type MockOverrideOptions struct {
ctrl *gomock.Controller
recorder *MockOverrideOptionsMockRecorder
}
// MockOverrideOptionsMockRecorder is the mock recorder for MockOverrideOptions
type MockOverrideOptionsMockRecorder struct {
mock *MockOverrideOptions
}
// NewMockOverrideOptions creates a new mock instance
func NewMockOverrideOptions(ctrl *gomock.Controller) *MockOverrideOptions {
mock := &MockOverrideOptions{ctrl: ctrl}
mock.recorder = &MockOverrideOptionsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockOverrideOptions) EXPECT() *MockOverrideOptionsMockRecorder {
return m.recorder
}
// NamespaceOptions mocks base method
func (m *MockOverrideOptions) NamespaceOptions() NamespaceOptions {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NamespaceOptions")
ret0, _ := ret[0].(NamespaceOptions)
return ret0
}
// NamespaceOptions indicates an expected call of NamespaceOptions
func (mr *MockOverrideOptionsMockRecorder) NamespaceOptions() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamespaceOptions", reflect.TypeOf((*MockOverrideOptions)(nil).NamespaceOptions))
}
// SetNamespaceOptions mocks base method
func (m *MockOverrideOptions) SetNamespaceOptions(opts NamespaceOptions) OverrideOptions {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetNamespaceOptions", opts)
ret0, _ := ret[0].(OverrideOptions)
return ret0
}
// SetNamespaceOptions indicates an expected call of SetNamespaceOptions
func (mr *MockOverrideOptionsMockRecorder) SetNamespaceOptions(opts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespaceOptions", reflect.TypeOf((*MockOverrideOptions)(nil).SetNamespaceOptions), opts)
}
// MockWatch is a mock of Watch interface
type MockWatch struct {
ctrl *gomock.Controller
recorder *MockWatchMockRecorder
}
// MockWatchMockRecorder is the mock recorder for MockWatch
type MockWatchMockRecorder struct {
mock *MockWatch
}
// NewMockWatch creates a new mock instance
func NewMockWatch(ctrl *gomock.Controller) *MockWatch {
mock := &MockWatch{ctrl: ctrl}
mock.recorder = &MockWatchMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockWatch) EXPECT() *MockWatchMockRecorder {
return m.recorder
}
// Close mocks base method
func (m *MockWatch) Close() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Close")
}
// Close indicates an expected call of Close
func (mr *MockWatchMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockWatch)(nil).Close))
}
// C mocks base method
func (m *MockWatch) C() <-chan struct{} {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "C")
ret0, _ := ret[0].(<-chan struct{})
return ret0
}
// C indicates an expected call of C
func (mr *MockWatchMockRecorder) C() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "C", reflect.TypeOf((*MockWatch)(nil).C))
}
// Get mocks base method
func (m *MockWatch) Get() Service {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get")
ret0, _ := ret[0].(Service)
return ret0
}
// Get indicates an expected call of Get
func (mr *MockWatchMockRecorder) Get() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockWatch)(nil).Get))
}
// MockService is a mock of Service interface
type MockService struct {
ctrl *gomock.Controller
recorder *MockServiceMockRecorder
}
// MockServiceMockRecorder is the mock recorder for MockService
type MockServiceMockRecorder struct {
mock *MockService
}
// NewMockService creates a new mock instance
func NewMockService(ctrl *gomock.Controller) *MockService {
mock := &MockService{ctrl: ctrl}
mock.recorder = &MockServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockService) EXPECT() *MockServiceMockRecorder {
return m.recorder
}
// Instance mocks base method
func (m *MockService) Instance(instanceID string) (ServiceInstance, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Instance", instanceID)
ret0, _ := ret[0].(ServiceInstance)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Instance indicates an expected call of Instance
func (mr *MockServiceMockRecorder) Instance(instanceID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Instance", reflect.TypeOf((*MockService)(nil).Instance), instanceID)
}
// Instances mocks base method
func (m *MockService) Instances() []ServiceInstance {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Instances")
ret0, _ := ret[0].([]ServiceInstance)
return ret0
}
// Instances indicates an expected call of Instances
func (mr *MockServiceMockRecorder) Instances() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Instances", reflect.TypeOf((*MockService)(nil).Instances))
}
// SetInstances mocks base method
func (m *MockService) SetInstances(insts []ServiceInstance) Service {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetInstances", insts)
ret0, _ := ret[0].(Service)
return ret0
}
// SetInstances indicates an expected call of SetInstances
func (mr *MockServiceMockRecorder) SetInstances(insts interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstances", reflect.TypeOf((*MockService)(nil).SetInstances), insts)
}
// Replication mocks base method
func (m *MockService) Replication() ServiceReplication {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Replication")
ret0, _ := ret[0].(ServiceReplication)
return ret0
}
// Replication indicates an expected call of Replication
func (mr *MockServiceMockRecorder) Replication() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Replication", reflect.TypeOf((*MockService)(nil).Replication))
}
// SetReplication mocks base method
func (m *MockService) SetReplication(r ServiceReplication) Service {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetReplication", r)
ret0, _ := ret[0].(Service)
return ret0
}
// SetReplication indicates an expected call of SetReplication
func (mr *MockServiceMockRecorder) SetReplication(r interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReplication", reflect.TypeOf((*MockService)(nil).SetReplication), r)
}
// Sharding mocks base method
func (m *MockService) Sharding() ServiceSharding {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Sharding")
ret0, _ := ret[0].(ServiceSharding)
return ret0
}
// Sharding indicates an expected call of Sharding
func (mr *MockServiceMockRecorder) Sharding() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sharding", reflect.TypeOf((*MockService)(nil).Sharding))
}
// SetSharding mocks base method
func (m *MockService) SetSharding(s ServiceSharding) Service {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetSharding", s)
ret0, _ := ret[0].(Service)
return ret0
}
// SetSharding indicates an expected call of SetSharding
func (mr *MockServiceMockRecorder) SetSharding(s interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSharding", reflect.TypeOf((*MockService)(nil).SetSharding), s)
}
// MockServiceReplication is a mock of ServiceReplication interface
type MockServiceReplication struct {
ctrl *gomock.Controller
recorder *MockServiceReplicationMockRecorder
}
// MockServiceReplicationMockRecorder is the mock recorder for MockServiceReplication
type MockServiceReplicationMockRecorder struct {
mock *MockServiceReplication
}
// NewMockServiceReplication creates a new mock instance
func NewMockServiceReplication(ctrl *gomock.Controller) *MockServiceReplication {
mock := &MockServiceReplication{ctrl: ctrl}
mock.recorder = &MockServiceReplicationMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockServiceReplication) EXPECT() *MockServiceReplicationMockRecorder {
return m.recorder
}
// Replicas mocks base method
func (m *MockServiceReplication) Replicas() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Replicas")
ret0, _ := ret[0].(int)
return ret0
}
// Replicas indicates an expected call of Replicas
func (mr *MockServiceReplicationMockRecorder) Replicas() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Replicas", reflect.TypeOf((*MockServiceReplication)(nil).Replicas))
}
// SetReplicas mocks base method
func (m *MockServiceReplication) SetReplicas(r int) ServiceReplication {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetReplicas", r)
ret0, _ := ret[0].(ServiceReplication)
return ret0
}
// SetReplicas indicates an expected call of SetReplicas
func (mr *MockServiceReplicationMockRecorder) SetReplicas(r interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReplicas", reflect.TypeOf((*MockServiceReplication)(nil).SetReplicas), r)
}
// MockServiceSharding is a mock of ServiceSharding interface
type MockServiceSharding struct {
ctrl *gomock.Controller
recorder *MockServiceShardingMockRecorder
}
// MockServiceShardingMockRecorder is the mock recorder for MockServiceSharding
type MockServiceShardingMockRecorder struct {
mock *MockServiceSharding
}
// NewMockServiceSharding creates a new mock instance
func NewMockServiceSharding(ctrl *gomock.Controller) *MockServiceSharding {
mock := &MockServiceSharding{ctrl: ctrl}
mock.recorder = &MockServiceShardingMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockServiceSharding) EXPECT() *MockServiceShardingMockRecorder {
return m.recorder
}
// NumShards mocks base method
func (m *MockServiceSharding) NumShards() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NumShards")
ret0, _ := ret[0].(int)
return ret0
}
// NumShards indicates an expected call of NumShards
func (mr *MockServiceShardingMockRecorder) NumShards() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumShards", reflect.TypeOf((*MockServiceSharding)(nil).NumShards))
}
// SetNumShards mocks base method
func (m *MockServiceSharding) SetNumShards(n int) ServiceSharding {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetNumShards", n)
ret0, _ := ret[0].(ServiceSharding)
return ret0
}
// SetNumShards indicates an expected call of SetNumShards
func (mr *MockServiceShardingMockRecorder) SetNumShards(n interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNumShards", reflect.TypeOf((*MockServiceSharding)(nil).SetNumShards), n)
}
// IsSharded mocks base method
func (m *MockServiceSharding) IsSharded() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsSharded")
ret0, _ := ret[0].(bool)
return ret0
}
// IsSharded indicates an expected call of IsSharded
func (mr *MockServiceShardingMockRecorder) IsSharded() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSharded", reflect.TypeOf((*MockServiceSharding)(nil).IsSharded))
}
// SetIsSharded mocks base method
func (m *MockServiceSharding) SetIsSharded(s bool) ServiceSharding {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetIsSharded", s)
ret0, _ := ret[0].(ServiceSharding)
return ret0
}
// SetIsSharded indicates an expected call of SetIsSharded
func (mr *MockServiceShardingMockRecorder) SetIsSharded(s interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIsSharded", reflect.TypeOf((*MockServiceSharding)(nil).SetIsSharded), s)
}
// MockServiceInstance is a mock of ServiceInstance interface
type MockServiceInstance struct {
ctrl *gomock.Controller
recorder *MockServiceInstanceMockRecorder
}
// MockServiceInstanceMockRecorder is the mock recorder for MockServiceInstance
type MockServiceInstanceMockRecorder struct {
mock *MockServiceInstance
}
// NewMockServiceInstance creates a new mock instance
func NewMockServiceInstance(ctrl *gomock.Controller) *MockServiceInstance {
mock := &MockServiceInstance{ctrl: ctrl}
mock.recorder = &MockServiceInstanceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockServiceInstance) EXPECT() *MockServiceInstanceMockRecorder {
return m.recorder
}
// ServiceID mocks base method
func (m *MockServiceInstance) ServiceID() ServiceID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ServiceID")
ret0, _ := ret[0].(ServiceID)
return ret0
}
// ServiceID indicates an expected call of ServiceID
func (mr *MockServiceInstanceMockRecorder) ServiceID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceID", reflect.TypeOf((*MockServiceInstance)(nil).ServiceID))
}
// SetServiceID mocks base method
func (m *MockServiceInstance) SetServiceID(service ServiceID) ServiceInstance {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetServiceID", service)
ret0, _ := ret[0].(ServiceInstance)
return ret0
}
// SetServiceID indicates an expected call of SetServiceID
func (mr *MockServiceInstanceMockRecorder) SetServiceID(service interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetServiceID", reflect.TypeOf((*MockServiceInstance)(nil).SetServiceID), service)
}
// InstanceID mocks base method
func (m *MockServiceInstance) InstanceID() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InstanceID")
ret0, _ := ret[0].(string)
return ret0
}
// InstanceID indicates an expected call of InstanceID
func (mr *MockServiceInstanceMockRecorder) InstanceID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceID", reflect.TypeOf((*MockServiceInstance)(nil).InstanceID))
}
// SetInstanceID mocks base method
func (m *MockServiceInstance) SetInstanceID(id string) ServiceInstance {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetInstanceID", id)
ret0, _ := ret[0].(ServiceInstance)
return ret0
}
// SetInstanceID indicates an expected call of SetInstanceID
func (mr *MockServiceInstanceMockRecorder) SetInstanceID(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstanceID", reflect.TypeOf((*MockServiceInstance)(nil).SetInstanceID), id)
}
// Endpoint mocks base method
func (m *MockServiceInstance) Endpoint() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Endpoint")
ret0, _ := ret[0].(string)
return ret0
}
// Endpoint indicates an expected call of Endpoint
func (mr *MockServiceInstanceMockRecorder) Endpoint() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Endpoint", reflect.TypeOf((*MockServiceInstance)(nil).Endpoint))
}
// SetEndpoint mocks base method
func (m *MockServiceInstance) SetEndpoint(e string) ServiceInstance {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetEndpoint", e)
ret0, _ := ret[0].(ServiceInstance)
return ret0
}
// SetEndpoint indicates an expected call of SetEndpoint
func (mr *MockServiceInstanceMockRecorder) SetEndpoint(e interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEndpoint", reflect.TypeOf((*MockServiceInstance)(nil).SetEndpoint), e)
}
// Shards mocks base method
func (m *MockServiceInstance) Shards() shard.Shards {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Shards")
ret0, _ := ret[0].(shard.Shards)
return ret0
}
// Shards indicates an expected call of Shards
func (mr *MockServiceInstanceMockRecorder) Shards() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shards", reflect.TypeOf((*MockServiceInstance)(nil).Shards))
}
// SetShards mocks base method
func (m *MockServiceInstance) SetShards(s shard.Shards) ServiceInstance {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetShards", s)
ret0, _ := ret[0].(ServiceInstance)
return ret0
}
// SetShards indicates an expected call of SetShards
func (mr *MockServiceInstanceMockRecorder) SetShards(s interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetShards", reflect.TypeOf((*MockServiceInstance)(nil).SetShards), s)
}
// MockAdvertisement is a mock of Advertisement interface
type MockAdvertisement struct {
ctrl *gomock.Controller
recorder *MockAdvertisementMockRecorder
}