github.com/influxdata/influxdb/v2@v2.7.6/replications/mock/service_store.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/influxdata/influxdb/v2/replications (interfaces: ServiceStore) 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 // MockServiceStore is a mock of ServiceStore interface. 17 type MockServiceStore struct { 18 ctrl *gomock.Controller 19 recorder *MockServiceStoreMockRecorder 20 } 21 22 // MockServiceStoreMockRecorder is the mock recorder for MockServiceStore. 23 type MockServiceStoreMockRecorder struct { 24 mock *MockServiceStore 25 } 26 27 // NewMockServiceStore creates a new mock instance. 28 func NewMockServiceStore(ctrl *gomock.Controller) *MockServiceStore { 29 mock := &MockServiceStore{ctrl: ctrl} 30 mock.recorder = &MockServiceStoreMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockServiceStore) EXPECT() *MockServiceStoreMockRecorder { 36 return m.recorder 37 } 38 39 // CreateReplication mocks base method. 40 func (m *MockServiceStore) CreateReplication(arg0 context.Context, arg1 platform.ID, arg2 influxdb.CreateReplicationRequest) (*influxdb.Replication, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "CreateReplication", arg0, arg1, arg2) 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 *MockServiceStoreMockRecorder) CreateReplication(arg0, arg1, arg2 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReplication", reflect.TypeOf((*MockServiceStore)(nil).CreateReplication), arg0, arg1, arg2) 52 } 53 54 // DeleteBucketReplications mocks base method. 55 func (m *MockServiceStore) DeleteBucketReplications(arg0 context.Context, arg1 platform.ID) ([]platform.ID, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "DeleteBucketReplications", arg0, arg1) 58 ret0, _ := ret[0].([]platform.ID) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // DeleteBucketReplications indicates an expected call of DeleteBucketReplications. 64 func (mr *MockServiceStoreMockRecorder) DeleteBucketReplications(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBucketReplications", reflect.TypeOf((*MockServiceStore)(nil).DeleteBucketReplications), arg0, arg1) 67 } 68 69 // DeleteReplication mocks base method. 70 func (m *MockServiceStore) DeleteReplication(arg0 context.Context, arg1 platform.ID) error { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "DeleteReplication", arg0, arg1) 73 ret0, _ := ret[0].(error) 74 return ret0 75 } 76 77 // DeleteReplication indicates an expected call of DeleteReplication. 78 func (mr *MockServiceStoreMockRecorder) DeleteReplication(arg0, arg1 interface{}) *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReplication", reflect.TypeOf((*MockServiceStore)(nil).DeleteReplication), arg0, arg1) 81 } 82 83 // GetFullHTTPConfig mocks base method. 84 func (m *MockServiceStore) GetFullHTTPConfig(arg0 context.Context, arg1 platform.ID) (*influxdb.ReplicationHTTPConfig, error) { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "GetFullHTTPConfig", arg0, arg1) 87 ret0, _ := ret[0].(*influxdb.ReplicationHTTPConfig) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // GetFullHTTPConfig indicates an expected call of GetFullHTTPConfig. 93 func (mr *MockServiceStoreMockRecorder) GetFullHTTPConfig(arg0, arg1 interface{}) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFullHTTPConfig", reflect.TypeOf((*MockServiceStore)(nil).GetFullHTTPConfig), arg0, arg1) 96 } 97 98 // GetReplication mocks base method. 99 func (m *MockServiceStore) GetReplication(arg0 context.Context, arg1 platform.ID) (*influxdb.Replication, error) { 100 m.ctrl.T.Helper() 101 ret := m.ctrl.Call(m, "GetReplication", arg0, arg1) 102 ret0, _ := ret[0].(*influxdb.Replication) 103 ret1, _ := ret[1].(error) 104 return ret0, ret1 105 } 106 107 // GetReplication indicates an expected call of GetReplication. 108 func (mr *MockServiceStoreMockRecorder) GetReplication(arg0, arg1 interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReplication", reflect.TypeOf((*MockServiceStore)(nil).GetReplication), arg0, arg1) 111 } 112 113 // ListReplications mocks base method. 114 func (m *MockServiceStore) ListReplications(arg0 context.Context, arg1 influxdb.ReplicationListFilter) (*influxdb.Replications, error) { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "ListReplications", arg0, arg1) 117 ret0, _ := ret[0].(*influxdb.Replications) 118 ret1, _ := ret[1].(error) 119 return ret0, ret1 120 } 121 122 // ListReplications indicates an expected call of ListReplications. 123 func (mr *MockServiceStoreMockRecorder) ListReplications(arg0, arg1 interface{}) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReplications", reflect.TypeOf((*MockServiceStore)(nil).ListReplications), arg0, arg1) 126 } 127 128 // Lock mocks base method. 129 func (m *MockServiceStore) Lock() { 130 m.ctrl.T.Helper() 131 m.ctrl.Call(m, "Lock") 132 } 133 134 // Lock indicates an expected call of Lock. 135 func (mr *MockServiceStoreMockRecorder) Lock() *gomock.Call { 136 mr.mock.ctrl.T.Helper() 137 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lock", reflect.TypeOf((*MockServiceStore)(nil).Lock)) 138 } 139 140 // PopulateRemoteHTTPConfig mocks base method. 141 func (m *MockServiceStore) PopulateRemoteHTTPConfig(arg0 context.Context, arg1 platform.ID, arg2 *influxdb.ReplicationHTTPConfig) error { 142 m.ctrl.T.Helper() 143 ret := m.ctrl.Call(m, "PopulateRemoteHTTPConfig", arg0, arg1, arg2) 144 ret0, _ := ret[0].(error) 145 return ret0 146 } 147 148 // PopulateRemoteHTTPConfig indicates an expected call of PopulateRemoteHTTPConfig. 149 func (mr *MockServiceStoreMockRecorder) PopulateRemoteHTTPConfig(arg0, arg1, arg2 interface{}) *gomock.Call { 150 mr.mock.ctrl.T.Helper() 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopulateRemoteHTTPConfig", reflect.TypeOf((*MockServiceStore)(nil).PopulateRemoteHTTPConfig), arg0, arg1, arg2) 152 } 153 154 // Unlock mocks base method. 155 func (m *MockServiceStore) Unlock() { 156 m.ctrl.T.Helper() 157 m.ctrl.Call(m, "Unlock") 158 } 159 160 // Unlock indicates an expected call of Unlock. 161 func (mr *MockServiceStoreMockRecorder) Unlock() *gomock.Call { 162 mr.mock.ctrl.T.Helper() 163 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unlock", reflect.TypeOf((*MockServiceStore)(nil).Unlock)) 164 } 165 166 // UpdateReplication mocks base method. 167 func (m *MockServiceStore) UpdateReplication(arg0 context.Context, arg1 platform.ID, arg2 influxdb.UpdateReplicationRequest) (*influxdb.Replication, error) { 168 m.ctrl.T.Helper() 169 ret := m.ctrl.Call(m, "UpdateReplication", arg0, arg1, arg2) 170 ret0, _ := ret[0].(*influxdb.Replication) 171 ret1, _ := ret[1].(error) 172 return ret0, ret1 173 } 174 175 // UpdateReplication indicates an expected call of UpdateReplication. 176 func (mr *MockServiceStoreMockRecorder) UpdateReplication(arg0, arg1, arg2 interface{}) *gomock.Call { 177 mr.mock.ctrl.T.Helper() 178 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReplication", reflect.TypeOf((*MockServiceStore)(nil).UpdateReplication), arg0, arg1, arg2) 179 }