
* 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
156 lines
5.5 KiB
Go
156 lines
5.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/influxdata/influx-cli/v2/api (interfaces: SetupApi)
|
|
|
|
// 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"
|
|
)
|
|
|
|
// MockSetupApi is a mock of SetupApi interface.
|
|
type MockSetupApi struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockSetupApiMockRecorder
|
|
}
|
|
|
|
// MockSetupApiMockRecorder is the mock recorder for MockSetupApi.
|
|
type MockSetupApiMockRecorder struct {
|
|
mock *MockSetupApi
|
|
}
|
|
|
|
// NewMockSetupApi creates a new mock instance.
|
|
func NewMockSetupApi(ctrl *gomock.Controller) *MockSetupApi {
|
|
mock := &MockSetupApi{ctrl: ctrl}
|
|
mock.recorder = &MockSetupApiMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockSetupApi) EXPECT() *MockSetupApiMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetSetup mocks base method.
|
|
func (m *MockSetupApi) GetSetup(arg0 context.Context) api.ApiGetSetupRequest {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSetup", arg0)
|
|
ret0, _ := ret[0].(api.ApiGetSetupRequest)
|
|
return ret0
|
|
}
|
|
|
|
// GetSetup indicates an expected call of GetSetup.
|
|
func (mr *MockSetupApiMockRecorder) GetSetup(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSetup", reflect.TypeOf((*MockSetupApi)(nil).GetSetup), arg0)
|
|
}
|
|
|
|
// GetSetupExecute mocks base method.
|
|
func (m *MockSetupApi) GetSetupExecute(arg0 api.ApiGetSetupRequest) (api.InlineResponse200, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSetupExecute", arg0)
|
|
ret0, _ := ret[0].(api.InlineResponse200)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetSetupExecute indicates an expected call of GetSetupExecute.
|
|
func (mr *MockSetupApiMockRecorder) GetSetupExecute(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSetupExecute", reflect.TypeOf((*MockSetupApi)(nil).GetSetupExecute), arg0)
|
|
}
|
|
|
|
// GetSetupExecuteWithHttpInfo mocks base method.
|
|
func (m *MockSetupApi) GetSetupExecuteWithHttpInfo(arg0 api.ApiGetSetupRequest) (api.InlineResponse200, *http.Response, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetSetupExecuteWithHttpInfo", arg0)
|
|
ret0, _ := ret[0].(api.InlineResponse200)
|
|
ret1, _ := ret[1].(*http.Response)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetSetupExecuteWithHttpInfo indicates an expected call of GetSetupExecuteWithHttpInfo.
|
|
func (mr *MockSetupApiMockRecorder) GetSetupExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSetupExecuteWithHttpInfo", reflect.TypeOf((*MockSetupApi)(nil).GetSetupExecuteWithHttpInfo), arg0)
|
|
}
|
|
|
|
// OnlyCloud mocks base method.
|
|
func (m *MockSetupApi) OnlyCloud() api.SetupApi {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "OnlyCloud")
|
|
ret0, _ := ret[0].(api.SetupApi)
|
|
return ret0
|
|
}
|
|
|
|
// OnlyCloud indicates an expected call of OnlyCloud.
|
|
func (mr *MockSetupApiMockRecorder) OnlyCloud() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyCloud", reflect.TypeOf((*MockSetupApi)(nil).OnlyCloud))
|
|
}
|
|
|
|
// OnlyOSS mocks base method.
|
|
func (m *MockSetupApi) OnlyOSS() api.SetupApi {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "OnlyOSS")
|
|
ret0, _ := ret[0].(api.SetupApi)
|
|
return ret0
|
|
}
|
|
|
|
// OnlyOSS indicates an expected call of OnlyOSS.
|
|
func (mr *MockSetupApiMockRecorder) OnlyOSS() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyOSS", reflect.TypeOf((*MockSetupApi)(nil).OnlyOSS))
|
|
}
|
|
|
|
// PostSetup mocks base method.
|
|
func (m *MockSetupApi) PostSetup(arg0 context.Context) api.ApiPostSetupRequest {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostSetup", arg0)
|
|
ret0, _ := ret[0].(api.ApiPostSetupRequest)
|
|
return ret0
|
|
}
|
|
|
|
// PostSetup indicates an expected call of PostSetup.
|
|
func (mr *MockSetupApiMockRecorder) PostSetup(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostSetup", reflect.TypeOf((*MockSetupApi)(nil).PostSetup), arg0)
|
|
}
|
|
|
|
// PostSetupExecute mocks base method.
|
|
func (m *MockSetupApi) PostSetupExecute(arg0 api.ApiPostSetupRequest) (api.OnboardingResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostSetupExecute", arg0)
|
|
ret0, _ := ret[0].(api.OnboardingResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// PostSetupExecute indicates an expected call of PostSetupExecute.
|
|
func (mr *MockSetupApiMockRecorder) PostSetupExecute(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostSetupExecute", reflect.TypeOf((*MockSetupApi)(nil).PostSetupExecute), arg0)
|
|
}
|
|
|
|
// PostSetupExecuteWithHttpInfo mocks base method.
|
|
func (m *MockSetupApi) PostSetupExecuteWithHttpInfo(arg0 api.ApiPostSetupRequest) (api.OnboardingResponse, *http.Response, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "PostSetupExecuteWithHttpInfo", arg0)
|
|
ret0, _ := ret[0].(api.OnboardingResponse)
|
|
ret1, _ := ret[1].(*http.Response)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// PostSetupExecuteWithHttpInfo indicates an expected call of PostSetupExecuteWithHttpInfo.
|
|
func (mr *MockSetupApiMockRecorder) PostSetupExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostSetupExecuteWithHttpInfo", reflect.TypeOf((*MockSetupApi)(nil).PostSetupExecuteWithHttpInfo), arg0)
|
|
}
|