mocks

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 13 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 MockAPICaller

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

MockAPICaller is a mock of APICaller interface.

func NewMockAPICaller

func NewMockAPICaller(ctrl *gomock.Controller) *MockAPICaller

NewMockAPICaller creates a new mock instance.

func (*MockAPICaller) APICall

func (m *MockAPICaller) APICall(arg0 context.Context, arg1 string, arg2 int, arg3, arg4 string, arg5, arg6 any) error

APICall mocks base method.

func (*MockAPICaller) BakeryClient

func (m *MockAPICaller) BakeryClient() base.MacaroonDischarger

BakeryClient mocks base method.

func (*MockAPICaller) BestFacadeVersion

func (m *MockAPICaller) BestFacadeVersion(arg0 string) int

BestFacadeVersion mocks base method.

func (*MockAPICaller) ConnectControllerStream

func (m *MockAPICaller) ConnectControllerStream(arg0 context.Context, arg1 string, arg2 url.Values, arg3 http.Header) (base.Stream, error)

ConnectControllerStream mocks base method.

func (*MockAPICaller) ConnectStream

func (m *MockAPICaller) ConnectStream(arg0 context.Context, arg1 string, arg2 url.Values) (base.Stream, error)

ConnectStream mocks base method.

func (*MockAPICaller) EXPECT

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

func (*MockAPICaller) HTTPClient

func (m *MockAPICaller) HTTPClient() (*httprequest.Client, error)

HTTPClient mocks base method.

func (*MockAPICaller) ModelTag

func (m *MockAPICaller) ModelTag() (names.ModelTag, bool)

ModelTag mocks base method.

func (*MockAPICaller) RootHTTPClient

func (m *MockAPICaller) RootHTTPClient() (*httprequest.Client, error)

RootHTTPClient mocks base method.

type MockAPICallerAPICallCall

type MockAPICallerAPICallCall struct {
	*gomock.Call
}

MockAPICallerAPICallCall wrap *gomock.Call

