-
Notifications
You must be signed in to change notification settings - Fork 173
/
mockssarama.go
852 lines (733 loc) · 32.5 KB
/
mockssarama.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/IBM/sarama (interfaces: Client,ClusterAdmin)
// Package goka is a generated GoMock package.
package goka
import (
reflect "reflect"
sarama "github.com/IBM/sarama"
gomock "github.com/golang/mock/gomock"
)
// MockClient is a mock of Client interface.
type MockClient struct {
ctrl *gomock.Controller
recorder *MockClientMockRecorder
}
// MockClientMockRecorder is the mock recorder for MockClient.
type MockClientMockRecorder struct {
mock *MockClient
}
// NewMockClient creates a new mock instance.
func NewMockClient(ctrl *gomock.Controller) *MockClient {
mock := &MockClient{ctrl: ctrl}
mock.recorder = &MockClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClient) EXPECT() *MockClientMockRecorder {
return m.recorder
}
// Broker mocks base method.
func (m *MockClient) Broker(arg0 int32) (*sarama.Broker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Broker", arg0)
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Broker indicates an expected call of Broker.
func (mr *MockClientMockRecorder) Broker(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Broker", reflect.TypeOf((*MockClient)(nil).Broker), arg0)
}
// Brokers mocks base method.
func (m *MockClient) Brokers() []*sarama.Broker {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Brokers")
ret0, _ := ret[0].([]*sarama.Broker)
return ret0
}
// Brokers indicates an expected call of Brokers.
func (mr *MockClientMockRecorder) Brokers() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Brokers", reflect.TypeOf((*MockClient)(nil).Brokers))
}
// Close mocks base method.
func (m *MockClient) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockClientMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockClient)(nil).Close))
}
// Closed mocks base method.
func (m *MockClient) Closed() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Closed")
ret0, _ := ret[0].(bool)
return ret0
}
// Closed indicates an expected call of Closed.
func (mr *MockClientMockRecorder) Closed() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Closed", reflect.TypeOf((*MockClient)(nil).Closed))
}
// Config mocks base method.
func (m *MockClient) Config() *sarama.Config {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Config")
ret0, _ := ret[0].(*sarama.Config)
return ret0
}
// Config indicates an expected call of Config.
func (mr *MockClientMockRecorder) Config() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockClient)(nil).Config))
}
// Controller mocks base method.
func (m *MockClient) Controller() (*sarama.Broker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Controller")
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Controller indicates an expected call of Controller.
func (mr *MockClientMockRecorder) Controller() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Controller", reflect.TypeOf((*MockClient)(nil).Controller))
}
// Coordinator mocks base method.
func (m *MockClient) Coordinator(arg0 string) (*sarama.Broker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Coordinator", arg0)
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Coordinator indicates an expected call of Coordinator.
func (mr *MockClientMockRecorder) Coordinator(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Coordinator", reflect.TypeOf((*MockClient)(nil).Coordinator), arg0)
}
// GetOffset mocks base method.
func (m *MockClient) GetOffset(arg0 string, arg1 int32, arg2 int64) (int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetOffset", arg0, arg1, arg2)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetOffset indicates an expected call of GetOffset.
func (mr *MockClientMockRecorder) GetOffset(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOffset", reflect.TypeOf((*MockClient)(nil).GetOffset), arg0, arg1, arg2)
}
// InSyncReplicas mocks base method.
func (m *MockClient) InSyncReplicas(arg0 string, arg1 int32) ([]int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InSyncReplicas", arg0, arg1)
ret0, _ := ret[0].([]int32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// InSyncReplicas indicates an expected call of InSyncReplicas.
func (mr *MockClientMockRecorder) InSyncReplicas(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InSyncReplicas", reflect.TypeOf((*MockClient)(nil).InSyncReplicas), arg0, arg1)
}
// InitProducerID mocks base method.
func (m *MockClient) InitProducerID() (*sarama.InitProducerIDResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InitProducerID")
ret0, _ := ret[0].(*sarama.InitProducerIDResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// InitProducerID indicates an expected call of InitProducerID.
func (mr *MockClientMockRecorder) InitProducerID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitProducerID", reflect.TypeOf((*MockClient)(nil).InitProducerID))
}
// Leader mocks base method.
func (m *MockClient) Leader(arg0 string, arg1 int32) (*sarama.Broker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Leader", arg0, arg1)
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Leader indicates an expected call of Leader.
func (mr *MockClientMockRecorder) Leader(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Leader", reflect.TypeOf((*MockClient)(nil).Leader), arg0, arg1)
}
// LeaderAndEpoch mocks base method.
func (m *MockClient) LeaderAndEpoch(arg0 string, arg1 int32) (*sarama.Broker, int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LeaderAndEpoch", arg0, arg1)
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(int32)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// LeaderAndEpoch indicates an expected call of LeaderAndEpoch.
func (mr *MockClientMockRecorder) LeaderAndEpoch(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LeaderAndEpoch", reflect.TypeOf((*MockClient)(nil).LeaderAndEpoch), arg0, arg1)
}
// LeastLoadedBroker mocks base method.
func (m *MockClient) LeastLoadedBroker() *sarama.Broker {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LeastLoadedBroker")
ret0, _ := ret[0].(*sarama.Broker)
return ret0
}
// LeastLoadedBroker indicates an expected call of LeastLoadedBroker.
func (mr *MockClientMockRecorder) LeastLoadedBroker() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LeastLoadedBroker", reflect.TypeOf((*MockClient)(nil).LeastLoadedBroker))
}
// OfflineReplicas mocks base method.
func (m *MockClient) OfflineReplicas(arg0 string, arg1 int32) ([]int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OfflineReplicas", arg0, arg1)
ret0, _ := ret[0].([]int32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// OfflineReplicas indicates an expected call of OfflineReplicas.
func (mr *MockClientMockRecorder) OfflineReplicas(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OfflineReplicas", reflect.TypeOf((*MockClient)(nil).OfflineReplicas), arg0, arg1)
}
// Partitions mocks base method.
func (m *MockClient) Partitions(arg0 string) ([]int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Partitions", arg0)
ret0, _ := ret[0].([]int32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Partitions indicates an expected call of Partitions.
func (mr *MockClientMockRecorder) Partitions(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Partitions", reflect.TypeOf((*MockClient)(nil).Partitions), arg0)
}
// RefreshBrokers mocks base method.
func (m *MockClient) RefreshBrokers(arg0 []string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RefreshBrokers", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// RefreshBrokers indicates an expected call of RefreshBrokers.
func (mr *MockClientMockRecorder) RefreshBrokers(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshBrokers", reflect.TypeOf((*MockClient)(nil).RefreshBrokers), arg0)
}
// RefreshController mocks base method.
func (m *MockClient) RefreshController() (*sarama.Broker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RefreshController")
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RefreshController indicates an expected call of RefreshController.
func (mr *MockClientMockRecorder) RefreshController() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshController", reflect.TypeOf((*MockClient)(nil).RefreshController))
}
// RefreshCoordinator mocks base method.
func (m *MockClient) RefreshCoordinator(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RefreshCoordinator", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// RefreshCoordinator indicates an expected call of RefreshCoordinator.
func (mr *MockClientMockRecorder) RefreshCoordinator(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshCoordinator", reflect.TypeOf((*MockClient)(nil).RefreshCoordinator), arg0)
}
// RefreshMetadata mocks base method.
func (m *MockClient) RefreshMetadata(arg0 ...string) error {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "RefreshMetadata", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// RefreshMetadata indicates an expected call of RefreshMetadata.
func (mr *MockClientMockRecorder) RefreshMetadata(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshMetadata", reflect.TypeOf((*MockClient)(nil).RefreshMetadata), arg0...)
}
// RefreshTransactionCoordinator mocks base method.
func (m *MockClient) RefreshTransactionCoordinator(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RefreshTransactionCoordinator", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// RefreshTransactionCoordinator indicates an expected call of RefreshTransactionCoordinator.
func (mr *MockClientMockRecorder) RefreshTransactionCoordinator(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshTransactionCoordinator", reflect.TypeOf((*MockClient)(nil).RefreshTransactionCoordinator), arg0)
}
// Replicas mocks base method.
func (m *MockClient) Replicas(arg0 string, arg1 int32) ([]int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Replicas", arg0, arg1)
ret0, _ := ret[0].([]int32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Replicas indicates an expected call of Replicas.
func (mr *MockClientMockRecorder) Replicas(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Replicas", reflect.TypeOf((*MockClient)(nil).Replicas), arg0, arg1)
}
// Topics mocks base method.
func (m *MockClient) Topics() ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Topics")
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Topics indicates an expected call of Topics.
func (mr *MockClientMockRecorder) Topics() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Topics", reflect.TypeOf((*MockClient)(nil).Topics))
}
// TransactionCoordinator mocks base method.
func (m *MockClient) TransactionCoordinator(arg0 string) (*sarama.Broker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TransactionCoordinator", arg0)
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TransactionCoordinator indicates an expected call of TransactionCoordinator.
func (mr *MockClientMockRecorder) TransactionCoordinator(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransactionCoordinator", reflect.TypeOf((*MockClient)(nil).TransactionCoordinator), arg0)
}
// WritablePartitions mocks base method.
func (m *MockClient) WritablePartitions(arg0 string) ([]int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WritablePartitions", arg0)
ret0, _ := ret[0].([]int32)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// WritablePartitions indicates an expected call of WritablePartitions.
func (mr *MockClientMockRecorder) WritablePartitions(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WritablePartitions", reflect.TypeOf((*MockClient)(nil).WritablePartitions), arg0)
}
// MockClusterAdmin is a mock of ClusterAdmin interface.
type MockClusterAdmin struct {
ctrl *gomock.Controller
recorder *MockClusterAdminMockRecorder
}
// MockClusterAdminMockRecorder is the mock recorder for MockClusterAdmin.
type MockClusterAdminMockRecorder struct {
mock *MockClusterAdmin
}
// NewMockClusterAdmin creates a new mock instance.
func NewMockClusterAdmin(ctrl *gomock.Controller) *MockClusterAdmin {
mock := &MockClusterAdmin{ctrl: ctrl}
mock.recorder = &MockClusterAdminMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClusterAdmin) EXPECT() *MockClusterAdminMockRecorder {
return m.recorder
}
// AlterClientQuotas mocks base method.
func (m *MockClusterAdmin) AlterClientQuotas(arg0 []sarama.QuotaEntityComponent, arg1 sarama.ClientQuotasOp, arg2 bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AlterClientQuotas", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// AlterClientQuotas indicates an expected call of AlterClientQuotas.
func (mr *MockClusterAdminMockRecorder) AlterClientQuotas(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterClientQuotas", reflect.TypeOf((*MockClusterAdmin)(nil).AlterClientQuotas), arg0, arg1, arg2)
}
// AlterConfig mocks base method.
func (m *MockClusterAdmin) AlterConfig(arg0 sarama.ConfigResourceType, arg1 string, arg2 map[string]*string, arg3 bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AlterConfig", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// AlterConfig indicates an expected call of AlterConfig.
func (mr *MockClusterAdminMockRecorder) AlterConfig(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterConfig", reflect.TypeOf((*MockClusterAdmin)(nil).AlterConfig), arg0, arg1, arg2, arg3)
}
// AlterPartitionReassignments mocks base method.
func (m *MockClusterAdmin) AlterPartitionReassignments(arg0 string, arg1 [][]int32) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AlterPartitionReassignments", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// AlterPartitionReassignments indicates an expected call of AlterPartitionReassignments.
func (mr *MockClusterAdminMockRecorder) AlterPartitionReassignments(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterPartitionReassignments", reflect.TypeOf((*MockClusterAdmin)(nil).AlterPartitionReassignments), arg0, arg1)
}
// Close mocks base method.
func (m *MockClusterAdmin) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockClusterAdminMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockClusterAdmin)(nil).Close))
}
// Controller mocks base method.
func (m *MockClusterAdmin) Controller() (*sarama.Broker, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Controller")
ret0, _ := ret[0].(*sarama.Broker)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Controller indicates an expected call of Controller.
func (mr *MockClusterAdminMockRecorder) Controller() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Controller", reflect.TypeOf((*MockClusterAdmin)(nil).Controller))
}
// CreateACL mocks base method.
func (m *MockClusterAdmin) CreateACL(arg0 sarama.Resource, arg1 sarama.Acl) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateACL", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// CreateACL indicates an expected call of CreateACL.
func (mr *MockClusterAdminMockRecorder) CreateACL(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateACL", reflect.TypeOf((*MockClusterAdmin)(nil).CreateACL), arg0, arg1)
}
// CreateACLs mocks base method.
func (m *MockClusterAdmin) CreateACLs(arg0 []*sarama.ResourceAcls) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateACLs", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// CreateACLs indicates an expected call of CreateACLs.
func (mr *MockClusterAdminMockRecorder) CreateACLs(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateACLs", reflect.TypeOf((*MockClusterAdmin)(nil).CreateACLs), arg0)
}
// CreatePartitions mocks base method.
func (m *MockClusterAdmin) CreatePartitions(arg0 string, arg1 int32, arg2 [][]int32, arg3 bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreatePartitions", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// CreatePartitions indicates an expected call of CreatePartitions.
func (mr *MockClusterAdminMockRecorder) CreatePartitions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePartitions", reflect.TypeOf((*MockClusterAdmin)(nil).CreatePartitions), arg0, arg1, arg2, arg3)
}
// CreateTopic mocks base method.
func (m *MockClusterAdmin) CreateTopic(arg0 string, arg1 *sarama.TopicDetail, arg2 bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateTopic", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// CreateTopic indicates an expected call of CreateTopic.
func (mr *MockClusterAdminMockRecorder) CreateTopic(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTopic", reflect.TypeOf((*MockClusterAdmin)(nil).CreateTopic), arg0, arg1, arg2)
}
// DeleteACL mocks base method.
func (m *MockClusterAdmin) DeleteACL(arg0 sarama.AclFilter, arg1 bool) ([]sarama.MatchingAcl, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteACL", arg0, arg1)
ret0, _ := ret[0].([]sarama.MatchingAcl)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteACL indicates an expected call of DeleteACL.
func (mr *MockClusterAdminMockRecorder) DeleteACL(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteACL", reflect.TypeOf((*MockClusterAdmin)(nil).DeleteACL), arg0, arg1)
}
// DeleteConsumerGroup mocks base method.
func (m *MockClusterAdmin) DeleteConsumerGroup(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteConsumerGroup", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteConsumerGroup indicates an expected call of DeleteConsumerGroup.
func (mr *MockClusterAdminMockRecorder) DeleteConsumerGroup(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConsumerGroup", reflect.TypeOf((*MockClusterAdmin)(nil).DeleteConsumerGroup), arg0)
}
// DeleteConsumerGroupOffset mocks base method.
func (m *MockClusterAdmin) DeleteConsumerGroupOffset(arg0, arg1 string, arg2 int32) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteConsumerGroupOffset", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteConsumerGroupOffset indicates an expected call of DeleteConsumerGroupOffset.
func (mr *MockClusterAdminMockRecorder) DeleteConsumerGroupOffset(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConsumerGroupOffset", reflect.TypeOf((*MockClusterAdmin)(nil).DeleteConsumerGroupOffset), arg0, arg1, arg2)
}
// DeleteRecords mocks base method.
func (m *MockClusterAdmin) DeleteRecords(arg0 string, arg1 map[int32]int64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteRecords", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteRecords indicates an expected call of DeleteRecords.
func (mr *MockClusterAdminMockRecorder) DeleteRecords(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRecords", reflect.TypeOf((*MockClusterAdmin)(nil).DeleteRecords), arg0, arg1)
}
// DeleteTopic mocks base method.
func (m *MockClusterAdmin) DeleteTopic(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteTopic", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteTopic indicates an expected call of DeleteTopic.
func (mr *MockClusterAdminMockRecorder) DeleteTopic(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTopic", reflect.TypeOf((*MockClusterAdmin)(nil).DeleteTopic), arg0)
}
// DeleteUserScramCredentials mocks base method.
func (m *MockClusterAdmin) DeleteUserScramCredentials(arg0 []sarama.AlterUserScramCredentialsDelete) ([]*sarama.AlterUserScramCredentialsResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteUserScramCredentials", arg0)
ret0, _ := ret[0].([]*sarama.AlterUserScramCredentialsResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteUserScramCredentials indicates an expected call of DeleteUserScramCredentials.
func (mr *MockClusterAdminMockRecorder) DeleteUserScramCredentials(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteUserScramCredentials", reflect.TypeOf((*MockClusterAdmin)(nil).DeleteUserScramCredentials), arg0)
}
// DescribeClientQuotas mocks base method.
func (m *MockClusterAdmin) DescribeClientQuotas(arg0 []sarama.QuotaFilterComponent, arg1 bool) ([]sarama.DescribeClientQuotasEntry, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeClientQuotas", arg0, arg1)
ret0, _ := ret[0].([]sarama.DescribeClientQuotasEntry)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeClientQuotas indicates an expected call of DescribeClientQuotas.
func (mr *MockClusterAdminMockRecorder) DescribeClientQuotas(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeClientQuotas", reflect.TypeOf((*MockClusterAdmin)(nil).DescribeClientQuotas), arg0, arg1)
}
// DescribeCluster mocks base method.
func (m *MockClusterAdmin) DescribeCluster() ([]*sarama.Broker, int32, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeCluster")
ret0, _ := ret[0].([]*sarama.Broker)
ret1, _ := ret[1].(int32)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// DescribeCluster indicates an expected call of DescribeCluster.
func (mr *MockClusterAdminMockRecorder) DescribeCluster() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeCluster", reflect.TypeOf((*MockClusterAdmin)(nil).DescribeCluster))
}
// DescribeConfig mocks base method.
func (m *MockClusterAdmin) DescribeConfig(arg0 sarama.ConfigResource) ([]sarama.ConfigEntry, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeConfig", arg0)
ret0, _ := ret[0].([]sarama.ConfigEntry)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeConfig indicates an expected call of DescribeConfig.
func (mr *MockClusterAdminMockRecorder) DescribeConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConfig", reflect.TypeOf((*MockClusterAdmin)(nil).DescribeConfig), arg0)
}
// DescribeConsumerGroups mocks base method.
func (m *MockClusterAdmin) DescribeConsumerGroups(arg0 []string) ([]*sarama.GroupDescription, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeConsumerGroups", arg0)
ret0, _ := ret[0].([]*sarama.GroupDescription)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeConsumerGroups indicates an expected call of DescribeConsumerGroups.
func (mr *MockClusterAdminMockRecorder) DescribeConsumerGroups(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeConsumerGroups", reflect.TypeOf((*MockClusterAdmin)(nil).DescribeConsumerGroups), arg0)
}
// DescribeLogDirs mocks base method.
func (m *MockClusterAdmin) DescribeLogDirs(arg0 []int32) (map[int32][]sarama.DescribeLogDirsResponseDirMetadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeLogDirs", arg0)
ret0, _ := ret[0].(map[int32][]sarama.DescribeLogDirsResponseDirMetadata)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeLogDirs indicates an expected call of DescribeLogDirs.
func (mr *MockClusterAdminMockRecorder) DescribeLogDirs(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeLogDirs", reflect.TypeOf((*MockClusterAdmin)(nil).DescribeLogDirs), arg0)
}
// DescribeTopics mocks base method.
func (m *MockClusterAdmin) DescribeTopics(arg0 []string) ([]*sarama.TopicMetadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeTopics", arg0)
ret0, _ := ret[0].([]*sarama.TopicMetadata)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeTopics indicates an expected call of DescribeTopics.
func (mr *MockClusterAdminMockRecorder) DescribeTopics(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeTopics", reflect.TypeOf((*MockClusterAdmin)(nil).DescribeTopics), arg0)
}
// DescribeUserScramCredentials mocks base method.
func (m *MockClusterAdmin) DescribeUserScramCredentials(arg0 []string) ([]*sarama.DescribeUserScramCredentialsResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeUserScramCredentials", arg0)
ret0, _ := ret[0].([]*sarama.DescribeUserScramCredentialsResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeUserScramCredentials indicates an expected call of DescribeUserScramCredentials.
func (mr *MockClusterAdminMockRecorder) DescribeUserScramCredentials(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeUserScramCredentials", reflect.TypeOf((*MockClusterAdmin)(nil).DescribeUserScramCredentials), arg0)
}
// IncrementalAlterConfig mocks base method.
func (m *MockClusterAdmin) IncrementalAlterConfig(arg0 sarama.ConfigResourceType, arg1 string, arg2 map[string]sarama.IncrementalAlterConfigsEntry, arg3 bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IncrementalAlterConfig", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// IncrementalAlterConfig indicates an expected call of IncrementalAlterConfig.
func (mr *MockClusterAdminMockRecorder) IncrementalAlterConfig(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncrementalAlterConfig", reflect.TypeOf((*MockClusterAdmin)(nil).IncrementalAlterConfig), arg0, arg1, arg2, arg3)
}
// ListAcls mocks base method.
func (m *MockClusterAdmin) ListAcls(arg0 sarama.AclFilter) ([]sarama.ResourceAcls, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListAcls", arg0)
ret0, _ := ret[0].([]sarama.ResourceAcls)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListAcls indicates an expected call of ListAcls.
func (mr *MockClusterAdminMockRecorder) ListAcls(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAcls", reflect.TypeOf((*MockClusterAdmin)(nil).ListAcls), arg0)
}
// ListConsumerGroupOffsets mocks base method.
func (m *MockClusterAdmin) ListConsumerGroupOffsets(arg0 string, arg1 map[string][]int32) (*sarama.OffsetFetchResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListConsumerGroupOffsets", arg0, arg1)
ret0, _ := ret[0].(*sarama.OffsetFetchResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListConsumerGroupOffsets indicates an expected call of ListConsumerGroupOffsets.
func (mr *MockClusterAdminMockRecorder) ListConsumerGroupOffsets(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListConsumerGroupOffsets", reflect.TypeOf((*MockClusterAdmin)(nil).ListConsumerGroupOffsets), arg0, arg1)
}
// ListConsumerGroups mocks base method.
func (m *MockClusterAdmin) ListConsumerGroups() (map[string]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListConsumerGroups")
ret0, _ := ret[0].(map[string]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListConsumerGroups indicates an expected call of ListConsumerGroups.
func (mr *MockClusterAdminMockRecorder) ListConsumerGroups() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListConsumerGroups", reflect.TypeOf((*MockClusterAdmin)(nil).ListConsumerGroups))
}
// ListPartitionReassignments mocks base method.
func (m *MockClusterAdmin) ListPartitionReassignments(arg0 string, arg1 []int32) (map[string]map[int32]*sarama.PartitionReplicaReassignmentsStatus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListPartitionReassignments", arg0, arg1)
ret0, _ := ret[0].(map[string]map[int32]*sarama.PartitionReplicaReassignmentsStatus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListPartitionReassignments indicates an expected call of ListPartitionReassignments.
func (mr *MockClusterAdminMockRecorder) ListPartitionReassignments(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPartitionReassignments", reflect.TypeOf((*MockClusterAdmin)(nil).ListPartitionReassignments), arg0, arg1)
}
// ListTopics mocks base method.
func (m *MockClusterAdmin) ListTopics() (map[string]sarama.TopicDetail, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListTopics")
ret0, _ := ret[0].(map[string]sarama.TopicDetail)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListTopics indicates an expected call of ListTopics.
func (mr *MockClusterAdminMockRecorder) ListTopics() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTopics", reflect.TypeOf((*MockClusterAdmin)(nil).ListTopics))
}
// RemoveMemberFromConsumerGroup mocks base method.
func (m *MockClusterAdmin) RemoveMemberFromConsumerGroup(arg0 string, arg1 []string) (*sarama.LeaveGroupResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveMemberFromConsumerGroup", arg0, arg1)
ret0, _ := ret[0].(*sarama.LeaveGroupResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RemoveMemberFromConsumerGroup indicates an expected call of RemoveMemberFromConsumerGroup.
func (mr *MockClusterAdminMockRecorder) RemoveMemberFromConsumerGroup(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveMemberFromConsumerGroup", reflect.TypeOf((*MockClusterAdmin)(nil).RemoveMemberFromConsumerGroup), arg0, arg1)
}
// UpsertUserScramCredentials mocks base method.
func (m *MockClusterAdmin) UpsertUserScramCredentials(arg0 []sarama.AlterUserScramCredentialsUpsert) ([]*sarama.AlterUserScramCredentialsResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpsertUserScramCredentials", arg0)
ret0, _ := ret[0].([]*sarama.AlterUserScramCredentialsResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpsertUserScramCredentials indicates an expected call of UpsertUserScramCredentials.
func (mr *MockClusterAdminMockRecorder) UpsertUserScramCredentials(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertUserScramCredentials", reflect.TypeOf((*MockClusterAdmin)(nil).UpsertUserScramCredentials), arg0)
}