github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/api/base/mocks/caller_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/api/base (interfaces: APICaller,FacadeCaller) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 http "net/http" 9 url "net/url" 10 reflect "reflect" 11 12 gomock "github.com/golang/mock/gomock" 13 httprequest "github.com/juju/httprequest" 14 base "github.com/juju/juju/api/base" 15 names_v2 "gopkg.in/juju/names.v2" 16 httpbakery "gopkg.in/macaroon-bakery.v2-unstable/httpbakery" 17 ) 18 19 // MockAPICaller is a mock of APICaller interface 20 type MockAPICaller struct { 21 ctrl *gomock.Controller 22 recorder *MockAPICallerMockRecorder 23 } 24 25 // MockAPICallerMockRecorder is the mock recorder for MockAPICaller 26 type MockAPICallerMockRecorder struct { 27 mock *MockAPICaller 28 } 29 30 // NewMockAPICaller creates a new mock instance 31 func NewMockAPICaller(ctrl *gomock.Controller) *MockAPICaller { 32 mock := &MockAPICaller{ctrl: ctrl} 33 mock.recorder = &MockAPICallerMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use 38 func (m *MockAPICaller) EXPECT() *MockAPICallerMockRecorder { 39 return m.recorder 40 } 41 42 // APICall mocks base method 43 func (m *MockAPICaller) APICall(arg0 string, arg1 int, arg2, arg3 string, arg4, arg5 interface{}) error { 44 ret := m.ctrl.Call(m, "APICall", arg0, arg1, arg2, arg3, arg4, arg5) 45 ret0, _ := ret[0].(error) 46 return ret0 47 } 48 49 // APICall indicates an expected call of APICall 50 func (mr *MockAPICallerMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call { 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "APICall", reflect.TypeOf((*MockAPICaller)(nil).APICall), arg0, arg1, arg2, arg3, arg4, arg5) 52 } 53 54 // BakeryClient mocks base method 55 func (m *MockAPICaller) BakeryClient() *httpbakery.Client { 56 ret := m.ctrl.Call(m, "BakeryClient") 57 ret0, _ := ret[0].(*httpbakery.Client) 58 return ret0 59 } 60 61 // BakeryClient indicates an expected call of BakeryClient 62 func (mr *MockAPICallerMockRecorder) BakeryClient() *gomock.Call { 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BakeryClient", reflect.TypeOf((*MockAPICaller)(nil).BakeryClient)) 64 } 65 66 // BestFacadeVersion mocks base method 67 func (m *MockAPICaller) BestFacadeVersion(arg0 string) int { 68 ret := m.ctrl.Call(m, "BestFacadeVersion", arg0) 69 ret0, _ := ret[0].(int) 70 return ret0 71 } 72 73 // BestFacadeVersion indicates an expected call of BestFacadeVersion 74 func (mr *MockAPICallerMockRecorder) BestFacadeVersion(arg0 interface{}) *gomock.Call { 75 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BestFacadeVersion", reflect.TypeOf((*MockAPICaller)(nil).BestFacadeVersion), arg0) 76 } 77 78 // ConnectControllerStream mocks base method 79 func (m *MockAPICaller) ConnectControllerStream(arg0 string, arg1 url.Values, arg2 http.Header) (base.Stream, error) { 80 ret := m.ctrl.Call(m, "ConnectControllerStream", arg0, arg1, arg2) 81 ret0, _ := ret[0].(base.Stream) 82 ret1, _ := ret[1].(error) 83 return ret0, ret1 84 } 85 86 // ConnectControllerStream indicates an expected call of ConnectControllerStream 87 func (mr *MockAPICallerMockRecorder) ConnectControllerStream(arg0, arg1, arg2 interface{}) *gomock.Call { 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectControllerStream", reflect.TypeOf((*MockAPICaller)(nil).ConnectControllerStream), arg0, arg1, arg2) 89 } 90 91 // ConnectStream mocks base method 92 func (m *MockAPICaller) ConnectStream(arg0 string, arg1 url.Values) (base.Stream, error) { 93 ret := m.ctrl.Call(m, "ConnectStream", arg0, arg1) 94 ret0, _ := ret[0].(base.Stream) 95 ret1, _ := ret[1].(error) 96 return ret0, ret1 97 } 98 99 // ConnectStream indicates an expected call of ConnectStream 100 func (mr *MockAPICallerMockRecorder) ConnectStream(arg0, arg1 interface{}) *gomock.Call { 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectStream", reflect.TypeOf((*MockAPICaller)(nil).ConnectStream), arg0, arg1) 102 } 103 104 // HTTPClient mocks base method 105 func (m *MockAPICaller) HTTPClient() (*httprequest.Client, error) { 106 ret := m.ctrl.Call(m, "HTTPClient") 107 ret0, _ := ret[0].(*httprequest.Client) 108 ret1, _ := ret[1].(error) 109 return ret0, ret1 110 } 111 112 // HTTPClient indicates an expected call of HTTPClient 113 func (mr *MockAPICallerMockRecorder) HTTPClient() *gomock.Call { 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HTTPClient", reflect.TypeOf((*MockAPICaller)(nil).HTTPClient)) 115 } 116 117 // ModelTag mocks base method 118 func (m *MockAPICaller) ModelTag() (names_v2.ModelTag, bool) { 119 ret := m.ctrl.Call(m, "ModelTag") 120 ret0, _ := ret[0].(names_v2.ModelTag) 121 ret1, _ := ret[1].(bool) 122 return ret0, ret1 123 } 124 125 // ModelTag indicates an expected call of ModelTag 126 func (mr *MockAPICallerMockRecorder) ModelTag() *gomock.Call { 127 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModelTag", reflect.TypeOf((*MockAPICaller)(nil).ModelTag)) 128 } 129 130 // MockFacadeCaller is a mock of FacadeCaller interface 131 type MockFacadeCaller struct { 132 ctrl *gomock.Controller 133 recorder *MockFacadeCallerMockRecorder 134 } 135 136 // MockFacadeCallerMockRecorder is the mock recorder for MockFacadeCaller 137 type MockFacadeCallerMockRecorder struct { 138 mock *MockFacadeCaller 139 } 140 141 // NewMockFacadeCaller creates a new mock instance 142 func NewMockFacadeCaller(ctrl *gomock.Controller) *MockFacadeCaller { 143 mock := &MockFacadeCaller{ctrl: ctrl} 144 mock.recorder = &MockFacadeCallerMockRecorder{mock} 145 return mock 146 } 147 148 // EXPECT returns an object that allows the caller to indicate expected use 149 func (m *MockFacadeCaller) EXPECT() *MockFacadeCallerMockRecorder { 150 return m.recorder 151 } 152 153 // BestAPIVersion mocks base method 154 func (m *MockFacadeCaller) BestAPIVersion() int { 155 ret := m.ctrl.Call(m, "BestAPIVersion") 156 ret0, _ := ret[0].(int) 157 return ret0 158 } 159 160 // BestAPIVersion indicates an expected call of BestAPIVersion 161 func (mr *MockFacadeCallerMockRecorder) BestAPIVersion() *gomock.Call { 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BestAPIVersion", reflect.TypeOf((*MockFacadeCaller)(nil).BestAPIVersion)) 163 } 164 165 // FacadeCall mocks base method 166 func (m *MockFacadeCaller) FacadeCall(arg0 string, arg1, arg2 interface{}) error { 167 ret := m.ctrl.Call(m, "FacadeCall", arg0, arg1, arg2) 168 ret0, _ := ret[0].(error) 169 return ret0 170 } 171 172 // FacadeCall indicates an expected call of FacadeCall 173 func (mr *MockFacadeCallerMockRecorder) FacadeCall(arg0, arg1, arg2 interface{}) *gomock.Call { 174 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FacadeCall", reflect.TypeOf((*MockFacadeCaller)(nil).FacadeCall), arg0, arg1, arg2) 175 } 176 177 // Name mocks base method 178 func (m *MockFacadeCaller) Name() string { 179 ret := m.ctrl.Call(m, "Name") 180 ret0, _ := ret[0].(string) 181 return ret0 182 } 183 184 // Name indicates an expected call of Name 185 func (mr *MockFacadeCallerMockRecorder) Name() *gomock.Call { 186 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockFacadeCaller)(nil).Name)) 187 } 188 189 // RawAPICaller mocks base method 190 func (m *MockFacadeCaller) RawAPICaller() base.APICaller { 191 ret := m.ctrl.Call(m, "RawAPICaller") 192 ret0, _ := ret[0].(base.APICaller) 193 return ret0 194 } 195 196 // RawAPICaller indicates an expected call of RawAPICaller 197 func (mr *MockFacadeCallerMockRecorder) RawAPICaller() *gomock.Call { 198 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RawAPICaller", reflect.TypeOf((*MockFacadeCaller)(nil).RawAPICaller)) 199 }