func (*MockAPICallerAPICallCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerAPICallCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerAPICallCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallerBakeryClientCall

type MockAPICallerBakeryClientCall struct {
	*gomock.Call
}

MockAPICallerBakeryClientCall wrap *gomock.Call

func (*MockAPICallerBakeryClientCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerBakeryClientCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerBakeryClientCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallerBestFacadeVersionCall

type MockAPICallerBestFacadeVersionCall struct {
	*gomock.Call
}

MockAPICallerBestFacadeVersionCall wrap *gomock.Call

func (*MockAPICallerBestFacadeVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerBestFacadeVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerBestFacadeVersionCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallerConnectControllerStreamCall

type MockAPICallerConnectControllerStreamCall struct {
	*gomock.Call
}

MockAPICallerConnectControllerStreamCall wrap *gomock.Call

func (*MockAPICallerConnectControllerStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerConnectControllerStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerConnectControllerStreamCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallerConnectStreamCall

type MockAPICallerConnectStreamCall struct {
	*gomock.Call
}

MockAPICallerConnectStreamCall wrap *gomock.Call

func (*MockAPICallerConnectStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerConnectStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerConnectStreamCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallerHTTPClientCall

type MockAPICallerHTTPClientCall struct {
	*gomock.Call
}

MockAPICallerHTTPClientCall wrap *gomock.Call

func (*MockAPICallerHTTPClientCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerHTTPClientCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerHTTPClientCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallerMockRecorder

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

MockAPICallerMockRecorder is the mock recorder for MockAPICaller.

func (*MockAPICallerMockRecorder) APICall

func (mr *MockAPICallerMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockAPICallerAPICallCall

APICall indicates an expected call of APICall.

func (*MockAPICallerMockRecorder) BakeryClient

BakeryClient indicates an expected call of BakeryClient.

func (*MockAPICallerMockRecorder) BestFacadeVersion

BestFacadeVersion indicates an expected call of BestFacadeVersion.

func (*MockAPICallerMockRecorder) ConnectControllerStream

func (mr *MockAPICallerMockRecorder) ConnectControllerStream(arg0, arg1, arg2, arg3 any) *MockAPICallerConnectControllerStreamCall

ConnectControllerStream indicates an expected call of ConnectControllerStream.

func (*MockAPICallerMockRecorder) ConnectStream

func (mr *MockAPICallerMockRecorder) ConnectStream(arg0, arg1, arg2 any) *MockAPICallerConnectStreamCall

ConnectStream indicates an expected call of ConnectStream.

func (*MockAPICallerMockRecorder) HTTPClient

HTTPClient indicates an expected call of HTTPClient.

func (*MockAPICallerMockRecorder) ModelTag

ModelTag indicates an expected call of ModelTag.

func (*MockAPICallerMockRecorder) RootHTTPClient

RootHTTPClient indicates an expected call of RootHTTPClient.

type MockAPICallerModelTagCall

type MockAPICallerModelTagCall struct {
	*gomock.Call
}

MockAPICallerModelTagCall wrap *gomock.Call

func (*MockAPICallerModelTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerModelTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerModelTagCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallerRootHTTPClientCall

type MockAPICallerRootHTTPClientCall struct {
	*gomock.Call
}

MockAPICallerRootHTTPClientCall wrap *gomock.Call

func (*MockAPICallerRootHTTPClientCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallerRootHTTPClientCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallerRootHTTPClientCall) Return

Return rewrite *gomock.Call.Return

type MockFacadeCaller

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

MockFacadeCaller is a mock of FacadeCaller interface.

func NewMockFacadeCaller

func NewMockFacadeCaller(ctrl *gomock.Controller) *MockFacadeCaller

NewMockFacadeCaller creates a new mock instance.

func (*MockFacadeCaller) BestAPIVersion

func (m *MockFacadeCaller) BestAPIVersion() int

BestAPIVersion mocks base method.

func (*MockFacadeCaller) EXPECT

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

func (*MockFacadeCaller) FacadeCall

func (m *MockFacadeCaller) FacadeCall(arg0 context.Context, arg1 string, arg2, arg3 any) error

FacadeCall mocks base method.

func (*MockFacadeCaller) Name

func (m *MockFacadeCaller) Name() string

Name mocks base method.

func (*MockFacadeCaller) RawAPICaller

func (m *MockFacadeCaller) RawAPICaller() base.APICaller

RawAPICaller mocks base method.

type MockFacadeCallerBestAPIVersionCall

type MockFacadeCallerBestAPIVersionCall struct {
	*gomock.Call
}

MockFacadeCallerBestAPIVersionCall wrap *gomock.Call

func (*MockFacadeCallerBestAPIVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeCallerBestAPIVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeCallerBestAPIVersionCall) Return

Return rewrite *gomock.Call.Return

type MockFacadeCallerFacadeCallCall

type MockFacadeCallerFacadeCallCall struct {
	*gomock.Call
}

MockFacadeCallerFacadeCallCall wrap *gomock.Call

func (*MockFacadeCallerFacadeCallCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeCallerFacadeCallCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeCallerFacadeCallCall) Return

Return rewrite *gomock.Call.Return

type MockFacadeCallerMockRecorder

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

MockFacadeCallerMockRecorder is the mock recorder for MockFacadeCaller.

func (*MockFacadeCallerMockRecorder) BestAPIVersion

BestAPIVersion indicates an expected call of BestAPIVersion.

func (*MockFacadeCallerMockRecorder) FacadeCall

func (mr *MockFacadeCallerMockRecorder) FacadeCall(arg0, arg1, arg2, arg3 any) *MockFacadeCallerFacadeCallCall

FacadeCall indicates an expected call of FacadeCall.

func (*MockFacadeCallerMockRecorder) Name

Name indicates an expected call of Name.

func (*MockFacadeCallerMockRecorder) RawAPICaller

RawAPICaller indicates an expected call of RawAPICaller.

type MockFacadeCallerNameCall

type MockFacadeCallerNameCall struct {
	*gomock.Call
}

MockFacadeCallerNameCall wrap *gomock.Call

func (*MockFacadeCallerNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeCallerNameCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeCallerNameCall) Return

Return rewrite *gomock.Call.Return

type MockFacadeCallerRawAPICallerCall

type MockFacadeCallerRawAPICallerCall struct {
	*gomock.Call
}

MockFacadeCallerRawAPICallerCall wrap *gomock.Call

func (*MockFacadeCallerRawAPICallerCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeCallerRawAPICallerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeCallerRawAPICallerCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachine

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

MockMutaterMachine is a mock of MutaterMachine interface.

func NewMockMutaterMachine

func NewMockMutaterMachine(ctrl *gomock.Controller) *MockMutaterMachine

NewMockMutaterMachine creates a new mock instance.

func (*MockMutaterMachine) CharmProfilingInfo

func (m *MockMutaterMachine) CharmProfilingInfo(arg0 context.Context) (*instancemutater.UnitProfileInfo, error)

CharmProfilingInfo mocks base method.

func (*MockMutaterMachine) ContainerType

func (m *MockMutaterMachine) ContainerType(arg0 context.Context) (instance.ContainerType, error)

ContainerType mocks base method.

func (*MockMutaterMachine) EXPECT

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

func (*MockMutaterMachine) InstanceId

func (m *MockMutaterMachine) InstanceId(arg0 context.Context) (string, error)

InstanceId mocks base method.

func (*MockMutaterMachine) Life

func (m *MockMutaterMachine) Life() life.Value

Life mocks base method.

func (*MockMutaterMachine) Refresh

func (m *MockMutaterMachine) Refresh(arg0 context.Context) error

Refresh mocks base method.

func (*MockMutaterMachine) SetCharmProfiles

func (m *MockMutaterMachine) SetCharmProfiles(arg0 context.Context, arg1 []string) error

SetCharmProfiles mocks base method.

func (*MockMutaterMachine) SetModificationStatus

func (m *MockMutaterMachine) SetModificationStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error

SetModificationStatus mocks base method.

func (*MockMutaterMachine) Tag

Tag mocks base method.

func (*MockMutaterMachine) WatchContainers

func (m *MockMutaterMachine) WatchContainers(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchContainers mocks base method.

func (*MockMutaterMachine) WatchLXDProfileVerificationNeeded

func (m *MockMutaterMachine) WatchLXDProfileVerificationNeeded(arg0 context.Context) (watcher.Watcher[struct{}], error)

WatchLXDProfileVerificationNeeded mocks base method.

func (*MockMutaterMachine) WatchUnits

func (m *MockMutaterMachine) WatchUnits(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchUnits mocks base method.

type MockMutaterMachineCharmProfilingInfoCall

type MockMutaterMachineCharmProfilingInfoCall struct {
	*gomock.Call
}

MockMutaterMachineCharmProfilingInfoCall wrap *gomock.Call

func (*MockMutaterMachineCharmProfilingInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineCharmProfilingInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineCharmProfilingInfoCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineContainerTypeCall

type MockMutaterMachineContainerTypeCall struct {
	*gomock.Call
}

MockMutaterMachineContainerTypeCall wrap *gomock.Call

func (*MockMutaterMachineContainerTypeCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineContainerTypeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineContainerTypeCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineInstanceIdCall

type MockMutaterMachineInstanceIdCall struct {
	*gomock.Call
}

MockMutaterMachineInstanceIdCall wrap *gomock.Call

func (*MockMutaterMachineInstanceIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineInstanceIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineInstanceIdCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineLifeCall

type MockMutaterMachineLifeCall struct {
	*gomock.Call
}

MockMutaterMachineLifeCall wrap *gomock.Call

func (*MockMutaterMachineLifeCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineLifeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineLifeCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineMockRecorder

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

MockMutaterMachineMockRecorder is the mock recorder for MockMutaterMachine.

func (*MockMutaterMachineMockRecorder) CharmProfilingInfo

CharmProfilingInfo indicates an expected call of CharmProfilingInfo.

func (*MockMutaterMachineMockRecorder) ContainerType

ContainerType indicates an expected call of ContainerType.

func (*MockMutaterMachineMockRecorder) InstanceId

InstanceId indicates an expected call of InstanceId.

func (*MockMutaterMachineMockRecorder) Life

Life indicates an expected call of Life.

func (*MockMutaterMachineMockRecorder) Refresh

Refresh indicates an expected call of Refresh.

func (*MockMutaterMachineMockRecorder) SetCharmProfiles

SetCharmProfiles indicates an expected call of SetCharmProfiles.

func (*MockMutaterMachineMockRecorder) SetModificationStatus

func (mr *MockMutaterMachineMockRecorder) SetModificationStatus(arg0, arg1, arg2, arg3 any) *MockMutaterMachineSetModificationStatusCall

SetModificationStatus indicates an expected call of SetModificationStatus.

func (*MockMutaterMachineMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockMutaterMachineMockRecorder) WatchContainers

WatchContainers indicates an expected call of WatchContainers.

func (*MockMutaterMachineMockRecorder) WatchLXDProfileVerificationNeeded

WatchLXDProfileVerificationNeeded indicates an expected call of WatchLXDProfileVerificationNeeded.

func (*MockMutaterMachineMockRecorder) WatchUnits

WatchUnits indicates an expected call of WatchUnits.

type MockMutaterMachineRefreshCall

type MockMutaterMachineRefreshCall struct {
	*gomock.Call
}

MockMutaterMachineRefreshCall wrap *gomock.Call

func (*MockMutaterMachineRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineRefreshCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineRefreshCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineSetCharmProfilesCall

type MockMutaterMachineSetCharmProfilesCall struct {
	*gomock.Call
}

MockMutaterMachineSetCharmProfilesCall wrap *gomock.Call

func (*MockMutaterMachineSetCharmProfilesCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineSetCharmProfilesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineSetCharmProfilesCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineSetModificationStatusCall

type MockMutaterMachineSetModificationStatusCall struct {
	*gomock.Call
}

MockMutaterMachineSetModificationStatusCall wrap *gomock.Call

func (*MockMutaterMachineSetModificationStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineSetModificationStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineSetModificationStatusCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineTagCall

type MockMutaterMachineTagCall struct {
	*gomock.Call
}

MockMutaterMachineTagCall wrap *gomock.Call

func (*MockMutaterMachineTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineTagCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineWatchContainersCall

type MockMutaterMachineWatchContainersCall struct {
	*gomock.Call
}

MockMutaterMachineWatchContainersCall wrap *gomock.Call

func (*MockMutaterMachineWatchContainersCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineWatchContainersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineWatchContainersCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineWatchLXDProfileVerificationNeededCall

type MockMutaterMachineWatchLXDProfileVerificationNeededCall struct {
	*gomock.Call
}

MockMutaterMachineWatchLXDProfileVerificationNeededCall wrap *gomock.Call

func (*MockMutaterMachineWatchLXDProfileVerificationNeededCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineWatchLXDProfileVerificationNeededCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineWatchLXDProfileVerificationNeededCall) Return

Return rewrite *gomock.Call.Return

type MockMutaterMachineWatchUnitsCall

type MockMutaterMachineWatchUnitsCall struct {
	*gomock.Call
}

MockMutaterMachineWatchUnitsCall wrap *gomock.Call

func (*MockMutaterMachineWatchUnitsCall) Do

Do rewrite *gomock.Call.Do

func (*MockMutaterMachineWatchUnitsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMutaterMachineWatchUnitsCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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