Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAPICallCloser
- func (m *MockAPICallCloser) APICall(arg0 context.Context, arg1 string, arg2 int, arg3, arg4 string, arg5, arg6 any) error
- func (m *MockAPICallCloser) BakeryClient() base.MacaroonDischarger
- func (m *MockAPICallCloser) BestFacadeVersion(arg0 string) int
- func (m *MockAPICallCloser) Close() error
- func (m *MockAPICallCloser) ConnectControllerStream(arg0 context.Context, arg1 string, arg2 url.Values, arg3 http.Header) (base.Stream, error)
- func (m *MockAPICallCloser) ConnectStream(arg0 context.Context, arg1 string, arg2 url.Values) (base.Stream, error)
- func (m *MockAPICallCloser) EXPECT() *MockAPICallCloserMockRecorder
- func (m *MockAPICallCloser) HTTPClient() (*httprequest.Client, error)
- func (m *MockAPICallCloser) ModelTag() (names.ModelTag, bool)
- func (m *MockAPICallCloser) RootHTTPClient() (*httprequest.Client, error)
- type MockAPICallCloserAPICallCall
- func (c *MockAPICallCloserAPICallCall) Do(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallCloserAPICallCall
- func (c *MockAPICallCloserAPICallCall) DoAndReturn(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallCloserAPICallCall
- func (c *MockAPICallCloserAPICallCall) Return(arg0 error) *MockAPICallCloserAPICallCall
- type MockAPICallCloserBakeryClientCall
- func (c *MockAPICallCloserBakeryClientCall) Do(f func() base.MacaroonDischarger) *MockAPICallCloserBakeryClientCall
- func (c *MockAPICallCloserBakeryClientCall) DoAndReturn(f func() base.MacaroonDischarger) *MockAPICallCloserBakeryClientCall
- func (c *MockAPICallCloserBakeryClientCall) Return(arg0 base.MacaroonDischarger) *MockAPICallCloserBakeryClientCall
- type MockAPICallCloserBestFacadeVersionCall
- func (c *MockAPICallCloserBestFacadeVersionCall) Do(f func(string) int) *MockAPICallCloserBestFacadeVersionCall
- func (c *MockAPICallCloserBestFacadeVersionCall) DoAndReturn(f func(string) int) *MockAPICallCloserBestFacadeVersionCall
- func (c *MockAPICallCloserBestFacadeVersionCall) Return(arg0 int) *MockAPICallCloserBestFacadeVersionCall
- type MockAPICallCloserCloseCall
- type MockAPICallCloserConnectControllerStreamCall
- func (c *MockAPICallCloserConnectControllerStreamCall) Do(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallCloserConnectControllerStreamCall
- func (c *MockAPICallCloserConnectControllerStreamCall) DoAndReturn(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallCloserConnectControllerStreamCall
- func (c *MockAPICallCloserConnectControllerStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallCloserConnectControllerStreamCall
- type MockAPICallCloserConnectStreamCall
- func (c *MockAPICallCloserConnectStreamCall) Do(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallCloserConnectStreamCall
- func (c *MockAPICallCloserConnectStreamCall) DoAndReturn(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallCloserConnectStreamCall
- func (c *MockAPICallCloserConnectStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallCloserConnectStreamCall
- type MockAPICallCloserHTTPClientCall
- func (c *MockAPICallCloserHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallCloserHTTPClientCall
- func (c *MockAPICallCloserHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallCloserHTTPClientCall
- func (c *MockAPICallCloserHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallCloserHTTPClientCall
- type MockAPICallCloserMockRecorder
- func (mr *MockAPICallCloserMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockAPICallCloserAPICallCall
- func (mr *MockAPICallCloserMockRecorder) BakeryClient() *MockAPICallCloserBakeryClientCall
- func (mr *MockAPICallCloserMockRecorder) BestFacadeVersion(arg0 any) *MockAPICallCloserBestFacadeVersionCall
- func (mr *MockAPICallCloserMockRecorder) Close() *MockAPICallCloserCloseCall
- func (mr *MockAPICallCloserMockRecorder) ConnectControllerStream(arg0, arg1, arg2, arg3 any) *MockAPICallCloserConnectControllerStreamCall
- func (mr *MockAPICallCloserMockRecorder) ConnectStream(arg0, arg1, arg2 any) *MockAPICallCloserConnectStreamCall
- func (mr *MockAPICallCloserMockRecorder) HTTPClient() *MockAPICallCloserHTTPClientCall
- func (mr *MockAPICallCloserMockRecorder) ModelTag() *MockAPICallCloserModelTagCall
- func (mr *MockAPICallCloserMockRecorder) RootHTTPClient() *MockAPICallCloserRootHTTPClientCall
- type MockAPICallCloserModelTagCall
- func (c *MockAPICallCloserModelTagCall) Do(f func() (names.ModelTag, bool)) *MockAPICallCloserModelTagCall
- func (c *MockAPICallCloserModelTagCall) DoAndReturn(f func() (names.ModelTag, bool)) *MockAPICallCloserModelTagCall
- func (c *MockAPICallCloserModelTagCall) Return(arg0 names.ModelTag, arg1 bool) *MockAPICallCloserModelTagCall
- type MockAPICallCloserRootHTTPClientCall
- func (c *MockAPICallCloserRootHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallCloserRootHTTPClientCall
- func (c *MockAPICallCloserRootHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallCloserRootHTTPClientCall
- func (c *MockAPICallCloserRootHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallCloserRootHTTPClientCall
- type MockDoer
- type MockDoerDoCall
- type MockDoerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPICallCloser ¶
type MockAPICallCloser struct {
// contains filtered or unexported fields
}
MockAPICallCloser is a mock of APICallCloser interface.
func NewMockAPICallCloser ¶
func NewMockAPICallCloser(ctrl *gomock.Controller) *MockAPICallCloser
NewMockAPICallCloser creates a new mock instance.
func (*MockAPICallCloser) APICall ¶
func (m *MockAPICallCloser) APICall(arg0 context.Context, arg1 string, arg2 int, arg3, arg4 string, arg5, arg6 any) error
APICall mocks base method.
func (*MockAPICallCloser) BakeryClient ¶
func (m *MockAPICallCloser) BakeryClient() base.MacaroonDischarger
BakeryClient mocks base method.
func (*MockAPICallCloser) BestFacadeVersion ¶
func (m *MockAPICallCloser) BestFacadeVersion(arg0 string) int
BestFacadeVersion mocks base method.
func (*MockAPICallCloser) Close ¶
func (m *MockAPICallCloser) Close() error
Close mocks base method.
func (*MockAPICallCloser) ConnectControllerStream ¶
func (m *MockAPICallCloser) ConnectControllerStream(arg0 context.Context, arg1 string, arg2 url.Values, arg3 http.Header) (base.Stream, error)
ConnectControllerStream mocks base method.
func (*MockAPICallCloser) ConnectStream ¶
func (m *MockAPICallCloser) ConnectStream(arg0 context.Context, arg1 string, arg2 url.Values) (base.Stream, error)
ConnectStream mocks base method.
func (*MockAPICallCloser) EXPECT ¶
func (m *MockAPICallCloser) EXPECT() *MockAPICallCloserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPICallCloser) HTTPClient ¶
func (m *MockAPICallCloser) HTTPClient() (*httprequest.Client, error)
HTTPClient mocks base method.
func (*MockAPICallCloser) ModelTag ¶
func (m *MockAPICallCloser) ModelTag() (names.ModelTag, bool)
ModelTag mocks base method.
func (*MockAPICallCloser) RootHTTPClient ¶
func (m *MockAPICallCloser) RootHTTPClient() (*httprequest.Client, error)
RootHTTPClient mocks base method.
type MockAPICallCloserAPICallCall ¶
MockAPICallCloserAPICallCall wrap *gomock.Call
func (*MockAPICallCloserAPICallCall) Do ¶
func (c *MockAPICallCloserAPICallCall) Do(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallCloserAPICallCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserAPICallCall) DoAndReturn ¶
func (c *MockAPICallCloserAPICallCall) DoAndReturn(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallCloserAPICallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserAPICallCall) Return ¶
func (c *MockAPICallCloserAPICallCall) Return(arg0 error) *MockAPICallCloserAPICallCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserBakeryClientCall ¶
MockAPICallCloserBakeryClientCall wrap *gomock.Call
func (*MockAPICallCloserBakeryClientCall) Do ¶
func (c *MockAPICallCloserBakeryClientCall) Do(f func() base.MacaroonDischarger) *MockAPICallCloserBakeryClientCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserBakeryClientCall) DoAndReturn ¶
func (c *MockAPICallCloserBakeryClientCall) DoAndReturn(f func() base.MacaroonDischarger) *MockAPICallCloserBakeryClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserBakeryClientCall) Return ¶
func (c *MockAPICallCloserBakeryClientCall) Return(arg0 base.MacaroonDischarger) *MockAPICallCloserBakeryClientCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserBestFacadeVersionCall ¶
MockAPICallCloserBestFacadeVersionCall wrap *gomock.Call
func (*MockAPICallCloserBestFacadeVersionCall) Do ¶
func (c *MockAPICallCloserBestFacadeVersionCall) Do(f func(string) int) *MockAPICallCloserBestFacadeVersionCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserBestFacadeVersionCall) DoAndReturn ¶
func (c *MockAPICallCloserBestFacadeVersionCall) DoAndReturn(f func(string) int) *MockAPICallCloserBestFacadeVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserBestFacadeVersionCall) Return ¶
func (c *MockAPICallCloserBestFacadeVersionCall) Return(arg0 int) *MockAPICallCloserBestFacadeVersionCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserCloseCall ¶
MockAPICallCloserCloseCall wrap *gomock.Call
func (*MockAPICallCloserCloseCall) Do ¶
func (c *MockAPICallCloserCloseCall) Do(f func() error) *MockAPICallCloserCloseCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserCloseCall) DoAndReturn ¶
func (c *MockAPICallCloserCloseCall) DoAndReturn(f func() error) *MockAPICallCloserCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserCloseCall) Return ¶
func (c *MockAPICallCloserCloseCall) Return(arg0 error) *MockAPICallCloserCloseCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserConnectControllerStreamCall ¶
MockAPICallCloserConnectControllerStreamCall wrap *gomock.Call
func (*MockAPICallCloserConnectControllerStreamCall) Do ¶
func (c *MockAPICallCloserConnectControllerStreamCall) Do(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallCloserConnectControllerStreamCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserConnectControllerStreamCall) DoAndReturn ¶
func (c *MockAPICallCloserConnectControllerStreamCall) DoAndReturn(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallCloserConnectControllerStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserConnectControllerStreamCall) Return ¶
func (c *MockAPICallCloserConnectControllerStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallCloserConnectControllerStreamCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserConnectStreamCall ¶
MockAPICallCloserConnectStreamCall wrap *gomock.Call
func (*MockAPICallCloserConnectStreamCall) Do ¶
func (c *MockAPICallCloserConnectStreamCall) Do(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallCloserConnectStreamCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserConnectStreamCall) DoAndReturn ¶
func (c *MockAPICallCloserConnectStreamCall) DoAndReturn(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallCloserConnectStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserConnectStreamCall) Return ¶
func (c *MockAPICallCloserConnectStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallCloserConnectStreamCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserHTTPClientCall ¶
MockAPICallCloserHTTPClientCall wrap *gomock.Call
func (*MockAPICallCloserHTTPClientCall) Do ¶
func (c *MockAPICallCloserHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallCloserHTTPClientCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserHTTPClientCall) DoAndReturn ¶
func (c *MockAPICallCloserHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallCloserHTTPClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserHTTPClientCall) Return ¶
func (c *MockAPICallCloserHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallCloserHTTPClientCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserMockRecorder ¶
type MockAPICallCloserMockRecorder struct {
// contains filtered or unexported fields
}
MockAPICallCloserMockRecorder is the mock recorder for MockAPICallCloser.
func (*MockAPICallCloserMockRecorder) APICall ¶
func (mr *MockAPICallCloserMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockAPICallCloserAPICallCall
APICall indicates an expected call of APICall.
func (*MockAPICallCloserMockRecorder) BakeryClient ¶
func (mr *MockAPICallCloserMockRecorder) BakeryClient() *MockAPICallCloserBakeryClientCall
BakeryClient indicates an expected call of BakeryClient.
func (*MockAPICallCloserMockRecorder) BestFacadeVersion ¶
func (mr *MockAPICallCloserMockRecorder) BestFacadeVersion(arg0 any) *MockAPICallCloserBestFacadeVersionCall
BestFacadeVersion indicates an expected call of BestFacadeVersion.
func (*MockAPICallCloserMockRecorder) Close ¶
func (mr *MockAPICallCloserMockRecorder) Close() *MockAPICallCloserCloseCall
Close indicates an expected call of Close.
func (*MockAPICallCloserMockRecorder) ConnectControllerStream ¶
func (mr *MockAPICallCloserMockRecorder) ConnectControllerStream(arg0, arg1, arg2, arg3 any) *MockAPICallCloserConnectControllerStreamCall
ConnectControllerStream indicates an expected call of ConnectControllerStream.
func (*MockAPICallCloserMockRecorder) ConnectStream ¶
func (mr *MockAPICallCloserMockRecorder) ConnectStream(arg0, arg1, arg2 any) *MockAPICallCloserConnectStreamCall
ConnectStream indicates an expected call of ConnectStream.
func (*MockAPICallCloserMockRecorder) HTTPClient ¶
func (mr *MockAPICallCloserMockRecorder) HTTPClient() *MockAPICallCloserHTTPClientCall
HTTPClient indicates an expected call of HTTPClient.
func (*MockAPICallCloserMockRecorder) ModelTag ¶
func (mr *MockAPICallCloserMockRecorder) ModelTag() *MockAPICallCloserModelTagCall
ModelTag indicates an expected call of ModelTag.
func (*MockAPICallCloserMockRecorder) RootHTTPClient ¶
func (mr *MockAPICallCloserMockRecorder) RootHTTPClient() *MockAPICallCloserRootHTTPClientCall
RootHTTPClient indicates an expected call of RootHTTPClient.
type MockAPICallCloserModelTagCall ¶
MockAPICallCloserModelTagCall wrap *gomock.Call
func (*MockAPICallCloserModelTagCall) Do ¶
func (c *MockAPICallCloserModelTagCall) Do(f func() (names.ModelTag, bool)) *MockAPICallCloserModelTagCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserModelTagCall) DoAndReturn ¶
func (c *MockAPICallCloserModelTagCall) DoAndReturn(f func() (names.ModelTag, bool)) *MockAPICallCloserModelTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserModelTagCall) Return ¶
func (c *MockAPICallCloserModelTagCall) Return(arg0 names.ModelTag, arg1 bool) *MockAPICallCloserModelTagCall
Return rewrite *gomock.Call.Return
type MockAPICallCloserRootHTTPClientCall ¶
MockAPICallCloserRootHTTPClientCall wrap *gomock.Call
func (*MockAPICallCloserRootHTTPClientCall) Do ¶
func (c *MockAPICallCloserRootHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallCloserRootHTTPClientCall
Do rewrite *gomock.Call.Do
func (*MockAPICallCloserRootHTTPClientCall) DoAndReturn ¶
func (c *MockAPICallCloserRootHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallCloserRootHTTPClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallCloserRootHTTPClientCall) Return ¶
func (c *MockAPICallCloserRootHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallCloserRootHTTPClientCall
Return rewrite *gomock.Call.Return
type MockDoer ¶
type MockDoer struct {
// contains filtered or unexported fields
}
MockDoer is a mock of Doer interface.
func NewMockDoer ¶
func NewMockDoer(ctrl *gomock.Controller) *MockDoer
NewMockDoer creates a new mock instance.
func (*MockDoer) EXPECT ¶
func (m *MockDoer) EXPECT() *MockDoerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDoerDoCall ¶
MockDoerDoCall wrap *gomock.Call
func (*MockDoerDoCall) Do ¶
func (c *MockDoerDoCall) Do(f func(*http.Request) (*http.Response, error)) *MockDoerDoCall
Do rewrite *gomock.Call.Do
func (*MockDoerDoCall) DoAndReturn ¶
func (c *MockDoerDoCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockDoerDoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDoerDoCall) Return ¶
func (c *MockDoerDoCall) Return(arg0 *http.Response, arg1 error) *MockDoerDoCall
Return rewrite *gomock.Call.Return
type MockDoerMockRecorder ¶
type MockDoerMockRecorder struct {
// contains filtered or unexported fields
}
MockDoerMockRecorder is the mock recorder for MockDoer.
func (*MockDoerMockRecorder) Do ¶
func (mr *MockDoerMockRecorder) Do(arg0 any) *MockDoerDoCall
Do indicates an expected call of Do.