Files
influx-cli/internal/mock/api_delete.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.6 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/influxdata/influx-cli/v2/api (interfaces: DeleteApi)
// 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"
)
// MockDeleteApi is a mock of DeleteApi interface.
type MockDeleteApi struct {
ctrl *gomock.Controller
recorder *MockDeleteApiMockRecorder
}
// MockDeleteApiMockRecorder is the mock recorder for MockDeleteApi.
type MockDeleteApiMockRecorder struct {
mock *MockDeleteApi
}
// NewMockDeleteApi creates a new mock instance.
func NewMockDeleteApi(ctrl *gomock.Controller) *MockDeleteApi {
mock := &MockDeleteApi{ctrl: ctrl}
mock.recorder = &MockDeleteApiMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDeleteApi) EXPECT() *MockDeleteApiMockRecorder {
return m.recorder
}
// OnlyCloud mocks base method.
func (m *MockDeleteApi) OnlyCloud() api.DeleteApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyCloud")
ret0, _ := ret[0].(api.DeleteApi)
return ret0
}
// OnlyCloud indicates an expected call of OnlyCloud.
func (mr *MockDeleteApiMockRecorder) OnlyCloud() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyCloud", reflect.TypeOf((*MockDeleteApi)(nil).OnlyCloud))
}
// OnlyOSS mocks base method.
func (m *MockDeleteApi) OnlyOSS() api.DeleteApi {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnlyOSS")
ret0, _ := ret[0].(api.DeleteApi)
return ret0
}
// OnlyOSS indicates an expected call of OnlyOSS.
func (mr *MockDeleteApiMockRecorder) OnlyOSS() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnlyOSS", reflect.TypeOf((*MockDeleteApi)(nil).OnlyOSS))
}
// PostDelete mocks base method.
func (m *MockDeleteApi) PostDelete(arg0 context.Context) api.ApiPostDeleteRequest {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PostDelete", arg0)
ret0, _ := ret[0].(api.ApiPostDeleteRequest)
return ret0
}
// PostDelete indicates an expected call of PostDelete.
func (mr *MockDeleteApiMockRecorder) PostDelete(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostDelete", reflect.TypeOf((*MockDeleteApi)(nil).PostDelete), arg0)
}
// PostDeleteExecute mocks base method.
func (m *MockDeleteApi) PostDeleteExecute(arg0 api.ApiPostDeleteRequest) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PostDeleteExecute", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// PostDeleteExecute indicates an expected call of PostDeleteExecute.
func (mr *MockDeleteApiMockRecorder) PostDeleteExecute(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostDeleteExecute", reflect.TypeOf((*MockDeleteApi)(nil).PostDeleteExecute), arg0)
}
// PostDeleteExecuteWithHttpInfo mocks base method.
func (m *MockDeleteApi) PostDeleteExecuteWithHttpInfo(arg0 api.ApiPostDeleteRequest) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PostDeleteExecuteWithHttpInfo", arg0)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PostDeleteExecuteWithHttpInfo indicates an expected call of PostDeleteExecuteWithHttpInfo.
func (mr *MockDeleteApiMockRecorder) PostDeleteExecuteWithHttpInfo(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostDeleteExecuteWithHttpInfo", reflect.TypeOf((*MockDeleteApi)(nil).PostDeleteExecuteWithHttpInfo), arg0)
}