mocks

package
v0.0.0-...-0a82276 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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) Addr

func (m *MockConnection) Addr() string

Addr 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) Close

func (m *MockConnection) Close() error

Close 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

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) IPAddr

func (m *MockConnection) IPAddr() string

IPAddr 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

type MockConnectionAPICallCall struct {
	*gomock.Call
}

MockConnectionAPICallCall wrap *gomock.Call

func (*MockConnectionAPICallCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionAPICallCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionAPICallCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionAPIHostPortsCall

type MockConnectionAPIHostPortsCall struct {
	*gomock.Call
}

MockConnectionAPIHostPortsCall wrap *gomock.Call

func (*MockConnectionAPIHostPortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionAPIHostPortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionAPIHostPortsCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionAddrCall

type MockConnectionAddrCall struct {
	*gomock.Call
}

MockConnectionAddrCall wrap *gomock.Call

func (*MockConnectionAddrCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionAddrCall) DoAndReturn

func (c *MockConnectionAddrCall) DoAndReturn(f func() string) *MockConnectionAddrCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionAddrCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionAuthTagCall

type MockConnectionAuthTagCall struct {
	*gomock.Call
}

MockConnectionAuthTagCall wrap *gomock.Call

func (*MockConnectionAuthTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionAuthTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionAuthTagCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionBakeryClientCall

type MockConnectionBakeryClientCall struct {
	*gomock.Call
}

MockConnectionBakeryClientCall wrap *gomock.Call

func (*MockConnectionBakeryClientCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionBakeryClientCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionBakeryClientCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionBestFacadeVersionCall

type MockConnectionBestFacadeVersionCall struct {
	*gomock.Call
}

MockConnectionBestFacadeVersionCall wrap *gomock.Call

func (*MockConnectionBestFacadeVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionBestFacadeVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionBestFacadeVersionCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionBrokenCall

type MockConnectionBrokenCall struct {
	*gomock.Call
}

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

type MockConnectionCloseCall struct {
	*gomock.Call
}

MockConnectionCloseCall wrap *gomock.Call

func (*MockConnectionCloseCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionCloseCall) DoAndReturn

func (c *MockConnectionCloseCall) DoAndReturn(f func() error) *MockConnectionCloseCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionCloseCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionConnectControllerStreamCall

type MockConnectionConnectControllerStreamCall struct {
	*gomock.Call
}

MockConnectionConnectControllerStreamCall wrap *gomock.Call

func (*MockConnectionConnectControllerStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionConnectControllerStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionConnectControllerStreamCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionConnectStreamCall

type MockConnectionConnectStreamCall struct {
	*gomock.Call
}

MockConnectionConnectStreamCall wrap *gomock.Call

func (*MockConnectionConnectStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionConnectStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionConnectStreamCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionControllerAccessCall

type MockConnectionControllerAccessCall struct {
	*gomock.Call
}

MockConnectionControllerAccessCall wrap *gomock.Call

func (*MockConnectionControllerAccessCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionControllerAccessCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionControllerAccessCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionControllerTagCall

type MockConnectionControllerTagCall struct {
	*gomock.Call
}

MockConnectionControllerTagCall wrap *gomock.Call

func (*MockConnectionControllerTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionControllerTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionControllerTagCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionCookieURLCall

type MockConnectionCookieURLCall struct {
	*gomock.Call
}

MockConnectionCookieURLCall wrap *gomock.Call

func (*MockConnectionCookieURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionCookieURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionCookieURLCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionHTTPClientCall

type MockConnectionHTTPClientCall struct {
	*gomock.Call
}

MockConnectionHTTPClientCall wrap *gomock.Call

func (*MockConnectionHTTPClientCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionHTTPClientCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionHTTPClientCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionIPAddrCall

type MockConnectionIPAddrCall struct {
	*gomock.Call
}

MockConnectionIPAddrCall wrap *gomock.Call

func (*MockConnectionIPAddrCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionIPAddrCall) DoAndReturn

func (c *MockConnectionIPAddrCall) DoAndReturn(f func() string) *MockConnectionIPAddrCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionIPAddrCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionIsBrokenCall

type MockConnectionIsBrokenCall struct {
	*gomock.Call
}

MockConnectionIsBrokenCall wrap *gomock.Call

func (*MockConnectionIsBrokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionIsBrokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionIsBrokenCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionIsProxiedCall

type MockConnectionIsProxiedCall struct {
	*gomock.Call
}

MockConnectionIsProxiedCall wrap *gomock.Call

func (*MockConnectionIsProxiedCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionIsProxiedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionIsProxiedCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionLoginCall

type MockConnectionLoginCall struct {
	*gomock.Call
}

MockConnectionLoginCall wrap *gomock.Call

func (*MockConnectionLoginCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionLoginCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionLoginCall) Return

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

APIHostPorts indicates an expected call of APIHostPorts.

func (*MockConnectionMockRecorder) Addr

Addr indicates an expected call of Addr.

func (*MockConnectionMockRecorder) AuthTag

AuthTag indicates an expected call of AuthTag.

func (*MockConnectionMockRecorder) BakeryClient

BakeryClient indicates an expected call of BakeryClient.

func (*MockConnectionMockRecorder) BestFacadeVersion

BestFacadeVersion indicates an expected call of BestFacadeVersion.

func (*MockConnectionMockRecorder) Broken

Broken indicates an expected call of Broken.

func (*MockConnectionMockRecorder) Close

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

ControllerAccess indicates an expected call of ControllerAccess.

func (*MockConnectionMockRecorder) ControllerTag

ControllerTag indicates an expected call of ControllerTag.

func (*MockConnectionMockRecorder) CookieURL

CookieURL indicates an expected call of CookieURL.

func (*MockConnectionMockRecorder) HTTPClient

HTTPClient indicates an expected call of HTTPClient.

func (*MockConnectionMockRecorder) IPAddr

IPAddr indicates an expected call of IPAddr.

func (*MockConnectionMockRecorder) IsBroken

IsBroken indicates an expected call of IsBroken.

func (*MockConnectionMockRecorder) IsProxied

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

ModelTag indicates an expected call of ModelTag.

func (*MockConnectionMockRecorder) Proxy

Proxy indicates an expected call of Proxy.

func (*MockConnectionMockRecorder) PublicDNSName

PublicDNSName indicates an expected call of PublicDNSName.

func (*MockConnectionMockRecorder) RootHTTPClient

RootHTTPClient indicates an expected call of RootHTTPClient.

func (*MockConnectionMockRecorder) ServerVersion

ServerVersion indicates an expected call of ServerVersion.

type MockConnectionModelTagCall

type MockConnectionModelTagCall struct {
	*gomock.Call
}

MockConnectionModelTagCall wrap *gomock.Call

func (*MockConnectionModelTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionModelTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionModelTagCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionProxyCall

type MockConnectionProxyCall struct {
	*gomock.Call
}

MockConnectionProxyCall wrap *gomock.Call

func (*MockConnectionProxyCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionProxyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionProxyCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionPublicDNSNameCall

type MockConnectionPublicDNSNameCall struct {
	*gomock.Call
}

MockConnectionPublicDNSNameCall wrap *gomock.Call

func (*MockConnectionPublicDNSNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionPublicDNSNameCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionPublicDNSNameCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionRootHTTPClientCall

type MockConnectionRootHTTPClientCall struct {
	*gomock.Call
}

MockConnectionRootHTTPClientCall wrap *gomock.Call

func (*MockConnectionRootHTTPClientCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionRootHTTPClientCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionRootHTTPClientCall) Return

Return rewrite *gomock.Call.Return

type MockConnectionServerVersionCall

type MockConnectionServerVersionCall struct {
	*gomock.Call
}

MockConnectionServerVersionCall wrap *gomock.Call

func (*MockConnectionServerVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnectionServerVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnectionServerVersionCall) Return

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockModelConfigAPI) ModelGet

func (m *MockModelConfigAPI) ModelGet(arg0 context.Context) (map[string]any, error)

ModelGet mocks base method.

type MockModelConfigAPIMockRecorder

type MockModelConfigAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockModelConfigAPIMockRecorder is the mock recorder for MockModelConfigAPI.

func (*MockModelConfigAPIMockRecorder) ModelGet

ModelGet indicates an expected call of ModelGet.

type MockModelConfigAPIModelGetCall

type MockModelConfigAPIModelGetCall struct {
	*gomock.Call
}

MockModelConfigAPIModelGetCall wrap *gomock.Call

func (*MockModelConfigAPIModelGetCall) Do

Do rewrite *gomock.Call.Do

func (*MockModelConfigAPIModelGetCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockModelConfigAPIModelGetCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL