Files
influx-cli/internal/mock/api_write.gen.go
William Baker 4c0fae3a4c feat: add ExecuteWithHttpInfo methods for generated API (#336)
* feat: add `ExecuteWithHttpInfo` methods for generated API

* chore: update templates README

* chore: update comment to explain usage of response body

* chore: update template README

* chore: fix formatting
2021-11-29 15:42:29 -06:00

109 lines
3.5 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/influxdata/influx-cli/v2/api (interfaces: WriteApi)
// Package mock is a generated GoMock package.
package mock
import (
context "context"
http "net/http"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
api "github.com/influxdata/influx-cli/v2/api"
)
// MockWriteApi is a mock of WriteApi interface.
type MockWriteApi struct {
ctrl *gomock.Controller
recorder *MockWriteApiMockRecorder
}
// MockWriteApiMockRecorder is the mock recorder for MockWriteApi.
type MockWriteApiMockRecorder struct {
mock *MockWriteApi
}
// NewMockWriteApi creates a new mock instance.
func NewMockWriteApi(ctrl *gomock.Controller) *MockWriteApi {
mock := &MockWriteApi{ctrl: ctrl}
mock.recorder = &MockWriteApiMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWriteApi) EXPECT() *MockWriteApiMockRecorder {
return m.recorder
}
// OnlyCloud mocks base method.
func (m *MockWriteApi) OnlyCloud() api.WriteApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyCloud")
ret0, _ := ret[0].(api.WriteApi)
return ret0
}
// OnlyCloud indicates an expected call of OnlyCloud.
func (mr *MockWriteApiMockRecorder) OnlyCloud() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyCloud", reflect.TypeOf((*MockWriteApi)(nil).OnlyCloud))
}
// OnlyOSS mocks base method.
func (m *MockWriteApi) OnlyOSS() api.WriteApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyOSS")
ret0, _ := ret[0].(api.WriteApi)
return ret0
}
// OnlyOSS indicates an expected call of OnlyOSS.
func (mr *MockWriteApiMockRecorder) OnlyOSS() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyOSS", reflect.TypeOf((*MockWriteApi)(nil).OnlyOSS))
}
// PostWrite mocks base method.
func (m *MockWriteApi) PostWrite(arg0 context.Context) api.ApiPostWriteRequest {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PostWrite", arg0)
ret0, _ := ret[0].(api.ApiPostWriteRequest)
return ret0
}
// PostWrite indicates an expected call of PostWrite.
func (mr *MockWriteApiMockRecorder) PostWrite(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostWrite", reflect.TypeOf((*MockWriteApi)(nil).PostWrite), arg0)
}
// PostWriteExecute mocks base method.
func (m *MockWriteApi) PostWriteExecute(arg0 api.ApiPostWriteRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PostWriteExecute", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// PostWriteExecute indicates an expected call of PostWriteExecute.
func (mr *MockWriteApiMockRecorder) PostWriteExecute(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostWriteExecute", reflect.TypeOf((*MockWriteApi)(nil).PostWriteExecute), arg0)
}
// PostWriteExecuteWithHttpInfo mocks base method.
func (m *MockWriteApi) PostWriteExecuteWithHttpInfo(arg0 api.ApiPostWriteRequest) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PostWriteExecuteWithHttpInfo", arg0)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PostWriteExecuteWithHttpInfo indicates an expected call of PostWriteExecuteWithHttpInfo.
func (mr *MockWriteApiMockRecorder) PostWriteExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostWriteExecuteWithHttpInfo", reflect.TypeOf((*MockWriteApi)(nil).PostWriteExecuteWithHttpInfo), arg0)
}