Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockAPICalls
- func (m *MockAPICalls) ContainerConfig(arg0 context.Context) (params.ContainerConfig, error)
- func (m *MockAPICalls) EXPECT() *MockAPICallsMockRecorder
- func (m *MockAPICalls) GetContainerProfileInfo(arg0 context.Context, arg1 names.MachineTag) ([]*provisioner.LXDProfileResult, error)
- func (m *MockAPICalls) HostChangesForContainer(arg0 context.Context, arg1 names.MachineTag) ([]network0.DeviceToBridge, int, error)
- func (m *MockAPICalls) PrepareContainerInterfaceInfo(arg0 context.Context, arg1 names.MachineTag) (network.InterfaceInfos, error)
- func (m *MockAPICalls) ReleaseContainerAddresses(arg0 context.Context, arg1 names.MachineTag) error
- func (m *MockAPICalls) SetHostMachineNetworkConfig(arg0 context.Context, arg1 names.MachineTag, arg2 []params.NetworkConfig) error
- type MockAPICallsContainerConfigCall
- func (c *MockAPICallsContainerConfigCall) Do(f func(context.Context) (params.ContainerConfig, error)) *MockAPICallsContainerConfigCall
- func (c *MockAPICallsContainerConfigCall) DoAndReturn(f func(context.Context) (params.ContainerConfig, error)) *MockAPICallsContainerConfigCall
- func (c *MockAPICallsContainerConfigCall) Return(arg0 params.ContainerConfig, arg1 error) *MockAPICallsContainerConfigCall
- type MockAPICallsGetContainerProfileInfoCall
- func (c *MockAPICallsGetContainerProfileInfoCall) Do(...) *MockAPICallsGetContainerProfileInfoCall
- func (c *MockAPICallsGetContainerProfileInfoCall) DoAndReturn(...) *MockAPICallsGetContainerProfileInfoCall
- func (c *MockAPICallsGetContainerProfileInfoCall) Return(arg0 []*provisioner.LXDProfileResult, arg1 error) *MockAPICallsGetContainerProfileInfoCall
- type MockAPICallsHostChangesForContainerCall
- func (c *MockAPICallsHostChangesForContainerCall) Do(...) *MockAPICallsHostChangesForContainerCall
- func (c *MockAPICallsHostChangesForContainerCall) DoAndReturn(...) *MockAPICallsHostChangesForContainerCall
- func (c *MockAPICallsHostChangesForContainerCall) Return(arg0 []network0.DeviceToBridge, arg1 int, arg2 error) *MockAPICallsHostChangesForContainerCall
- type MockAPICallsMockRecorder
- func (mr *MockAPICallsMockRecorder) ContainerConfig(arg0 any) *MockAPICallsContainerConfigCall
- func (mr *MockAPICallsMockRecorder) GetContainerProfileInfo(arg0, arg1 any) *MockAPICallsGetContainerProfileInfoCall
- func (mr *MockAPICallsMockRecorder) HostChangesForContainer(arg0, arg1 any) *MockAPICallsHostChangesForContainerCall
- func (mr *MockAPICallsMockRecorder) PrepareContainerInterfaceInfo(arg0, arg1 any) *MockAPICallsPrepareContainerInterfaceInfoCall
- func (mr *MockAPICallsMockRecorder) ReleaseContainerAddresses(arg0, arg1 any) *MockAPICallsReleaseContainerAddressesCall
- func (mr *MockAPICallsMockRecorder) SetHostMachineNetworkConfig(arg0, arg1, arg2 any) *MockAPICallsSetHostMachineNetworkConfigCall
- type MockAPICallsPrepareContainerInterfaceInfoCall
- func (c *MockAPICallsPrepareContainerInterfaceInfoCall) Do(f func(context.Context, names.MachineTag) (network.InterfaceInfos, error)) *MockAPICallsPrepareContainerInterfaceInfoCall
- func (c *MockAPICallsPrepareContainerInterfaceInfoCall) DoAndReturn(f func(context.Context, names.MachineTag) (network.InterfaceInfos, error)) *MockAPICallsPrepareContainerInterfaceInfoCall
- func (c *MockAPICallsPrepareContainerInterfaceInfoCall) Return(arg0 network.InterfaceInfos, arg1 error) *MockAPICallsPrepareContainerInterfaceInfoCall
- type MockAPICallsReleaseContainerAddressesCall
- func (c *MockAPICallsReleaseContainerAddressesCall) Do(f func(context.Context, names.MachineTag) error) *MockAPICallsReleaseContainerAddressesCall
- func (c *MockAPICallsReleaseContainerAddressesCall) DoAndReturn(f func(context.Context, names.MachineTag) error) *MockAPICallsReleaseContainerAddressesCall
- func (c *MockAPICallsReleaseContainerAddressesCall) Return(arg0 error) *MockAPICallsReleaseContainerAddressesCall
- type MockAPICallsSetHostMachineNetworkConfigCall
- func (c *MockAPICallsSetHostMachineNetworkConfigCall) Do(f func(context.Context, names.MachineTag, []params.NetworkConfig) error) *MockAPICallsSetHostMachineNetworkConfigCall
- func (c *MockAPICallsSetHostMachineNetworkConfigCall) DoAndReturn(f func(context.Context, names.MachineTag, []params.NetworkConfig) error) *MockAPICallsSetHostMachineNetworkConfigCall
- func (c *MockAPICallsSetHostMachineNetworkConfigCall) Return(arg0 error) *MockAPICallsSetHostMachineNetworkConfigCall
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 ¶
func (m *MockAPICalls) EXPECT() *MockAPICallsMockRecorder
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 ¶
MockAPICallsContainerConfigCall wrap *gomock.Call
func (*MockAPICallsContainerConfigCall) Do ¶
func (c *MockAPICallsContainerConfigCall) Do(f func(context.Context) (params.ContainerConfig, error)) *MockAPICallsContainerConfigCall
Do rewrite *gomock.Call.Do
func (*MockAPICallsContainerConfigCall) DoAndReturn ¶
func (c *MockAPICallsContainerConfigCall) DoAndReturn(f func(context.Context) (params.ContainerConfig, error)) *MockAPICallsContainerConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallsContainerConfigCall) Return ¶
func (c *MockAPICallsContainerConfigCall) Return(arg0 params.ContainerConfig, arg1 error) *MockAPICallsContainerConfigCall
Return rewrite *gomock.Call.Return
type MockAPICallsGetContainerProfileInfoCall ¶
MockAPICallsGetContainerProfileInfoCall wrap *gomock.Call
func (*MockAPICallsGetContainerProfileInfoCall) Do ¶
func (c *MockAPICallsGetContainerProfileInfoCall) Do(f func(context.Context, names.MachineTag) ([]*provisioner.LXDProfileResult, error)) *MockAPICallsGetContainerProfileInfoCall
Do rewrite *gomock.Call.Do
func (*MockAPICallsGetContainerProfileInfoCall) DoAndReturn ¶
func (c *MockAPICallsGetContainerProfileInfoCall) DoAndReturn(f func(context.Context, names.MachineTag) ([]*provisioner.LXDProfileResult, error)) *MockAPICallsGetContainerProfileInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallsGetContainerProfileInfoCall) Return ¶
func (c *MockAPICallsGetContainerProfileInfoCall) Return(arg0 []*provisioner.LXDProfileResult, arg1 error) *MockAPICallsGetContainerProfileInfoCall
Return rewrite *gomock.Call.Return
type MockAPICallsHostChangesForContainerCall ¶
MockAPICallsHostChangesForContainerCall wrap *gomock.Call
func (*MockAPICallsHostChangesForContainerCall) Do ¶
func (c *MockAPICallsHostChangesForContainerCall) Do(f func(context.Context, names.MachineTag) ([]network0.DeviceToBridge, int, error)) *MockAPICallsHostChangesForContainerCall
Do rewrite *gomock.Call.Do
func (*MockAPICallsHostChangesForContainerCall) DoAndReturn ¶
func (c *MockAPICallsHostChangesForContainerCall) DoAndReturn(f func(context.Context, names.MachineTag) ([]network0.DeviceToBridge, int, error)) *MockAPICallsHostChangesForContainerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallsHostChangesForContainerCall) Return ¶
func (c *MockAPICallsHostChangesForContainerCall) Return(arg0 []network0.DeviceToBridge, arg1 int, arg2 error) *MockAPICallsHostChangesForContainerCall
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 ¶
func (mr *MockAPICallsMockRecorder) ContainerConfig(arg0 any) *MockAPICallsContainerConfigCall
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 ¶
MockAPICallsPrepareContainerInterfaceInfoCall wrap *gomock.Call
func (*MockAPICallsPrepareContainerInterfaceInfoCall) Do ¶
func (c *MockAPICallsPrepareContainerInterfaceInfoCall) Do(f func(context.Context, names.MachineTag) (network.InterfaceInfos, error)) *MockAPICallsPrepareContainerInterfaceInfoCall
Do rewrite *gomock.Call.Do
func (*MockAPICallsPrepareContainerInterfaceInfoCall) DoAndReturn ¶
func (c *MockAPICallsPrepareContainerInterfaceInfoCall) DoAndReturn(f func(context.Context, names.MachineTag) (network.InterfaceInfos, error)) *MockAPICallsPrepareContainerInterfaceInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallsPrepareContainerInterfaceInfoCall) Return ¶
func (c *MockAPICallsPrepareContainerInterfaceInfoCall) Return(arg0 network.InterfaceInfos, arg1 error) *MockAPICallsPrepareContainerInterfaceInfoCall
Return rewrite *gomock.Call.Return
type MockAPICallsReleaseContainerAddressesCall ¶
MockAPICallsReleaseContainerAddressesCall wrap *gomock.Call
func (*MockAPICallsReleaseContainerAddressesCall) Do ¶
func (c *MockAPICallsReleaseContainerAddressesCall) Do(f func(context.Context, names.MachineTag) error) *MockAPICallsReleaseContainerAddressesCall
Do rewrite *gomock.Call.Do
func (*MockAPICallsReleaseContainerAddressesCall) DoAndReturn ¶
func (c *MockAPICallsReleaseContainerAddressesCall) DoAndReturn(f func(context.Context, names.MachineTag) error) *MockAPICallsReleaseContainerAddressesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallsReleaseContainerAddressesCall) Return ¶
func (c *MockAPICallsReleaseContainerAddressesCall) Return(arg0 error) *MockAPICallsReleaseContainerAddressesCall
Return rewrite *gomock.Call.Return
type MockAPICallsSetHostMachineNetworkConfigCall ¶
MockAPICallsSetHostMachineNetworkConfigCall wrap *gomock.Call
func (*MockAPICallsSetHostMachineNetworkConfigCall) Do ¶
func (c *MockAPICallsSetHostMachineNetworkConfigCall) Do(f func(context.Context, names.MachineTag, []params.NetworkConfig) error) *MockAPICallsSetHostMachineNetworkConfigCall
Do rewrite *gomock.Call.Do
func (*MockAPICallsSetHostMachineNetworkConfigCall) DoAndReturn ¶
func (c *MockAPICallsSetHostMachineNetworkConfigCall) DoAndReturn(f func(context.Context, names.MachineTag, []params.NetworkConfig) error) *MockAPICallsSetHostMachineNetworkConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallsSetHostMachineNetworkConfigCall) Return ¶
func (c *MockAPICallsSetHostMachineNetworkConfigCall) Return(arg0 error) *MockAPICallsSetHostMachineNetworkConfigCall
Return rewrite *gomock.Call.Return