Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockConnection
- func (m *MockConnection) APICall(arg0 context.Context, arg1 string, arg2 int, arg3, arg4 string, arg5, arg6 any) error
- func (m *MockConnection) APIHostPorts() []network.MachineHostPorts
- func (m *MockConnection) Addr() string
- func (m *MockConnection) AuthTag() names.Tag
- func (m *MockConnection) BakeryClient() base.MacaroonDischarger
- func (m *MockConnection) BestFacadeVersion(arg0 string) int
- func (m *MockConnection) Broken() <-chan struct{}
- func (m *MockConnection) Close() error
- func (m *MockConnection) ConnectControllerStream(arg0 context.Context, arg1 string, arg2 url.Values, arg3 http.Header) (base.Stream, error)
- func (m *MockConnection) ConnectStream(arg0 context.Context, arg1 string, arg2 url.Values) (base.Stream, error)
- func (m *MockConnection) ControllerAccess() string
- func (m *MockConnection) ControllerTag() names.ControllerTag
- func (m *MockConnection) CookieURL() *url.URL
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) HTTPClient() (*httprequest.Client, error)
- func (m *MockConnection) IPAddr() string
- func (m *MockConnection) IsBroken(arg0 context.Context) bool
- func (m *MockConnection) IsProxied() bool
- func (m *MockConnection) Login(arg0 context.Context, arg1 names.Tag, arg2, arg3 string, arg4 []macaroon.Slice) error
- func (m *MockConnection) ModelTag() (names.ModelTag, bool)
- func (m *MockConnection) Proxy() proxy.Proxier
- func (m *MockConnection) PublicDNSName() string
- func (m *MockConnection) RootHTTPClient() (*httprequest.Client, error)
- func (m *MockConnection) ServerVersion() (version.Number, bool)
- type MockConnectionAPICallCall
- func (c *MockConnectionAPICallCall) Do(f func(context.Context, string, int, string, string, any, any) error) *MockConnectionAPICallCall
- func (c *MockConnectionAPICallCall) DoAndReturn(f func(context.Context, string, int, string, string, any, any) error) *MockConnectionAPICallCall
- func (c *MockConnectionAPICallCall) Return(arg0 error) *MockConnectionAPICallCall
- type MockConnectionAPIHostPortsCall
- func (c *MockConnectionAPIHostPortsCall) Do(f func() []network.MachineHostPorts) *MockConnectionAPIHostPortsCall
- func (c *MockConnectionAPIHostPortsCall) DoAndReturn(f func() []network.MachineHostPorts) *MockConnectionAPIHostPortsCall
- func (c *MockConnectionAPIHostPortsCall) Return(arg0 []network.MachineHostPorts) *MockConnectionAPIHostPortsCall
- type MockConnectionAddrCall
- type MockConnectionAuthTagCall
- type MockConnectionBakeryClientCall
- func (c *MockConnectionBakeryClientCall) Do(f func() base.MacaroonDischarger) *MockConnectionBakeryClientCall
- func (c *MockConnectionBakeryClientCall) DoAndReturn(f func() base.MacaroonDischarger) *MockConnectionBakeryClientCall
- func (c *MockConnectionBakeryClientCall) Return(arg0 base.MacaroonDischarger) *MockConnectionBakeryClientCall
- type MockConnectionBestFacadeVersionCall
- func (c *MockConnectionBestFacadeVersionCall) Do(f func(string) int) *MockConnectionBestFacadeVersionCall
- func (c *MockConnectionBestFacadeVersionCall) DoAndReturn(f func(string) int) *MockConnectionBestFacadeVersionCall
- func (c *MockConnectionBestFacadeVersionCall) Return(arg0 int) *MockConnectionBestFacadeVersionCall
- type MockConnectionBrokenCall
- type MockConnectionCloseCall
- type MockConnectionConnectControllerStreamCall
- func (c *MockConnectionConnectControllerStreamCall) Do(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockConnectionConnectControllerStreamCall
- func (c *MockConnectionConnectControllerStreamCall) DoAndReturn(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockConnectionConnectControllerStreamCall
- func (c *MockConnectionConnectControllerStreamCall) Return(arg0 base.Stream, arg1 error) *MockConnectionConnectControllerStreamCall
- type MockConnectionConnectStreamCall
- func (c *MockConnectionConnectStreamCall) Do(f func(context.Context, string, url.Values) (base.Stream, error)) *MockConnectionConnectStreamCall
- func (c *MockConnectionConnectStreamCall) DoAndReturn(f func(context.Context, string, url.Values) (base.Stream, error)) *MockConnectionConnectStreamCall
- func (c *MockConnectionConnectStreamCall) Return(arg0 base.Stream, arg1 error) *MockConnectionConnectStreamCall
- type MockConnectionControllerAccessCall
- func (c *MockConnectionControllerAccessCall) Do(f func() string) *MockConnectionControllerAccessCall
- func (c *MockConnectionControllerAccessCall) DoAndReturn(f func() string) *MockConnectionControllerAccessCall
- func (c *MockConnectionControllerAccessCall) Return(arg0 string) *MockConnectionControllerAccessCall
- type MockConnectionControllerTagCall
- func (c *MockConnectionControllerTagCall) Do(f func() names.ControllerTag) *MockConnectionControllerTagCall
- func (c *MockConnectionControllerTagCall) DoAndReturn(f func() names.ControllerTag) *MockConnectionControllerTagCall
- func (c *MockConnectionControllerTagCall) Return(arg0 names.ControllerTag) *MockConnectionControllerTagCall
- type MockConnectionCookieURLCall
- type MockConnectionHTTPClientCall
- func (c *MockConnectionHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockConnectionHTTPClientCall
- func (c *MockConnectionHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockConnectionHTTPClientCall
- func (c *MockConnectionHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockConnectionHTTPClientCall
- type MockConnectionIPAddrCall
- type MockConnectionIsBrokenCall
- type MockConnectionIsProxiedCall
- type MockConnectionLoginCall
- func (c *MockConnectionLoginCall) Do(f func(context.Context, names.Tag, string, string, []macaroon.Slice) error) *MockConnectionLoginCall
- func (c *MockConnectionLoginCall) DoAndReturn(f func(context.Context, names.Tag, string, string, []macaroon.Slice) error) *MockConnectionLoginCall
- func (c *MockConnectionLoginCall) Return(arg0 error) *MockConnectionLoginCall
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockConnectionAPICallCall
- func (mr *MockConnectionMockRecorder) APIHostPorts() *MockConnectionAPIHostPortsCall
- func (mr *MockConnectionMockRecorder) Addr() *MockConnectionAddrCall
- func (mr *MockConnectionMockRecorder) AuthTag() *MockConnectionAuthTagCall
- func (mr *MockConnectionMockRecorder) BakeryClient() *MockConnectionBakeryClientCall
- func (mr *MockConnectionMockRecorder) BestFacadeVersion(arg0 any) *MockConnectionBestFacadeVersionCall
- func (mr *MockConnectionMockRecorder) Broken() *MockConnectionBrokenCall
- func (mr *MockConnectionMockRecorder) Close() *MockConnectionCloseCall
- func (mr *MockConnectionMockRecorder) ConnectControllerStream(arg0, arg1, arg2, arg3 any) *MockConnectionConnectControllerStreamCall
- func (mr *MockConnectionMockRecorder) ConnectStream(arg0, arg1, arg2 any) *MockConnectionConnectStreamCall
- func (mr *MockConnectionMockRecorder) ControllerAccess() *MockConnectionControllerAccessCall
- func (mr *MockConnectionMockRecorder) ControllerTag() *MockConnectionControllerTagCall
- func (mr *MockConnectionMockRecorder) CookieURL() *MockConnectionCookieURLCall
- func (mr *MockConnectionMockRecorder) HTTPClient() *MockConnectionHTTPClientCall
- func (mr *MockConnectionMockRecorder) IPAddr() *MockConnectionIPAddrCall
- func (mr *MockConnectionMockRecorder) IsBroken(arg0 any) *MockConnectionIsBrokenCall
- func (mr *MockConnectionMockRecorder) IsProxied() *MockConnectionIsProxiedCall
- func (mr *MockConnectionMockRecorder) Login(arg0, arg1, arg2, arg3, arg4 any) *MockConnectionLoginCall
- func (mr *MockConnectionMockRecorder) ModelTag() *MockConnectionModelTagCall
- func (mr *MockConnectionMockRecorder) Proxy() *MockConnectionProxyCall
- func (mr *MockConnectionMockRecorder) PublicDNSName() *MockConnectionPublicDNSNameCall
- func (mr *MockConnectionMockRecorder) RootHTTPClient() *MockConnectionRootHTTPClientCall
- func (mr *MockConnectionMockRecorder) ServerVersion() *MockConnectionServerVersionCall
- type MockConnectionModelTagCall
- func (c *MockConnectionModelTagCall) Do(f func() (names.ModelTag, bool)) *MockConnectionModelTagCall
- func (c *MockConnectionModelTagCall) DoAndReturn(f func() (names.ModelTag, bool)) *MockConnectionModelTagCall
- func (c *MockConnectionModelTagCall) Return(arg0 names.ModelTag, arg1 bool) *MockConnectionModelTagCall
- type MockConnectionProxyCall
- type MockConnectionPublicDNSNameCall
- type MockConnectionRootHTTPClientCall
- func (c *MockConnectionRootHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockConnectionRootHTTPClientCall
- func (c *MockConnectionRootHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockConnectionRootHTTPClientCall
- func (c *MockConnectionRootHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockConnectionRootHTTPClientCall
- type MockConnectionServerVersionCall
- func (c *MockConnectionServerVersionCall) Do(f func() (version.Number, bool)) *MockConnectionServerVersionCall
- func (c *MockConnectionServerVersionCall) DoAndReturn(f func() (version.Number, bool)) *MockConnectionServerVersionCall
- func (c *MockConnectionServerVersionCall) Return(arg0 version.Number, arg1 bool) *MockConnectionServerVersionCall
- type MockModelConfigAPI
- type MockModelConfigAPIMockRecorder
- type MockModelConfigAPIModelGetCall
- func (c *MockModelConfigAPIModelGetCall) Do(f func(context.Context) (map[string]any, error)) *MockModelConfigAPIModelGetCall
- func (c *MockModelConfigAPIModelGetCall) DoAndReturn(f func(context.Context) (map[string]any, error)) *MockModelConfigAPIModelGetCall
- func (c *MockModelConfigAPIModelGetCall) Return(arg0 map[string]any, arg1 error) *MockModelConfigAPIModelGetCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface.
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance.
func (*MockConnection) APICall ¶
func (m *MockConnection) APICall(arg0 context.Context, arg1 string, arg2 int, arg3, arg4 string, arg5, arg6 any) error
APICall mocks base method.
func (*MockConnection) APIHostPorts ¶
func (m *MockConnection) APIHostPorts() []network.MachineHostPorts
APIHostPorts mocks base method.
func (*MockConnection) AuthTag ¶
func (m *MockConnection) AuthTag() names.Tag
AuthTag mocks base method.
func (*MockConnection) BakeryClient ¶
func (m *MockConnection) BakeryClient() base.MacaroonDischarger
BakeryClient mocks base method.
func (*MockConnection) BestFacadeVersion ¶
func (m *MockConnection) BestFacadeVersion(arg0 string) int
BestFacadeVersion mocks base method.
func (*MockConnection) Broken ¶
func (m *MockConnection) Broken() <-chan struct{}
Broken mocks base method.
func (*MockConnection) ConnectControllerStream ¶
func (m *MockConnection) ConnectControllerStream(arg0 context.Context, arg1 string, arg2 url.Values, arg3 http.Header) (base.Stream, error)
ConnectControllerStream mocks base method.
func (*MockConnection) ConnectStream ¶
func (m *MockConnection) ConnectStream(arg0 context.Context, arg1 string, arg2 url.Values) (base.Stream, error)
ConnectStream mocks base method.
func (*MockConnection) ControllerAccess ¶
func (m *MockConnection) ControllerAccess() string
ControllerAccess mocks base method.
func (*MockConnection) ControllerTag ¶
func (m *MockConnection) ControllerTag() names.ControllerTag
ControllerTag mocks base method.
func (*MockConnection) CookieURL ¶
func (m *MockConnection) CookieURL() *url.URL
CookieURL mocks base method.
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnection) HTTPClient ¶
func (m *MockConnection) HTTPClient() (*httprequest.Client, error)
HTTPClient mocks base method.
func (*MockConnection) IsBroken ¶
func (m *MockConnection) IsBroken(arg0 context.Context) bool
IsBroken mocks base method.
func (*MockConnection) IsProxied ¶
func (m *MockConnection) IsProxied() bool
IsProxied mocks base method.
func (*MockConnection) Login ¶
func (m *MockConnection) Login(arg0 context.Context, arg1 names.Tag, arg2, arg3 string, arg4 []macaroon.Slice) error
Login mocks base method.
func (*MockConnection) ModelTag ¶
func (m *MockConnection) ModelTag() (names.ModelTag, bool)
ModelTag mocks base method.
func (*MockConnection) Proxy ¶
func (m *MockConnection) Proxy() proxy.Proxier
Proxy mocks base method.
func (*MockConnection) PublicDNSName ¶
func (m *MockConnection) PublicDNSName() string
PublicDNSName mocks base method.
func (*MockConnection) RootHTTPClient ¶
func (m *MockConnection) RootHTTPClient() (*httprequest.Client, error)
RootHTTPClient mocks base method.
func (*MockConnection) ServerVersion ¶
func (m *MockConnection) ServerVersion() (version.Number, bool)
ServerVersion mocks base method.
type MockConnectionAPICallCall ¶
MockConnectionAPICallCall wrap *gomock.Call
func (*MockConnectionAPICallCall) Do ¶
func (c *MockConnectionAPICallCall) Do(f func(context.Context, string, int, string, string, any, any) error) *MockConnectionAPICallCall
Do rewrite *gomock.Call.Do
func (*MockConnectionAPICallCall) DoAndReturn ¶
func (c *MockConnectionAPICallCall) DoAndReturn(f func(context.Context, string, int, string, string, any, any) error) *MockConnectionAPICallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionAPICallCall) Return ¶
func (c *MockConnectionAPICallCall) Return(arg0 error) *MockConnectionAPICallCall
Return rewrite *gomock.Call.Return
type MockConnectionAPIHostPortsCall ¶
MockConnectionAPIHostPortsCall wrap *gomock.Call
func (*MockConnectionAPIHostPortsCall) Do ¶
func (c *MockConnectionAPIHostPortsCall) Do(f func() []network.MachineHostPorts) *MockConnectionAPIHostPortsCall
Do rewrite *gomock.Call.Do
func (*MockConnectionAPIHostPortsCall) DoAndReturn ¶
func (c *MockConnectionAPIHostPortsCall) DoAndReturn(f func() []network.MachineHostPorts) *MockConnectionAPIHostPortsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionAPIHostPortsCall) Return ¶
func (c *MockConnectionAPIHostPortsCall) Return(arg0 []network.MachineHostPorts) *MockConnectionAPIHostPortsCall
Return rewrite *gomock.Call.Return
type MockConnectionAddrCall ¶
MockConnectionAddrCall wrap *gomock.Call
func (*MockConnectionAddrCall) Do ¶
func (c *MockConnectionAddrCall) Do(f func() string) *MockConnectionAddrCall
Do rewrite *gomock.Call.Do
func (*MockConnectionAddrCall) DoAndReturn ¶
func (c *MockConnectionAddrCall) DoAndReturn(f func() string) *MockConnectionAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionAddrCall) Return ¶
func (c *MockConnectionAddrCall) Return(arg0 string) *MockConnectionAddrCall
Return rewrite *gomock.Call.Return
type MockConnectionAuthTagCall ¶
MockConnectionAuthTagCall wrap *gomock.Call
func (*MockConnectionAuthTagCall) Do ¶
func (c *MockConnectionAuthTagCall) Do(f func() names.Tag) *MockConnectionAuthTagCall
Do rewrite *gomock.Call.Do
func (*MockConnectionAuthTagCall) DoAndReturn ¶
func (c *MockConnectionAuthTagCall) DoAndReturn(f func() names.Tag) *MockConnectionAuthTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionAuthTagCall) Return ¶
func (c *MockConnectionAuthTagCall) Return(arg0 names.Tag) *MockConnectionAuthTagCall
Return rewrite *gomock.Call.Return
type MockConnectionBakeryClientCall ¶
MockConnectionBakeryClientCall wrap *gomock.Call
func (*MockConnectionBakeryClientCall) Do ¶
func (c *MockConnectionBakeryClientCall) Do(f func() base.MacaroonDischarger) *MockConnectionBakeryClientCall
Do rewrite *gomock.Call.Do
func (*MockConnectionBakeryClientCall) DoAndReturn ¶
func (c *MockConnectionBakeryClientCall) DoAndReturn(f func() base.MacaroonDischarger) *MockConnectionBakeryClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionBakeryClientCall) Return ¶
func (c *MockConnectionBakeryClientCall) Return(arg0 base.MacaroonDischarger) *MockConnectionBakeryClientCall
Return rewrite *gomock.Call.Return
type MockConnectionBestFacadeVersionCall ¶
MockConnectionBestFacadeVersionCall wrap *gomock.Call
func (*MockConnectionBestFacadeVersionCall) Do ¶
func (c *MockConnectionBestFacadeVersionCall) Do(f func(string) int) *MockConnectionBestFacadeVersionCall
Do rewrite *gomock.Call.Do
func (*MockConnectionBestFacadeVersionCall) DoAndReturn ¶
func (c *MockConnectionBestFacadeVersionCall) DoAndReturn(f func(string) int) *MockConnectionBestFacadeVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionBestFacadeVersionCall) Return ¶
func (c *MockConnectionBestFacadeVersionCall) Return(arg0 int) *MockConnectionBestFacadeVersionCall
Return rewrite *gomock.Call.Return
type MockConnectionBrokenCall ¶
MockConnectionBrokenCall wrap *gomock.Call
func (*MockConnectionBrokenCall) Do ¶
func (c *MockConnectionBrokenCall) Do(f func() <-chan struct{}) *MockConnectionBrokenCall
Do rewrite *gomock.Call.Do
func (*MockConnectionBrokenCall) DoAndReturn ¶
func (c *MockConnectionBrokenCall) DoAndReturn(f func() <-chan struct{}) *MockConnectionBrokenCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionBrokenCall) Return ¶
func (c *MockConnectionBrokenCall) Return(arg0 <-chan struct{}) *MockConnectionBrokenCall
Return rewrite *gomock.Call.Return
type MockConnectionCloseCall ¶
MockConnectionCloseCall wrap *gomock.Call
func (*MockConnectionCloseCall) Do ¶
func (c *MockConnectionCloseCall) Do(f func() error) *MockConnectionCloseCall
Do rewrite *gomock.Call.Do
func (*MockConnectionCloseCall) DoAndReturn ¶
func (c *MockConnectionCloseCall) DoAndReturn(f func() error) *MockConnectionCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionCloseCall) Return ¶
func (c *MockConnectionCloseCall) Return(arg0 error) *MockConnectionCloseCall
Return rewrite *gomock.Call.Return
type MockConnectionConnectControllerStreamCall ¶
MockConnectionConnectControllerStreamCall wrap *gomock.Call
func (*MockConnectionConnectControllerStreamCall) Do ¶
func (c *MockConnectionConnectControllerStreamCall) Do(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockConnectionConnectControllerStreamCall
Do rewrite *gomock.Call.Do
func (*MockConnectionConnectControllerStreamCall) DoAndReturn ¶
func (c *MockConnectionConnectControllerStreamCall) DoAndReturn(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockConnectionConnectControllerStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionConnectControllerStreamCall) Return ¶
func (c *MockConnectionConnectControllerStreamCall) Return(arg0 base.Stream, arg1 error) *MockConnectionConnectControllerStreamCall
Return rewrite *gomock.Call.Return
type MockConnectionConnectStreamCall ¶
MockConnectionConnectStreamCall wrap *gomock.Call
func (*MockConnectionConnectStreamCall) Do ¶
func (c *MockConnectionConnectStreamCall) Do(f func(context.Context, string, url.Values) (base.Stream, error)) *MockConnectionConnectStreamCall
Do rewrite *gomock.Call.Do
func (*MockConnectionConnectStreamCall) DoAndReturn ¶
func (c *MockConnectionConnectStreamCall) DoAndReturn(f func(context.Context, string, url.Values) (base.Stream, error)) *MockConnectionConnectStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionConnectStreamCall) Return ¶
func (c *MockConnectionConnectStreamCall) Return(arg0 base.Stream, arg1 error) *MockConnectionConnectStreamCall
Return rewrite *gomock.Call.Return
type MockConnectionControllerAccessCall ¶
MockConnectionControllerAccessCall wrap *gomock.Call
func (*MockConnectionControllerAccessCall) Do ¶
func (c *MockConnectionControllerAccessCall) Do(f func() string) *MockConnectionControllerAccessCall
Do rewrite *gomock.Call.Do
func (*MockConnectionControllerAccessCall) DoAndReturn ¶
func (c *MockConnectionControllerAccessCall) DoAndReturn(f func() string) *MockConnectionControllerAccessCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionControllerAccessCall) Return ¶
func (c *MockConnectionControllerAccessCall) Return(arg0 string) *MockConnectionControllerAccessCall
Return rewrite *gomock.Call.Return
type MockConnectionControllerTagCall ¶
MockConnectionControllerTagCall wrap *gomock.Call
func (*MockConnectionControllerTagCall) Do ¶
func (c *MockConnectionControllerTagCall) Do(f func() names.ControllerTag) *MockConnectionControllerTagCall
Do rewrite *gomock.Call.Do
func (*MockConnectionControllerTagCall) DoAndReturn ¶
func (c *MockConnectionControllerTagCall) DoAndReturn(f func() names.ControllerTag) *MockConnectionControllerTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionControllerTagCall) Return ¶
func (c *MockConnectionControllerTagCall) Return(arg0 names.ControllerTag) *MockConnectionControllerTagCall
Return rewrite *gomock.Call.Return
type MockConnectionCookieURLCall ¶
MockConnectionCookieURLCall wrap *gomock.Call
func (*MockConnectionCookieURLCall) Do ¶
func (c *MockConnectionCookieURLCall) Do(f func() *url.URL) *MockConnectionCookieURLCall
Do rewrite *gomock.Call.Do
func (*MockConnectionCookieURLCall) DoAndReturn ¶
func (c *MockConnectionCookieURLCall) DoAndReturn(f func() *url.URL) *MockConnectionCookieURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionCookieURLCall) Return ¶
func (c *MockConnectionCookieURLCall) Return(arg0 *url.URL) *MockConnectionCookieURLCall
Return rewrite *gomock.Call.Return
type MockConnectionHTTPClientCall ¶
MockConnectionHTTPClientCall wrap *gomock.Call
func (*MockConnectionHTTPClientCall) Do ¶
func (c *MockConnectionHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockConnectionHTTPClientCall
Do rewrite *gomock.Call.Do
func (*MockConnectionHTTPClientCall) DoAndReturn ¶
func (c *MockConnectionHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockConnectionHTTPClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionHTTPClientCall) Return ¶
func (c *MockConnectionHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockConnectionHTTPClientCall
Return rewrite *gomock.Call.Return
type MockConnectionIPAddrCall ¶
MockConnectionIPAddrCall wrap *gomock.Call
func (*MockConnectionIPAddrCall) Do ¶
func (c *MockConnectionIPAddrCall) Do(f func() string) *MockConnectionIPAddrCall
Do rewrite *gomock.Call.Do
func (*MockConnectionIPAddrCall) DoAndReturn ¶
func (c *MockConnectionIPAddrCall) DoAndReturn(f func() string) *MockConnectionIPAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionIPAddrCall) Return ¶
func (c *MockConnectionIPAddrCall) Return(arg0 string) *MockConnectionIPAddrCall
Return rewrite *gomock.Call.Return
type MockConnectionIsBrokenCall ¶
MockConnectionIsBrokenCall wrap *gomock.Call
func (*MockConnectionIsBrokenCall) Do ¶
func (c *MockConnectionIsBrokenCall) Do(f func(context.Context) bool) *MockConnectionIsBrokenCall
Do rewrite *gomock.Call.Do
func (*MockConnectionIsBrokenCall) DoAndReturn ¶
func (c *MockConnectionIsBrokenCall) DoAndReturn(f func(context.Context) bool) *MockConnectionIsBrokenCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionIsBrokenCall) Return ¶
func (c *MockConnectionIsBrokenCall) Return(arg0 bool) *MockConnectionIsBrokenCall
Return rewrite *gomock.Call.Return
type MockConnectionIsProxiedCall ¶
MockConnectionIsProxiedCall wrap *gomock.Call
func (*MockConnectionIsProxiedCall) Do ¶
func (c *MockConnectionIsProxiedCall) Do(f func() bool) *MockConnectionIsProxiedCall
Do rewrite *gomock.Call.Do
func (*MockConnectionIsProxiedCall) DoAndReturn ¶
func (c *MockConnectionIsProxiedCall) DoAndReturn(f func() bool) *MockConnectionIsProxiedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionIsProxiedCall) Return ¶
func (c *MockConnectionIsProxiedCall) Return(arg0 bool) *MockConnectionIsProxiedCall
Return rewrite *gomock.Call.Return
type MockConnectionLoginCall ¶
MockConnectionLoginCall wrap *gomock.Call
func (*MockConnectionLoginCall) Do ¶
func (c *MockConnectionLoginCall) Do(f func(context.Context, names.Tag, string, string, []macaroon.Slice) error) *MockConnectionLoginCall
Do rewrite *gomock.Call.Do
func (*MockConnectionLoginCall) DoAndReturn ¶
func (c *MockConnectionLoginCall) DoAndReturn(f func(context.Context, names.Tag, string, string, []macaroon.Slice) error) *MockConnectionLoginCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionLoginCall) Return ¶
func (c *MockConnectionLoginCall) Return(arg0 error) *MockConnectionLoginCall
Return rewrite *gomock.Call.Return
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection.
func (*MockConnectionMockRecorder) APICall ¶
func (mr *MockConnectionMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockConnectionAPICallCall
APICall indicates an expected call of APICall.
func (*MockConnectionMockRecorder) APIHostPorts ¶
func (mr *MockConnectionMockRecorder) APIHostPorts() *MockConnectionAPIHostPortsCall
APIHostPorts indicates an expected call of APIHostPorts.
func (*MockConnectionMockRecorder) Addr ¶
func (mr *MockConnectionMockRecorder) Addr() *MockConnectionAddrCall
Addr indicates an expected call of Addr.
func (*MockConnectionMockRecorder) AuthTag ¶
func (mr *MockConnectionMockRecorder) AuthTag() *MockConnectionAuthTagCall
AuthTag indicates an expected call of AuthTag.
func (*MockConnectionMockRecorder) BakeryClient ¶
func (mr *MockConnectionMockRecorder) BakeryClient() *MockConnectionBakeryClientCall
BakeryClient indicates an expected call of BakeryClient.
func (*MockConnectionMockRecorder) BestFacadeVersion ¶
func (mr *MockConnectionMockRecorder) BestFacadeVersion(arg0 any) *MockConnectionBestFacadeVersionCall
BestFacadeVersion indicates an expected call of BestFacadeVersion.
func (*MockConnectionMockRecorder) Broken ¶
func (mr *MockConnectionMockRecorder) Broken() *MockConnectionBrokenCall
Broken indicates an expected call of Broken.
func (*MockConnectionMockRecorder) Close ¶
func (mr *MockConnectionMockRecorder) Close() *MockConnectionCloseCall
Close indicates an expected call of Close.
func (*MockConnectionMockRecorder) ConnectControllerStream ¶
func (mr *MockConnectionMockRecorder) ConnectControllerStream(arg0, arg1, arg2, arg3 any) *MockConnectionConnectControllerStreamCall
ConnectControllerStream indicates an expected call of ConnectControllerStream.
func (*MockConnectionMockRecorder) ConnectStream ¶
func (mr *MockConnectionMockRecorder) ConnectStream(arg0, arg1, arg2 any) *MockConnectionConnectStreamCall
ConnectStream indicates an expected call of ConnectStream.
func (*MockConnectionMockRecorder) ControllerAccess ¶
func (mr *MockConnectionMockRecorder) ControllerAccess() *MockConnectionControllerAccessCall
ControllerAccess indicates an expected call of ControllerAccess.
func (*MockConnectionMockRecorder) ControllerTag ¶
func (mr *MockConnectionMockRecorder) ControllerTag() *MockConnectionControllerTagCall
ControllerTag indicates an expected call of ControllerTag.
func (*MockConnectionMockRecorder) CookieURL ¶
func (mr *MockConnectionMockRecorder) CookieURL() *MockConnectionCookieURLCall
CookieURL indicates an expected call of CookieURL.
func (*MockConnectionMockRecorder) HTTPClient ¶
func (mr *MockConnectionMockRecorder) HTTPClient() *MockConnectionHTTPClientCall
HTTPClient indicates an expected call of HTTPClient.
func (*MockConnectionMockRecorder) IPAddr ¶
func (mr *MockConnectionMockRecorder) IPAddr() *MockConnectionIPAddrCall
IPAddr indicates an expected call of IPAddr.
func (*MockConnectionMockRecorder) IsBroken ¶
func (mr *MockConnectionMockRecorder) IsBroken(arg0 any) *MockConnectionIsBrokenCall
IsBroken indicates an expected call of IsBroken.
func (*MockConnectionMockRecorder) IsProxied ¶
func (mr *MockConnectionMockRecorder) IsProxied() *MockConnectionIsProxiedCall
IsProxied indicates an expected call of IsProxied.
func (*MockConnectionMockRecorder) Login ¶
func (mr *MockConnectionMockRecorder) Login(arg0, arg1, arg2, arg3, arg4 any) *MockConnectionLoginCall
Login indicates an expected call of Login.
func (*MockConnectionMockRecorder) ModelTag ¶
func (mr *MockConnectionMockRecorder) ModelTag() *MockConnectionModelTagCall
ModelTag indicates an expected call of ModelTag.
func (*MockConnectionMockRecorder) Proxy ¶
func (mr *MockConnectionMockRecorder) Proxy() *MockConnectionProxyCall
Proxy indicates an expected call of Proxy.
func (*MockConnectionMockRecorder) PublicDNSName ¶
func (mr *MockConnectionMockRecorder) PublicDNSName() *MockConnectionPublicDNSNameCall
PublicDNSName indicates an expected call of PublicDNSName.
func (*MockConnectionMockRecorder) RootHTTPClient ¶
func (mr *MockConnectionMockRecorder) RootHTTPClient() *MockConnectionRootHTTPClientCall
RootHTTPClient indicates an expected call of RootHTTPClient.
func (*MockConnectionMockRecorder) ServerVersion ¶
func (mr *MockConnectionMockRecorder) ServerVersion() *MockConnectionServerVersionCall
ServerVersion indicates an expected call of ServerVersion.
type MockConnectionModelTagCall ¶
MockConnectionModelTagCall wrap *gomock.Call
func (*MockConnectionModelTagCall) Do ¶
func (c *MockConnectionModelTagCall) Do(f func() (names.ModelTag, bool)) *MockConnectionModelTagCall
Do rewrite *gomock.Call.Do
func (*MockConnectionModelTagCall) DoAndReturn ¶
func (c *MockConnectionModelTagCall) DoAndReturn(f func() (names.ModelTag, bool)) *MockConnectionModelTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionModelTagCall) Return ¶
func (c *MockConnectionModelTagCall) Return(arg0 names.ModelTag, arg1 bool) *MockConnectionModelTagCall
Return rewrite *gomock.Call.Return
type MockConnectionProxyCall ¶
MockConnectionProxyCall wrap *gomock.Call
func (*MockConnectionProxyCall) Do ¶
func (c *MockConnectionProxyCall) Do(f func() proxy.Proxier) *MockConnectionProxyCall
Do rewrite *gomock.Call.Do
func (*MockConnectionProxyCall) DoAndReturn ¶
func (c *MockConnectionProxyCall) DoAndReturn(f func() proxy.Proxier) *MockConnectionProxyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionProxyCall) Return ¶
func (c *MockConnectionProxyCall) Return(arg0 proxy.Proxier) *MockConnectionProxyCall
Return rewrite *gomock.Call.Return
type MockConnectionPublicDNSNameCall ¶
MockConnectionPublicDNSNameCall wrap *gomock.Call
func (*MockConnectionPublicDNSNameCall) Do ¶
func (c *MockConnectionPublicDNSNameCall) Do(f func() string) *MockConnectionPublicDNSNameCall
Do rewrite *gomock.Call.Do
func (*MockConnectionPublicDNSNameCall) DoAndReturn ¶
func (c *MockConnectionPublicDNSNameCall) DoAndReturn(f func() string) *MockConnectionPublicDNSNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionPublicDNSNameCall) Return ¶
func (c *MockConnectionPublicDNSNameCall) Return(arg0 string) *MockConnectionPublicDNSNameCall
Return rewrite *gomock.Call.Return
type MockConnectionRootHTTPClientCall ¶
MockConnectionRootHTTPClientCall wrap *gomock.Call
func (*MockConnectionRootHTTPClientCall) Do ¶
func (c *MockConnectionRootHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockConnectionRootHTTPClientCall
Do rewrite *gomock.Call.Do
func (*MockConnectionRootHTTPClientCall) DoAndReturn ¶
func (c *MockConnectionRootHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockConnectionRootHTTPClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionRootHTTPClientCall) Return ¶
func (c *MockConnectionRootHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockConnectionRootHTTPClientCall
Return rewrite *gomock.Call.Return
type MockConnectionServerVersionCall ¶
MockConnectionServerVersionCall wrap *gomock.Call
func (*MockConnectionServerVersionCall) Do ¶
func (c *MockConnectionServerVersionCall) Do(f func() (version.Number, bool)) *MockConnectionServerVersionCall
Do rewrite *gomock.Call.Do
func (*MockConnectionServerVersionCall) DoAndReturn ¶
func (c *MockConnectionServerVersionCall) DoAndReturn(f func() (version.Number, bool)) *MockConnectionServerVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnectionServerVersionCall) Return ¶
func (c *MockConnectionServerVersionCall) Return(arg0 version.Number, arg1 bool) *MockConnectionServerVersionCall
Return rewrite *gomock.Call.Return
type MockModelConfigAPI ¶
type MockModelConfigAPI struct {
// contains filtered or unexported fields
}
MockModelConfigAPI is a mock of ModelConfigAPI interface.
func NewMockModelConfigAPI ¶
func NewMockModelConfigAPI(ctrl *gomock.Controller) *MockModelConfigAPI
NewMockModelConfigAPI creates a new mock instance.
func (*MockModelConfigAPI) EXPECT ¶
func (m *MockModelConfigAPI) EXPECT() *MockModelConfigAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockModelConfigAPIMockRecorder ¶
type MockModelConfigAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockModelConfigAPIMockRecorder is the mock recorder for MockModelConfigAPI.
func (*MockModelConfigAPIMockRecorder) ModelGet ¶
func (mr *MockModelConfigAPIMockRecorder) ModelGet(arg0 any) *MockModelConfigAPIModelGetCall
ModelGet indicates an expected call of ModelGet.
type MockModelConfigAPIModelGetCall ¶
MockModelConfigAPIModelGetCall wrap *gomock.Call
func (*MockModelConfigAPIModelGetCall) Do ¶
func (c *MockModelConfigAPIModelGetCall) Do(f func(context.Context) (map[string]any, error)) *MockModelConfigAPIModelGetCall
Do rewrite *gomock.Call.Do
func (*MockModelConfigAPIModelGetCall) DoAndReturn ¶
func (c *MockModelConfigAPIModelGetCall) DoAndReturn(f func(context.Context) (map[string]any, error)) *MockModelConfigAPIModelGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockModelConfigAPIModelGetCall) Return ¶
func (c *MockModelConfigAPIModelGetCall) Return(arg0 map[string]any, arg1 error) *MockModelConfigAPIModelGetCall
Return rewrite *gomock.Call.Return