github.com/influxdata/influxdb/v2@v2.7.6/replications/mock/http_config_store.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/influxdata/influxdb/v2/replications/remotewrite (interfaces: HttpConfigStore)
     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  // MockHttpConfigStore is a mock of HttpConfigStore interface.
    17  type MockHttpConfigStore struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockHttpConfigStoreMockRecorder
    20  }
    21  
    22  // MockHttpConfigStoreMockRecorder is the mock recorder for MockHttpConfigStore.
    23  type MockHttpConfigStoreMockRecorder struct {
    24  	mock *MockHttpConfigStore
    25  }
    26  
    27  // NewMockHttpConfigStore creates a new mock instance.
    28  func NewMockHttpConfigStore(ctrl *gomock.Controller) *MockHttpConfigStore {
    29  	mock := &MockHttpConfigStore{ctrl: ctrl}
    30  	mock.recorder = &MockHttpConfigStoreMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockHttpConfigStore) EXPECT() *MockHttpConfigStoreMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // GetFullHTTPConfig mocks base method.
    40  func (m *MockHttpConfigStore) GetFullHTTPConfig(arg0 context.Context, arg1 platform.ID) (*influxdb.ReplicationHTTPConfig, error) {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "GetFullHTTPConfig", arg0, arg1)
    43  	ret0, _ := ret[0].(*influxdb.ReplicationHTTPConfig)
    44  	ret1, _ := ret[1].(error)
    45  	return ret0, ret1
    46  }
    47  
    48  // GetFullHTTPConfig indicates an expected call of GetFullHTTPConfig.
    49  func (mr *MockHttpConfigStoreMockRecorder) GetFullHTTPConfig(arg0, arg1 interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFullHTTPConfig", reflect.TypeOf((*MockHttpConfigStore)(nil).GetFullHTTPConfig), arg0, arg1)
    52  }
    53  
    54  // UpdateResponseInfo mocks base method.
    55  func (m *MockHttpConfigStore) UpdateResponseInfo(arg0 context.Context, arg1 platform.ID, arg2 int, arg3 string) error {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "UpdateResponseInfo", arg0, arg1, arg2, arg3)
    58  	ret0, _ := ret[0].(error)
    59  	return ret0
    60  }
    61  
    62  // UpdateResponseInfo indicates an expected call of UpdateResponseInfo.
    63  func (mr *MockHttpConfigStoreMockRecorder) UpdateResponseInfo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResponseInfo", reflect.TypeOf((*MockHttpConfigStore)(nil).UpdateResponseInfo), arg0, arg1, arg2, arg3)
    66  }