mocks

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

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 MockAPICalls

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

MockAPICalls is a mock of APICalls interface.

func NewMockAPICalls

func NewMockAPICalls(ctrl *gomock.Controller) *MockAPICalls

NewMockAPICalls creates a new mock instance.

func (*MockAPICalls) ContainerConfig

func (m *MockAPICalls) ContainerConfig(arg0 context.Context) (params.ContainerConfig, error)

ContainerConfig mocks base method.

func (*MockAPICalls) EXPECT

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

func (*MockAPICalls) GetContainerProfileInfo

func (m *MockAPICalls) GetContainerProfileInfo(arg0 context.Context, arg1 names.MachineTag) ([]*provisioner.LXDProfileResult, error)

GetContainerProfileInfo mocks base method.

func (*MockAPICalls) HostChangesForContainer

func (m *MockAPICalls) HostChangesForContainer(arg0 context.Context, arg1 names.MachineTag) ([]network0.DeviceToBridge, int, error)

HostChangesForContainer mocks base method.

func (*MockAPICalls) PrepareContainerInterfaceInfo

func (m *MockAPICalls) PrepareContainerInterfaceInfo(arg0 context.Context, arg1 names.MachineTag) (network.InterfaceInfos, error)

PrepareContainerInterfaceInfo mocks base method.

func (*MockAPICalls) ReleaseContainerAddresses

func (m *MockAPICalls) ReleaseContainerAddresses(arg0 context.Context, arg1 names.MachineTag) error

ReleaseContainerAddresses mocks base method.

func (*MockAPICalls) SetHostMachineNetworkConfig

func (m *MockAPICalls) SetHostMachineNetworkConfig(arg0 context.Context, arg1 names.MachineTag, arg2 []params.NetworkConfig) error

SetHostMachineNetworkConfig mocks base method.

type MockAPICallsContainerConfigCall

type MockAPICallsContainerConfigCall struct {
	*gomock.Call
}

MockAPICallsContainerConfigCall wrap *gomock.Call

func (*MockAPICallsContainerConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallsContainerConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallsContainerConfigCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallsGetContainerProfileInfoCall

type MockAPICallsGetContainerProfileInfoCall struct {
	*gomock.Call
}

MockAPICallsGetContainerProfileInfoCall wrap *gomock.Call

func (*MockAPICallsGetContainerProfileInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallsGetContainerProfileInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallsGetContainerProfileInfoCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallsHostChangesForContainerCall

type MockAPICallsHostChangesForContainerCall struct {
	*gomock.Call
}

MockAPICallsHostChangesForContainerCall wrap *gomock.Call

func (*MockAPICallsHostChangesForContainerCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallsHostChangesForContainerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallsHostChangesForContainerCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallsMockRecorder

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

MockAPICallsMockRecorder is the mock recorder for MockAPICalls.

func (*MockAPICallsMockRecorder) ContainerConfig

ContainerConfig indicates an expected call of ContainerConfig.

func (*MockAPICallsMockRecorder) GetContainerProfileInfo

func (mr *MockAPICallsMockRecorder) GetContainerProfileInfo(arg0, arg1 any) *MockAPICallsGetContainerProfileInfoCall

GetContainerProfileInfo indicates an expected call of GetContainerProfileInfo.

func (*MockAPICallsMockRecorder) HostChangesForContainer

func (mr *MockAPICallsMockRecorder) HostChangesForContainer(arg0, arg1 any) *MockAPICallsHostChangesForContainerCall

HostChangesForContainer indicates an expected call of HostChangesForContainer.

func (*MockAPICallsMockRecorder) PrepareContainerInterfaceInfo

func (mr *MockAPICallsMockRecorder) PrepareContainerInterfaceInfo(arg0, arg1 any) *MockAPICallsPrepareContainerInterfaceInfoCall

PrepareContainerInterfaceInfo indicates an expected call of PrepareContainerInterfaceInfo.

func (*MockAPICallsMockRecorder) ReleaseContainerAddresses

func (mr *MockAPICallsMockRecorder) ReleaseContainerAddresses(arg0, arg1 any) *MockAPICallsReleaseContainerAddressesCall

ReleaseContainerAddresses indicates an expected call of ReleaseContainerAddresses.

func (*MockAPICallsMockRecorder) SetHostMachineNetworkConfig

func (mr *MockAPICallsMockRecorder) SetHostMachineNetworkConfig(arg0, arg1, arg2 any) *MockAPICallsSetHostMachineNetworkConfigCall

SetHostMachineNetworkConfig indicates an expected call of SetHostMachineNetworkConfig.

type MockAPICallsPrepareContainerInterfaceInfoCall

type MockAPICallsPrepareContainerInterfaceInfoCall struct {
	*gomock.Call
}

MockAPICallsPrepareContainerInterfaceInfoCall wrap *gomock.Call

func (*MockAPICallsPrepareContainerInterfaceInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallsPrepareContainerInterfaceInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallsPrepareContainerInterfaceInfoCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallsReleaseContainerAddressesCall

type MockAPICallsReleaseContainerAddressesCall struct {
	*gomock.Call
}

MockAPICallsReleaseContainerAddressesCall wrap *gomock.Call

func (*MockAPICallsReleaseContainerAddressesCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallsReleaseContainerAddressesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallsReleaseContainerAddressesCall) Return

Return rewrite *gomock.Call.Return

type MockAPICallsSetHostMachineNetworkConfigCall

type MockAPICallsSetHostMachineNetworkConfigCall struct {
	*gomock.Call
}

MockAPICallsSetHostMachineNetworkConfigCall wrap *gomock.Call

func (*MockAPICallsSetHostMachineNetworkConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockAPICallsSetHostMachineNetworkConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockAPICallsSetHostMachineNetworkConfigCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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