-
Notifications
You must be signed in to change notification settings - Fork 342
/
graveler.go
2885 lines (2470 loc) · 119 KB
/
graveler.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: graveler.go
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
graveler "github.com/treeverse/lakefs/pkg/graveler"
)
// MockKeyValueStore is a mock of KeyValueStore interface.
type MockKeyValueStore struct {
ctrl *gomock.Controller
recorder *MockKeyValueStoreMockRecorder
}
// MockKeyValueStoreMockRecorder is the mock recorder for MockKeyValueStore.
type MockKeyValueStoreMockRecorder struct {
mock *MockKeyValueStore
}
// NewMockKeyValueStore creates a new mock instance.
func NewMockKeyValueStore(ctrl *gomock.Controller) *MockKeyValueStore {
mock := &MockKeyValueStore{ctrl: ctrl}
mock.recorder = &MockKeyValueStoreMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockKeyValueStore) EXPECT() *MockKeyValueStoreMockRecorder {
return m.recorder
}
// Delete mocks base method.
func (m *MockKeyValueStore) Delete(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, key graveler.Key) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", ctx, repository, branchID, key)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete.
func (mr *MockKeyValueStoreMockRecorder) Delete(ctx, repository, branchID, key interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockKeyValueStore)(nil).Delete), ctx, repository, branchID, key)
}
// DeleteBatch mocks base method.
func (m *MockKeyValueStore) DeleteBatch(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, keys []graveler.Key) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBatch", ctx, repository, branchID, keys)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteBatch indicates an expected call of DeleteBatch.
func (mr *MockKeyValueStoreMockRecorder) DeleteBatch(ctx, repository, branchID, keys interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBatch", reflect.TypeOf((*MockKeyValueStore)(nil).DeleteBatch), ctx, repository, branchID, keys)
}
// Get mocks base method.
func (m *MockKeyValueStore) Get(ctx context.Context, repository *graveler.RepositoryRecord, ref graveler.Ref, key graveler.Key, opts ...graveler.GetOptionsFunc) (*graveler.Value, error) {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, repository, ref, key}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Get", varargs...)
ret0, _ := ret[0].(*graveler.Value)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockKeyValueStoreMockRecorder) Get(ctx, repository, ref, key interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, repository, ref, key}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockKeyValueStore)(nil).Get), varargs...)
}
// GetByCommitID mocks base method.
func (m *MockKeyValueStore) GetByCommitID(ctx context.Context, repository *graveler.RepositoryRecord, commitID graveler.CommitID, key graveler.Key) (*graveler.Value, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetByCommitID", ctx, repository, commitID, key)
ret0, _ := ret[0].(*graveler.Value)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetByCommitID indicates an expected call of GetByCommitID.
func (mr *MockKeyValueStoreMockRecorder) GetByCommitID(ctx, repository, commitID, key interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByCommitID", reflect.TypeOf((*MockKeyValueStore)(nil).GetByCommitID), ctx, repository, commitID, key)
}
// GetRangeIDByKey mocks base method.
func (m *MockKeyValueStore) GetRangeIDByKey(ctx context.Context, repository *graveler.RepositoryRecord, commitID graveler.CommitID, key graveler.Key) (graveler.RangeID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRangeIDByKey", ctx, repository, commitID, key)
ret0, _ := ret[0].(graveler.RangeID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRangeIDByKey indicates an expected call of GetRangeIDByKey.
func (mr *MockKeyValueStoreMockRecorder) GetRangeIDByKey(ctx, repository, commitID, key interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRangeIDByKey", reflect.TypeOf((*MockKeyValueStore)(nil).GetRangeIDByKey), ctx, repository, commitID, key)
}
// List mocks base method.
func (m *MockKeyValueStore) List(ctx context.Context, repository *graveler.RepositoryRecord, ref graveler.Ref, batchSize int) (graveler.ValueIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", ctx, repository, ref, batchSize)
ret0, _ := ret[0].(graveler.ValueIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List.
func (mr *MockKeyValueStoreMockRecorder) List(ctx, repository, ref, batchSize interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockKeyValueStore)(nil).List), ctx, repository, ref, batchSize)
}
// ListStaging mocks base method.
func (m *MockKeyValueStore) ListStaging(ctx context.Context, branch *graveler.Branch, batchSize int) (graveler.ValueIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListStaging", ctx, branch, batchSize)
ret0, _ := ret[0].(graveler.ValueIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListStaging indicates an expected call of ListStaging.
func (mr *MockKeyValueStoreMockRecorder) ListStaging(ctx, branch, batchSize interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListStaging", reflect.TypeOf((*MockKeyValueStore)(nil).ListStaging), ctx, branch, batchSize)
}
// Set mocks base method.
func (m *MockKeyValueStore) Set(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, key graveler.Key, value graveler.Value, opts ...graveler.SetOptionsFunc) error {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, repository, branchID, key, value}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Set", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// Set indicates an expected call of Set.
func (mr *MockKeyValueStoreMockRecorder) Set(ctx, repository, branchID, key, value interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, repository, branchID, key, value}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockKeyValueStore)(nil).Set), varargs...)
}
// MockVersionController is a mock of VersionController interface.
type MockVersionController struct {
ctrl *gomock.Controller
recorder *MockVersionControllerMockRecorder
}
// MockVersionControllerMockRecorder is the mock recorder for MockVersionController.
type MockVersionControllerMockRecorder struct {
mock *MockVersionController
}
// NewMockVersionController creates a new mock instance.
func NewMockVersionController(ctrl *gomock.Controller) *MockVersionController {
mock := &MockVersionController{ctrl: ctrl}
mock.recorder = &MockVersionControllerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockVersionController) EXPECT() *MockVersionControllerMockRecorder {
return m.recorder
}
// AddCommit mocks base method.
func (m *MockVersionController) AddCommit(ctx context.Context, repository *graveler.RepositoryRecord, commit graveler.Commit) (graveler.CommitID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddCommit", ctx, repository, commit)
ret0, _ := ret[0].(graveler.CommitID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AddCommit indicates an expected call of AddCommit.
func (mr *MockVersionControllerMockRecorder) AddCommit(ctx, repository, commit interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddCommit", reflect.TypeOf((*MockVersionController)(nil).AddCommit), ctx, repository, commit)
}
// CherryPick mocks base method.
func (m *MockVersionController) CherryPick(ctx context.Context, repository *graveler.RepositoryRecord, id graveler.BranchID, reference graveler.Ref, number *int, committer string) (graveler.CommitID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CherryPick", ctx, repository, id, reference, number, committer)
ret0, _ := ret[0].(graveler.CommitID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CherryPick indicates an expected call of CherryPick.
func (mr *MockVersionControllerMockRecorder) CherryPick(ctx, repository, id, reference, number, committer interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CherryPick", reflect.TypeOf((*MockVersionController)(nil).CherryPick), ctx, repository, id, reference, number, committer)
}
// Commit mocks base method.
func (m *MockVersionController) Commit(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, commitParams graveler.CommitParams) (graveler.CommitID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Commit", ctx, repository, branchID, commitParams)
ret0, _ := ret[0].(graveler.CommitID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Commit indicates an expected call of Commit.
func (mr *MockVersionControllerMockRecorder) Commit(ctx, repository, branchID, commitParams interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockVersionController)(nil).Commit), ctx, repository, branchID, commitParams)
}
// Compare mocks base method.
func (m *MockVersionController) Compare(ctx context.Context, repository *graveler.RepositoryRecord, left, right graveler.Ref) (graveler.DiffIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Compare", ctx, repository, left, right)
ret0, _ := ret[0].(graveler.DiffIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Compare indicates an expected call of Compare.
func (mr *MockVersionControllerMockRecorder) Compare(ctx, repository, left, right interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Compare", reflect.TypeOf((*MockVersionController)(nil).Compare), ctx, repository, left, right)
}
// CreateBareRepository mocks base method.
func (m *MockVersionController) CreateBareRepository(ctx context.Context, repositoryID graveler.RepositoryID, storageNamespace graveler.StorageNamespace, defaultBranchID graveler.BranchID) (*graveler.RepositoryRecord, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateBareRepository", ctx, repositoryID, storageNamespace, defaultBranchID)
ret0, _ := ret[0].(*graveler.RepositoryRecord)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateBareRepository indicates an expected call of CreateBareRepository.
func (mr *MockVersionControllerMockRecorder) CreateBareRepository(ctx, repositoryID, storageNamespace, defaultBranchID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBareRepository", reflect.TypeOf((*MockVersionController)(nil).CreateBareRepository), ctx, repositoryID, storageNamespace, defaultBranchID)
}
// CreateBranch mocks base method.
func (m *MockVersionController) CreateBranch(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, ref graveler.Ref) (*graveler.Branch, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateBranch", ctx, repository, branchID, ref)
ret0, _ := ret[0].(*graveler.Branch)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateBranch indicates an expected call of CreateBranch.
func (mr *MockVersionControllerMockRecorder) CreateBranch(ctx, repository, branchID, ref interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBranch", reflect.TypeOf((*MockVersionController)(nil).CreateBranch), ctx, repository, branchID, ref)
}
// CreateBranchProtectionRule mocks base method.
func (m *MockVersionController) CreateBranchProtectionRule(ctx context.Context, repository *graveler.RepositoryRecord, pattern string, blockedActions []graveler.BranchProtectionBlockedAction) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateBranchProtectionRule", ctx, repository, pattern, blockedActions)
ret0, _ := ret[0].(error)
return ret0
}
// CreateBranchProtectionRule indicates an expected call of CreateBranchProtectionRule.
func (mr *MockVersionControllerMockRecorder) CreateBranchProtectionRule(ctx, repository, pattern, blockedActions interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBranchProtectionRule", reflect.TypeOf((*MockVersionController)(nil).CreateBranchProtectionRule), ctx, repository, pattern, blockedActions)
}
// CreateRepository mocks base method.
func (m *MockVersionController) CreateRepository(ctx context.Context, repositoryID graveler.RepositoryID, storageNamespace graveler.StorageNamespace, branchID graveler.BranchID) (*graveler.RepositoryRecord, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateRepository", ctx, repositoryID, storageNamespace, branchID)
ret0, _ := ret[0].(*graveler.RepositoryRecord)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateRepository indicates an expected call of CreateRepository.
func (mr *MockVersionControllerMockRecorder) CreateRepository(ctx, repositoryID, storageNamespace, branchID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRepository", reflect.TypeOf((*MockVersionController)(nil).CreateRepository), ctx, repositoryID, storageNamespace, branchID)
}
// CreateTag mocks base method.
func (m *MockVersionController) CreateTag(ctx context.Context, repository *graveler.RepositoryRecord, tagID graveler.TagID, commitID graveler.CommitID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateTag", ctx, repository, tagID, commitID)
ret0, _ := ret[0].(error)
return ret0
}
// CreateTag indicates an expected call of CreateTag.
func (mr *MockVersionControllerMockRecorder) CreateTag(ctx, repository, tagID, commitID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateTag", reflect.TypeOf((*MockVersionController)(nil).CreateTag), ctx, repository, tagID, commitID)
}
// DeleteBranch mocks base method.
func (m *MockVersionController) DeleteBranch(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBranch", ctx, repository, branchID)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteBranch indicates an expected call of DeleteBranch.
func (mr *MockVersionControllerMockRecorder) DeleteBranch(ctx, repository, branchID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBranch", reflect.TypeOf((*MockVersionController)(nil).DeleteBranch), ctx, repository, branchID)
}
// DeleteBranchProtectionRule mocks base method.
func (m *MockVersionController) DeleteBranchProtectionRule(ctx context.Context, repository *graveler.RepositoryRecord, pattern string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBranchProtectionRule", ctx, repository, pattern)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteBranchProtectionRule indicates an expected call of DeleteBranchProtectionRule.
func (mr *MockVersionControllerMockRecorder) DeleteBranchProtectionRule(ctx, repository, pattern interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBranchProtectionRule", reflect.TypeOf((*MockVersionController)(nil).DeleteBranchProtectionRule), ctx, repository, pattern)
}
// DeleteExpiredLinkAddresses mocks base method.
func (m *MockVersionController) DeleteExpiredLinkAddresses(ctx context.Context, repository *graveler.RepositoryRecord) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteExpiredLinkAddresses", ctx, repository)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteExpiredLinkAddresses indicates an expected call of DeleteExpiredLinkAddresses.
func (mr *MockVersionControllerMockRecorder) DeleteExpiredLinkAddresses(ctx, repository interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteExpiredLinkAddresses", reflect.TypeOf((*MockVersionController)(nil).DeleteExpiredLinkAddresses), ctx, repository)
}
// DeleteRepository mocks base method.
func (m *MockVersionController) DeleteRepository(ctx context.Context, repositoryID graveler.RepositoryID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteRepository", ctx, repositoryID)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteRepository indicates an expected call of DeleteRepository.
func (mr *MockVersionControllerMockRecorder) DeleteRepository(ctx, repositoryID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRepository", reflect.TypeOf((*MockVersionController)(nil).DeleteRepository), ctx, repositoryID)
}
// DeleteTag mocks base method.
func (m *MockVersionController) DeleteTag(ctx context.Context, repository *graveler.RepositoryRecord, tagID graveler.TagID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteTag", ctx, repository, tagID)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteTag indicates an expected call of DeleteTag.
func (mr *MockVersionControllerMockRecorder) DeleteTag(ctx, repository, tagID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTag", reflect.TypeOf((*MockVersionController)(nil).DeleteTag), ctx, repository, tagID)
}
// Dereference mocks base method.
func (m *MockVersionController) Dereference(ctx context.Context, repository *graveler.RepositoryRecord, ref graveler.Ref) (*graveler.ResolvedRef, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Dereference", ctx, repository, ref)
ret0, _ := ret[0].(*graveler.ResolvedRef)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Dereference indicates an expected call of Dereference.
func (mr *MockVersionControllerMockRecorder) Dereference(ctx, repository, ref interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dereference", reflect.TypeOf((*MockVersionController)(nil).Dereference), ctx, repository, ref)
}
// Diff mocks base method.
func (m *MockVersionController) Diff(ctx context.Context, repository *graveler.RepositoryRecord, left, right graveler.Ref) (graveler.DiffIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Diff", ctx, repository, left, right)
ret0, _ := ret[0].(graveler.DiffIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Diff indicates an expected call of Diff.
func (mr *MockVersionControllerMockRecorder) Diff(ctx, repository, left, right interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Diff", reflect.TypeOf((*MockVersionController)(nil).Diff), ctx, repository, left, right)
}
// DiffUncommitted mocks base method.
func (m *MockVersionController) DiffUncommitted(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID) (graveler.DiffIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DiffUncommitted", ctx, repository, branchID)
ret0, _ := ret[0].(graveler.DiffIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DiffUncommitted indicates an expected call of DiffUncommitted.
func (mr *MockVersionControllerMockRecorder) DiffUncommitted(ctx, repository, branchID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiffUncommitted", reflect.TypeOf((*MockVersionController)(nil).DiffUncommitted), ctx, repository, branchID)
}
// FindMergeBase mocks base method.
func (m *MockVersionController) FindMergeBase(ctx context.Context, repository *graveler.RepositoryRecord, from, to graveler.Ref) (*graveler.CommitRecord, *graveler.CommitRecord, *graveler.Commit, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindMergeBase", ctx, repository, from, to)
ret0, _ := ret[0].(*graveler.CommitRecord)
ret1, _ := ret[1].(*graveler.CommitRecord)
ret2, _ := ret[2].(*graveler.Commit)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// FindMergeBase indicates an expected call of FindMergeBase.
func (mr *MockVersionControllerMockRecorder) FindMergeBase(ctx, repository, from, to interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindMergeBase", reflect.TypeOf((*MockVersionController)(nil).FindMergeBase), ctx, repository, from, to)
}
// GCGetUncommittedLocation mocks base method.
func (m *MockVersionController) GCGetUncommittedLocation(repository *graveler.RepositoryRecord, runID string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GCGetUncommittedLocation", repository, runID)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GCGetUncommittedLocation indicates an expected call of GCGetUncommittedLocation.
func (mr *MockVersionControllerMockRecorder) GCGetUncommittedLocation(repository, runID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GCGetUncommittedLocation", reflect.TypeOf((*MockVersionController)(nil).GCGetUncommittedLocation), repository, runID)
}
// GCNewRunID mocks base method.
func (m *MockVersionController) GCNewRunID() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GCNewRunID")
ret0, _ := ret[0].(string)
return ret0
}
// GCNewRunID indicates an expected call of GCNewRunID.
func (mr *MockVersionControllerMockRecorder) GCNewRunID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GCNewRunID", reflect.TypeOf((*MockVersionController)(nil).GCNewRunID))
}
// GetBranch mocks base method.
func (m *MockVersionController) GetBranch(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID) (*graveler.Branch, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBranch", ctx, repository, branchID)
ret0, _ := ret[0].(*graveler.Branch)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBranch indicates an expected call of GetBranch.
func (mr *MockVersionControllerMockRecorder) GetBranch(ctx, repository, branchID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBranch", reflect.TypeOf((*MockVersionController)(nil).GetBranch), ctx, repository, branchID)
}
// GetBranchProtectionRules mocks base method.
func (m *MockVersionController) GetBranchProtectionRules(ctx context.Context, repository *graveler.RepositoryRecord) (*graveler.BranchProtectionRules, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBranchProtectionRules", ctx, repository)
ret0, _ := ret[0].(*graveler.BranchProtectionRules)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBranchProtectionRules indicates an expected call of GetBranchProtectionRules.
func (mr *MockVersionControllerMockRecorder) GetBranchProtectionRules(ctx, repository interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBranchProtectionRules", reflect.TypeOf((*MockVersionController)(nil).GetBranchProtectionRules), ctx, repository)
}
// GetCommit mocks base method.
func (m *MockVersionController) GetCommit(ctx context.Context, repository *graveler.RepositoryRecord, commitID graveler.CommitID) (*graveler.Commit, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCommit", ctx, repository, commitID)
ret0, _ := ret[0].(*graveler.Commit)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetCommit indicates an expected call of GetCommit.
func (mr *MockVersionControllerMockRecorder) GetCommit(ctx, repository, commitID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCommit", reflect.TypeOf((*MockVersionController)(nil).GetCommit), ctx, repository, commitID)
}
// GetGarbageCollectionRules mocks base method.
func (m *MockVersionController) GetGarbageCollectionRules(ctx context.Context, repository *graveler.RepositoryRecord) (*graveler.GarbageCollectionRules, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetGarbageCollectionRules", ctx, repository)
ret0, _ := ret[0].(*graveler.GarbageCollectionRules)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetGarbageCollectionRules indicates an expected call of GetGarbageCollectionRules.
func (mr *MockVersionControllerMockRecorder) GetGarbageCollectionRules(ctx, repository interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGarbageCollectionRules", reflect.TypeOf((*MockVersionController)(nil).GetGarbageCollectionRules), ctx, repository)
}
// GetRepository mocks base method.
func (m *MockVersionController) GetRepository(ctx context.Context, repositoryID graveler.RepositoryID) (*graveler.RepositoryRecord, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRepository", ctx, repositoryID)
ret0, _ := ret[0].(*graveler.RepositoryRecord)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRepository indicates an expected call of GetRepository.
func (mr *MockVersionControllerMockRecorder) GetRepository(ctx, repositoryID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRepository", reflect.TypeOf((*MockVersionController)(nil).GetRepository), ctx, repositoryID)
}
// GetStagingToken mocks base method.
func (m *MockVersionController) GetStagingToken(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID) (*graveler.StagingToken, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStagingToken", ctx, repository, branchID)
ret0, _ := ret[0].(*graveler.StagingToken)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetStagingToken indicates an expected call of GetStagingToken.
func (mr *MockVersionControllerMockRecorder) GetStagingToken(ctx, repository, branchID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStagingToken", reflect.TypeOf((*MockVersionController)(nil).GetStagingToken), ctx, repository, branchID)
}
// GetTag mocks base method.
func (m *MockVersionController) GetTag(ctx context.Context, repository *graveler.RepositoryRecord, tagID graveler.TagID) (*graveler.CommitID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTag", ctx, repository, tagID)
ret0, _ := ret[0].(*graveler.CommitID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTag indicates an expected call of GetTag.
func (mr *MockVersionControllerMockRecorder) GetTag(ctx, repository, tagID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTag", reflect.TypeOf((*MockVersionController)(nil).GetTag), ctx, repository, tagID)
}
// IsLinkAddressExpired mocks base method.
func (m *MockVersionController) IsLinkAddressExpired(token *graveler.LinkAddressData) (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsLinkAddressExpired", token)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// IsLinkAddressExpired indicates an expected call of IsLinkAddressExpired.
func (mr *MockVersionControllerMockRecorder) IsLinkAddressExpired(token interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsLinkAddressExpired", reflect.TypeOf((*MockVersionController)(nil).IsLinkAddressExpired), token)
}
// ListBranches mocks base method.
func (m *MockVersionController) ListBranches(ctx context.Context, repository *graveler.RepositoryRecord) (graveler.BranchIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListBranches", ctx, repository)
ret0, _ := ret[0].(graveler.BranchIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListBranches indicates an expected call of ListBranches.
func (mr *MockVersionControllerMockRecorder) ListBranches(ctx, repository interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBranches", reflect.TypeOf((*MockVersionController)(nil).ListBranches), ctx, repository)
}
// ListLinkAddresses mocks base method.
func (m *MockVersionController) ListLinkAddresses(ctx context.Context, repository *graveler.RepositoryRecord) (graveler.AddressTokenIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListLinkAddresses", ctx, repository)
ret0, _ := ret[0].(graveler.AddressTokenIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListLinkAddresses indicates an expected call of ListLinkAddresses.
func (mr *MockVersionControllerMockRecorder) ListLinkAddresses(ctx, repository interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListLinkAddresses", reflect.TypeOf((*MockVersionController)(nil).ListLinkAddresses), ctx, repository)
}
// ListRepositories mocks base method.
func (m *MockVersionController) ListRepositories(ctx context.Context) (graveler.RepositoryIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListRepositories", ctx)
ret0, _ := ret[0].(graveler.RepositoryIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListRepositories indicates an expected call of ListRepositories.
func (mr *MockVersionControllerMockRecorder) ListRepositories(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRepositories", reflect.TypeOf((*MockVersionController)(nil).ListRepositories), ctx)
}
// ListTags mocks base method.
func (m *MockVersionController) ListTags(ctx context.Context, repository *graveler.RepositoryRecord) (graveler.TagIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListTags", ctx, repository)
ret0, _ := ret[0].(graveler.TagIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListTags indicates an expected call of ListTags.
func (mr *MockVersionControllerMockRecorder) ListTags(ctx, repository interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTags", reflect.TypeOf((*MockVersionController)(nil).ListTags), ctx, repository)
}
// Log mocks base method.
func (m *MockVersionController) Log(ctx context.Context, repository *graveler.RepositoryRecord, commitID graveler.CommitID) (graveler.CommitIterator, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Log", ctx, repository, commitID)
ret0, _ := ret[0].(graveler.CommitIterator)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Log indicates an expected call of Log.
func (mr *MockVersionControllerMockRecorder) Log(ctx, repository, commitID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Log", reflect.TypeOf((*MockVersionController)(nil).Log), ctx, repository, commitID)
}
// Merge mocks base method.
func (m *MockVersionController) Merge(ctx context.Context, repository *graveler.RepositoryRecord, destination graveler.BranchID, source graveler.Ref, commitParams graveler.CommitParams, strategy string) (graveler.CommitID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Merge", ctx, repository, destination, source, commitParams, strategy)
ret0, _ := ret[0].(graveler.CommitID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Merge indicates an expected call of Merge.
func (mr *MockVersionControllerMockRecorder) Merge(ctx, repository, destination, source, commitParams, strategy interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Merge", reflect.TypeOf((*MockVersionController)(nil).Merge), ctx, repository, destination, source, commitParams, strategy)
}
// ParseRef mocks base method.
func (m *MockVersionController) ParseRef(ref graveler.Ref) (graveler.RawRef, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ParseRef", ref)
ret0, _ := ret[0].(graveler.RawRef)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ParseRef indicates an expected call of ParseRef.
func (mr *MockVersionControllerMockRecorder) ParseRef(ref interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParseRef", reflect.TypeOf((*MockVersionController)(nil).ParseRef), ref)
}
// Reset mocks base method.
func (m *MockVersionController) Reset(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Reset", ctx, repository, branchID)
ret0, _ := ret[0].(error)
return ret0
}
// Reset indicates an expected call of Reset.
func (mr *MockVersionControllerMockRecorder) Reset(ctx, repository, branchID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockVersionController)(nil).Reset), ctx, repository, branchID)
}
// ResetKey mocks base method.
func (m *MockVersionController) ResetKey(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, key graveler.Key) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResetKey", ctx, repository, branchID, key)
ret0, _ := ret[0].(error)
return ret0
}
// ResetKey indicates an expected call of ResetKey.
func (mr *MockVersionControllerMockRecorder) ResetKey(ctx, repository, branchID, key interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetKey", reflect.TypeOf((*MockVersionController)(nil).ResetKey), ctx, repository, branchID, key)
}
// ResetPrefix mocks base method.
func (m *MockVersionController) ResetPrefix(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, key graveler.Key) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResetPrefix", ctx, repository, branchID, key)
ret0, _ := ret[0].(error)
return ret0
}
// ResetPrefix indicates an expected call of ResetPrefix.
func (mr *MockVersionControllerMockRecorder) ResetPrefix(ctx, repository, branchID, key interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetPrefix", reflect.TypeOf((*MockVersionController)(nil).ResetPrefix), ctx, repository, branchID, key)
}
// ResolveRawRef mocks base method.
func (m *MockVersionController) ResolveRawRef(ctx context.Context, repository *graveler.RepositoryRecord, rawRef graveler.RawRef) (*graveler.ResolvedRef, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResolveRawRef", ctx, repository, rawRef)
ret0, _ := ret[0].(*graveler.ResolvedRef)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ResolveRawRef indicates an expected call of ResolveRawRef.
func (mr *MockVersionControllerMockRecorder) ResolveRawRef(ctx, repository, rawRef interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResolveRawRef", reflect.TypeOf((*MockVersionController)(nil).ResolveRawRef), ctx, repository, rawRef)
}
// Revert mocks base method.
func (m *MockVersionController) Revert(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, ref graveler.Ref, parentNumber int, commitParams graveler.CommitParams) (graveler.CommitID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Revert", ctx, repository, branchID, ref, parentNumber, commitParams)
ret0, _ := ret[0].(graveler.CommitID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Revert indicates an expected call of Revert.
func (mr *MockVersionControllerMockRecorder) Revert(ctx, repository, branchID, ref, parentNumber, commitParams interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Revert", reflect.TypeOf((*MockVersionController)(nil).Revert), ctx, repository, branchID, ref, parentNumber, commitParams)
}
// SaveGarbageCollectionCommits mocks base method.
func (m *MockVersionController) SaveGarbageCollectionCommits(ctx context.Context, repository *graveler.RepositoryRecord, previousRunID string) (*graveler.GarbageCollectionRunMetadata, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveGarbageCollectionCommits", ctx, repository, previousRunID)
ret0, _ := ret[0].(*graveler.GarbageCollectionRunMetadata)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SaveGarbageCollectionCommits indicates an expected call of SaveGarbageCollectionCommits.
func (mr *MockVersionControllerMockRecorder) SaveGarbageCollectionCommits(ctx, repository, previousRunID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveGarbageCollectionCommits", reflect.TypeOf((*MockVersionController)(nil).SaveGarbageCollectionCommits), ctx, repository, previousRunID)
}
// SetGarbageCollectionRules mocks base method.
func (m *MockVersionController) SetGarbageCollectionRules(ctx context.Context, repository *graveler.RepositoryRecord, rules *graveler.GarbageCollectionRules) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetGarbageCollectionRules", ctx, repository, rules)
ret0, _ := ret[0].(error)
return ret0
}
// SetGarbageCollectionRules indicates an expected call of SetGarbageCollectionRules.
func (mr *MockVersionControllerMockRecorder) SetGarbageCollectionRules(ctx, repository, rules interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetGarbageCollectionRules", reflect.TypeOf((*MockVersionController)(nil).SetGarbageCollectionRules), ctx, repository, rules)
}
// SetHooksHandler mocks base method.
func (m *MockVersionController) SetHooksHandler(handler graveler.HooksHandler) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetHooksHandler", handler)
}
// SetHooksHandler indicates an expected call of SetHooksHandler.
func (mr *MockVersionControllerMockRecorder) SetHooksHandler(handler interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHooksHandler", reflect.TypeOf((*MockVersionController)(nil).SetHooksHandler), handler)
}
// SetLinkAddress mocks base method.
func (m *MockVersionController) SetLinkAddress(ctx context.Context, repository *graveler.RepositoryRecord, token string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetLinkAddress", ctx, repository, token)
ret0, _ := ret[0].(error)
return ret0
}
// SetLinkAddress indicates an expected call of SetLinkAddress.
func (mr *MockVersionControllerMockRecorder) SetLinkAddress(ctx, repository, token interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLinkAddress", reflect.TypeOf((*MockVersionController)(nil).SetLinkAddress), ctx, repository, token)
}
// UpdateBranch mocks base method.
func (m *MockVersionController) UpdateBranch(ctx context.Context, repository *graveler.RepositoryRecord, branchID graveler.BranchID, ref graveler.Ref) (*graveler.Branch, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateBranch", ctx, repository, branchID, ref)
ret0, _ := ret[0].(*graveler.Branch)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateBranch indicates an expected call of UpdateBranch.
func (mr *MockVersionControllerMockRecorder) UpdateBranch(ctx, repository, branchID, ref interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBranch", reflect.TypeOf((*MockVersionController)(nil).UpdateBranch), ctx, repository, branchID, ref)
}
// VerifyLinkAddress mocks base method.
func (m *MockVersionController) VerifyLinkAddress(ctx context.Context, repository *graveler.RepositoryRecord, token string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyLinkAddress", ctx, repository, token)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyLinkAddress indicates an expected call of VerifyLinkAddress.
func (mr *MockVersionControllerMockRecorder) VerifyLinkAddress(ctx, repository, token interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyLinkAddress", reflect.TypeOf((*MockVersionController)(nil).VerifyLinkAddress), ctx, repository, token)
}
// WriteMetaRangeByIterator mocks base method.
func (m *MockVersionController) WriteMetaRangeByIterator(ctx context.Context, repository *graveler.RepositoryRecord, it graveler.ValueIterator) (*graveler.MetaRangeID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteMetaRangeByIterator", ctx, repository, it)
ret0, _ := ret[0].(*graveler.MetaRangeID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// WriteMetaRangeByIterator indicates an expected call of WriteMetaRangeByIterator.
func (mr *MockVersionControllerMockRecorder) WriteMetaRangeByIterator(ctx, repository, it interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteMetaRangeByIterator", reflect.TypeOf((*MockVersionController)(nil).WriteMetaRangeByIterator), ctx, repository, it)
}
// MockPlumbing is a mock of Plumbing interface.
type MockPlumbing struct {
ctrl *gomock.Controller
recorder *MockPlumbingMockRecorder
}
// MockPlumbingMockRecorder is the mock recorder for MockPlumbing.
type MockPlumbingMockRecorder struct {
mock *MockPlumbing
}
// NewMockPlumbing creates a new mock instance.
func NewMockPlumbing(ctrl *gomock.Controller) *MockPlumbing {
mock := &MockPlumbing{ctrl: ctrl}
mock.recorder = &MockPlumbingMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPlumbing) EXPECT() *MockPlumbingMockRecorder {
return m.recorder
}
// GetMetaRange mocks base method.
func (m *MockPlumbing) GetMetaRange(ctx context.Context, repository *graveler.RepositoryRecord, metaRangeID graveler.MetaRangeID) (graveler.MetaRangeAddress, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMetaRange", ctx, repository, metaRangeID)
ret0, _ := ret[0].(graveler.MetaRangeAddress)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMetaRange indicates an expected call of GetMetaRange.
func (mr *MockPlumbingMockRecorder) GetMetaRange(ctx, repository, metaRangeID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMetaRange", reflect.TypeOf((*MockPlumbing)(nil).GetMetaRange), ctx, repository, metaRangeID)
}
// GetRange mocks base method.
func (m *MockPlumbing) GetRange(ctx context.Context, repository *graveler.RepositoryRecord, rangeID graveler.RangeID) (graveler.RangeAddress, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRange", ctx, repository, rangeID)
ret0, _ := ret[0].(graveler.RangeAddress)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRange indicates an expected call of GetRange.
func (mr *MockPlumbingMockRecorder) GetRange(ctx, repository, rangeID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRange", reflect.TypeOf((*MockPlumbing)(nil).GetRange), ctx, repository, rangeID)
}
// StageObject mocks base method.
func (m *MockPlumbing) StageObject(ctx context.Context, stagingToken string, object graveler.ValueRecord) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "StageObject", ctx, stagingToken, object)
ret0, _ := ret[0].(error)
return ret0
}
// StageObject indicates an expected call of StageObject.
func (mr *MockPlumbingMockRecorder) StageObject(ctx, stagingToken, object interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StageObject", reflect.TypeOf((*MockPlumbing)(nil).StageObject), ctx, stagingToken, object)
}
// UpdateBranchToken mocks base method.
func (m *MockPlumbing) UpdateBranchToken(ctx context.Context, repository *graveler.RepositoryRecord, branchID, stagingToken string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateBranchToken", ctx, repository, branchID, stagingToken)
ret0, _ := ret[0].(error)
return ret0
}
// UpdateBranchToken indicates an expected call of UpdateBranchToken.
func (mr *MockPlumbingMockRecorder) UpdateBranchToken(ctx, repository, branchID, stagingToken interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBranchToken", reflect.TypeOf((*MockPlumbing)(nil).UpdateBranchToken), ctx, repository, branchID, stagingToken)
}
// WriteMetaRange mocks base method.
func (m *MockPlumbing) WriteMetaRange(ctx context.Context, repository *graveler.RepositoryRecord, ranges []*graveler.RangeInfo) (*graveler.MetaRangeInfo, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteMetaRange", ctx, repository, ranges)
ret0, _ := ret[0].(*graveler.MetaRangeInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// WriteMetaRange indicates an expected call of WriteMetaRange.
func (mr *MockPlumbingMockRecorder) WriteMetaRange(ctx, repository, ranges interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteMetaRange", reflect.TypeOf((*MockPlumbing)(nil).WriteMetaRange), ctx, repository, ranges)
}
// WriteRange mocks base method.
func (m *MockPlumbing) WriteRange(ctx context.Context, repository *graveler.RepositoryRecord, it graveler.ValueIterator) (*graveler.RangeInfo, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WriteRange", ctx, repository, it)
ret0, _ := ret[0].(*graveler.RangeInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// WriteRange indicates an expected call of WriteRange.
func (mr *MockPlumbingMockRecorder) WriteRange(ctx, repository, it interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteRange", reflect.TypeOf((*MockPlumbing)(nil).WriteRange), ctx, repository, it)
}
// MockDumper is a mock of Dumper interface.
type MockDumper struct {
ctrl *gomock.Controller
recorder *MockDumperMockRecorder
}
// MockDumperMockRecorder is the mock recorder for MockDumper.
type MockDumperMockRecorder struct {
mock *MockDumper
}
// NewMockDumper creates a new mock instance.