github.com/influxdata/influxdb/v2@v2.7.6/replications/mock/service.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/influxdata/influxdb/v2/replications/transport (interfaces: ReplicationService) 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 influxdb "github.com/influxdata/influxdb/v2" 13 platform "github.com/influxdata/influxdb/v2/kit/platform" 14 ) 15 16 // MockReplicationService is a mock of ReplicationService interface. 17 type MockReplicationService struct { 18 ctrl *gomock.Controller 19 recorder *MockReplicationServiceMockRecorder 20 } 21 22 // MockReplicationServiceMockRecorder is the mock recorder for MockReplicationService. 23 type MockReplicationServiceMockRecorder struct { 24 mock *MockReplicationService 25 } 26 27 // NewMockReplicationService creates a new mock instance. 28 func NewMockReplicationService(ctrl *gomock.Controller) *MockReplicationService { 29 mock := &MockReplicationService{ctrl: ctrl} 30 mock.recorder = &MockReplicationServiceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockReplicationService) EXPECT() *MockReplicationServiceMockRecorder { 36 return m.recorder 37 } 38 39 // CreateReplication mocks base method. 40 func (m *MockReplicationService) CreateReplication(arg0 context.Context, arg1 influxdb.CreateReplicationRequest) (*influxdb.Replication, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "CreateReplication", arg0, arg1) 43 ret0, _ := ret[0].(*influxdb.Replication) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // CreateReplication indicates an expected call of CreateReplication. 49 func (mr *MockReplicationServiceMockRecorder) CreateReplication(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReplication", reflect.TypeOf((*MockReplicationService)(nil).CreateReplication), arg0, arg1) 52 } 53 54 // DeleteReplication mocks base method. 55 func (m *MockReplicationService) DeleteReplication(arg0 context.Context, arg1 platform.ID) error { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "DeleteReplication", arg0, arg1) 58 ret0, _ := ret[0].(error) 59 return ret0 60 } 61 62 // DeleteReplication indicates an expected call of DeleteReplication. 63 func (mr *MockReplicationServiceMockRecorder) DeleteReplication(arg0, arg1 interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReplication", reflect.TypeOf((*MockReplicationService)(nil).DeleteReplication), arg0, arg1) 66 } 67 68 // GetReplication mocks base method. 69 func (m *MockReplicationService) GetReplication(arg0 context.Context, arg1 platform.ID) (*influxdb.Replication, error) { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "GetReplication", arg0, arg1) 72 ret0, _ := ret[0].(*influxdb.Replication) 73 ret1, _ := ret[1].(error) 74 return ret0, ret1 75 } 76 77 // GetReplication indicates an expected call of GetReplication. 78 func (mr *MockReplicationServiceMockRecorder) GetReplication(arg0, arg1 interface{}) *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReplication", reflect.TypeOf((*MockReplicationService)(nil).GetReplication), arg0, arg1) 81 } 82 83 // ListReplications mocks base method. 84 func (m *MockReplicationService) ListReplications(arg0 context.Context, arg1 influxdb.ReplicationListFilter) (*influxdb.Replications, error) { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "ListReplications", arg0, arg1) 87 ret0, _ := ret[0].(*influxdb.Replications) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // ListReplications indicates an expected call of ListReplications. 93 func (mr *MockReplicationServiceMockRecorder) ListReplications(arg0, arg1 interface{}) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReplications", reflect.TypeOf((*MockReplicationService)(nil).ListReplications), arg0, arg1) 96 } 97 98 // UpdateReplication mocks base method. 99 func (m *MockReplicationService) UpdateReplication(arg0 context.Context, arg1 platform.ID, arg2 influxdb.UpdateReplicationRequest) (*influxdb.Replication, error) { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "UpdateReplication", arg0, arg1, arg2) 102 ret0, _ := ret[0].(*influxdb.Replication) 103 ret1, _ := ret[1].(error) 104 return ret0, ret1 105 } 106 107 // UpdateReplication indicates an expected call of UpdateReplication. 108 func (mr *MockReplicationServiceMockRecorder) UpdateReplication(arg0, arg1, arg2 interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReplication", reflect.TypeOf((*MockReplicationService)(nil).UpdateReplication), arg0, arg1, arg2) 111 } 112 113 // ValidateNewReplication mocks base method. 114 func (m *MockReplicationService) ValidateNewReplication(arg0 context.Context, arg1 influxdb.CreateReplicationRequest) error { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "ValidateNewReplication", arg0, arg1) 117 ret0, _ := ret[0].(error) 118 return ret0 119 } 120 121 // ValidateNewReplication indicates an expected call of ValidateNewReplication. 122 func (mr *MockReplicationServiceMockRecorder) ValidateNewReplication(arg0, arg1 interface{}) *gomock.Call { 123 mr.mock.ctrl.T.Helper() 124 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateNewReplication", reflect.TypeOf((*MockReplicationService)(nil).ValidateNewReplication), arg0, arg1) 125 } 126 127 // ValidateReplication mocks base method. 128 func (m *MockReplicationService) ValidateReplication(arg0 context.Context, arg1 platform.ID) error { 129 m.ctrl.T.Helper() 130 ret := m.ctrl.Call(m, "ValidateReplication", arg0, arg1) 131 ret0, _ := ret[0].(error) 132 return ret0 133 } 134 135 // ValidateReplication indicates an expected call of ValidateReplication. 136 func (mr *MockReplicationServiceMockRecorder) ValidateReplication(arg0, arg1 interface{}) *gomock.Call { 137 mr.mock.ctrl.T.Helper() 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateReplication", reflect.TypeOf((*MockReplicationService)(nil).ValidateReplication), arg0, arg1) 139 } 140 141 // ValidateUpdatedReplication mocks base method. 142 func (m *MockReplicationService) ValidateUpdatedReplication(arg0 context.Context, arg1 platform.ID, arg2 influxdb.UpdateReplicationRequest) error { 143 m.ctrl.T.Helper() 144 ret := m.ctrl.Call(m, "ValidateUpdatedReplication", arg0, arg1, arg2) 145 ret0, _ := ret[0].(error) 146 return ret0 147 } 148 149 // ValidateUpdatedReplication indicates an expected call of ValidateUpdatedReplication. 150 func (mr *MockReplicationServiceMockRecorder) ValidateUpdatedReplication(arg0, arg1, arg2 interface{}) *gomock.Call { 151 mr.mock.ctrl.T.Helper() 152 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateUpdatedReplication", reflect.TypeOf((*MockReplicationService)(nil).ValidateUpdatedReplication), arg0, arg1, arg2) 153 }