Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAPICalls
- func (m *MockAPICalls) ContainerConfig() (params.ContainerConfig, error)
- func (m *MockAPICalls) EXPECT() *MockAPICallsMockRecorder
- func (m *MockAPICalls) GetContainerInterfaceInfo(arg0 names_v2.MachineTag) ([]network.InterfaceInfo, error)
- func (m *MockAPICalls) GetContainerProfileInfo(arg0 names_v2.MachineTag) ([]*provisioner.LXDProfileResult, error)
- func (m *MockAPICalls) HostChangesForContainer(arg0 names_v2.MachineTag) ([]network.DeviceToBridge, int, error)
- func (m *MockAPICalls) PrepareContainerInterfaceInfo(arg0 names_v2.MachineTag) ([]network.InterfaceInfo, error)
- func (m *MockAPICalls) ReleaseContainerAddresses(arg0 names_v2.MachineTag) error
- func (m *MockAPICalls) SetHostMachineNetworkConfig(arg0 names_v2.MachineTag, arg1 []params.NetworkConfig) error
- type MockAPICallsMockRecorder
- func (mr *MockAPICallsMockRecorder) ContainerConfig() *gomock.Call
- func (mr *MockAPICallsMockRecorder) GetContainerInterfaceInfo(arg0 interface{}) *gomock.Call
- func (mr *MockAPICallsMockRecorder) GetContainerProfileInfo(arg0 interface{}) *gomock.Call
- func (mr *MockAPICallsMockRecorder) HostChangesForContainer(arg0 interface{}) *gomock.Call
- func (mr *MockAPICallsMockRecorder) PrepareContainerInterfaceInfo(arg0 interface{}) *gomock.Call
- func (mr *MockAPICallsMockRecorder) ReleaseContainerAddresses(arg0 interface{}) *gomock.Call
- func (mr *MockAPICallsMockRecorder) SetHostMachineNetworkConfig(arg0, arg1 interface{}) *gomock.Call
- type MockLXDProfileInstanceBroker
- func (m *MockLXDProfileInstanceBroker) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockLXDProfileInstanceBroker) EXPECT() *MockLXDProfileInstanceBrokerMockRecorder
- func (m *MockLXDProfileInstanceBroker) LXDProfileNames(arg0 string) ([]string, error)
- func (m *MockLXDProfileInstanceBroker) MaintainInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) error
- func (m *MockLXDProfileInstanceBroker) MaybeWriteLXDProfile(arg0 string, arg1 *charm_v6.LXDProfile) error
- func (m *MockLXDProfileInstanceBroker) ReplaceOrAddInstanceProfile(arg0, arg1, arg2 string, arg3 *charm_v6.LXDProfile) ([]string, error)
- func (m *MockLXDProfileInstanceBroker) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (m *MockLXDProfileInstanceBroker) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error
- type MockLXDProfileInstanceBrokerMockRecorder
- func (mr *MockLXDProfileInstanceBrokerMockRecorder) AllInstances(arg0 interface{}) *gomock.Call
- func (mr *MockLXDProfileInstanceBrokerMockRecorder) LXDProfileNames(arg0 interface{}) *gomock.Call
- func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaintainInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockLXDProfileInstanceBrokerMockRecorder) ReplaceOrAddInstanceProfile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockLXDProfileInstanceBrokerMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockLXDProfileInstanceBrokerMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call
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() (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) GetContainerInterfaceInfo ¶
func (m *MockAPICalls) GetContainerInterfaceInfo(arg0 names_v2.MachineTag) ([]network.InterfaceInfo, error)
GetContainerInterfaceInfo mocks base method
func (*MockAPICalls) GetContainerProfileInfo ¶
func (m *MockAPICalls) GetContainerProfileInfo(arg0 names_v2.MachineTag) ([]*provisioner.LXDProfileResult, error)
GetContainerProfileInfo mocks base method
func (*MockAPICalls) HostChangesForContainer ¶
func (m *MockAPICalls) HostChangesForContainer(arg0 names_v2.MachineTag) ([]network.DeviceToBridge, int, error)
HostChangesForContainer mocks base method
func (*MockAPICalls) PrepareContainerInterfaceInfo ¶
func (m *MockAPICalls) PrepareContainerInterfaceInfo(arg0 names_v2.MachineTag) ([]network.InterfaceInfo, error)
PrepareContainerInterfaceInfo mocks base method
func (*MockAPICalls) ReleaseContainerAddresses ¶
func (m *MockAPICalls) ReleaseContainerAddresses(arg0 names_v2.MachineTag) error
ReleaseContainerAddresses mocks base method
func (*MockAPICalls) SetHostMachineNetworkConfig ¶
func (m *MockAPICalls) SetHostMachineNetworkConfig(arg0 names_v2.MachineTag, arg1 []params.NetworkConfig) error
SetHostMachineNetworkConfig mocks base method
type MockAPICallsMockRecorder ¶
type MockAPICallsMockRecorder struct {
// contains filtered or unexported fields
}
MockAPICallsMockRecorder is the mock recorder for MockAPICalls
func (*MockAPICallsMockRecorder) ContainerConfig ¶
func (mr *MockAPICallsMockRecorder) ContainerConfig() *gomock.Call
ContainerConfig indicates an expected call of ContainerConfig
func (*MockAPICallsMockRecorder) GetContainerInterfaceInfo ¶
func (mr *MockAPICallsMockRecorder) GetContainerInterfaceInfo(arg0 interface{}) *gomock.Call
GetContainerInterfaceInfo indicates an expected call of GetContainerInterfaceInfo
func (*MockAPICallsMockRecorder) GetContainerProfileInfo ¶
func (mr *MockAPICallsMockRecorder) GetContainerProfileInfo(arg0 interface{}) *gomock.Call
GetContainerProfileInfo indicates an expected call of GetContainerProfileInfo
func (*MockAPICallsMockRecorder) HostChangesForContainer ¶
func (mr *MockAPICallsMockRecorder) HostChangesForContainer(arg0 interface{}) *gomock.Call
HostChangesForContainer indicates an expected call of HostChangesForContainer
func (*MockAPICallsMockRecorder) PrepareContainerInterfaceInfo ¶
func (mr *MockAPICallsMockRecorder) PrepareContainerInterfaceInfo(arg0 interface{}) *gomock.Call
PrepareContainerInterfaceInfo indicates an expected call of PrepareContainerInterfaceInfo
func (*MockAPICallsMockRecorder) ReleaseContainerAddresses ¶
func (mr *MockAPICallsMockRecorder) ReleaseContainerAddresses(arg0 interface{}) *gomock.Call
ReleaseContainerAddresses indicates an expected call of ReleaseContainerAddresses
func (*MockAPICallsMockRecorder) SetHostMachineNetworkConfig ¶
func (mr *MockAPICallsMockRecorder) SetHostMachineNetworkConfig(arg0, arg1 interface{}) *gomock.Call
SetHostMachineNetworkConfig indicates an expected call of SetHostMachineNetworkConfig
type MockLXDProfileInstanceBroker ¶
type MockLXDProfileInstanceBroker struct {
// contains filtered or unexported fields
}
MockLXDProfileInstanceBroker is a mock of LXDProfileInstanceBroker interface
func NewMockLXDProfileInstanceBroker ¶
func NewMockLXDProfileInstanceBroker(ctrl *gomock.Controller) *MockLXDProfileInstanceBroker
NewMockLXDProfileInstanceBroker creates a new mock instance
func (*MockLXDProfileInstanceBroker) AllInstances ¶
func (m *MockLXDProfileInstanceBroker) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)
AllInstances mocks base method
func (*MockLXDProfileInstanceBroker) EXPECT ¶
func (m *MockLXDProfileInstanceBroker) EXPECT() *MockLXDProfileInstanceBrokerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLXDProfileInstanceBroker) LXDProfileNames ¶
func (m *MockLXDProfileInstanceBroker) LXDProfileNames(arg0 string) ([]string, error)
LXDProfileNames mocks base method
func (*MockLXDProfileInstanceBroker) MaintainInstance ¶
func (m *MockLXDProfileInstanceBroker) MaintainInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) error
MaintainInstance mocks base method
func (*MockLXDProfileInstanceBroker) MaybeWriteLXDProfile ¶
func (m *MockLXDProfileInstanceBroker) MaybeWriteLXDProfile(arg0 string, arg1 *charm_v6.LXDProfile) error
MaybeWriteLXDProfile mocks base method
func (*MockLXDProfileInstanceBroker) ReplaceOrAddInstanceProfile ¶
func (m *MockLXDProfileInstanceBroker) ReplaceOrAddInstanceProfile(arg0, arg1, arg2 string, arg3 *charm_v6.LXDProfile) ([]string, error)
ReplaceOrAddInstanceProfile mocks base method
func (*MockLXDProfileInstanceBroker) StartInstance ¶
func (m *MockLXDProfileInstanceBroker) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance mocks base method
func (*MockLXDProfileInstanceBroker) StopInstances ¶
func (m *MockLXDProfileInstanceBroker) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error
StopInstances mocks base method
type MockLXDProfileInstanceBrokerMockRecorder ¶
type MockLXDProfileInstanceBrokerMockRecorder struct {
// contains filtered or unexported fields
}
MockLXDProfileInstanceBrokerMockRecorder is the mock recorder for MockLXDProfileInstanceBroker
func (*MockLXDProfileInstanceBrokerMockRecorder) AllInstances ¶
func (mr *MockLXDProfileInstanceBrokerMockRecorder) AllInstances(arg0 interface{}) *gomock.Call
AllInstances indicates an expected call of AllInstances
func (*MockLXDProfileInstanceBrokerMockRecorder) LXDProfileNames ¶
func (mr *MockLXDProfileInstanceBrokerMockRecorder) LXDProfileNames(arg0 interface{}) *gomock.Call
LXDProfileNames indicates an expected call of LXDProfileNames
func (*MockLXDProfileInstanceBrokerMockRecorder) MaintainInstance ¶
func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaintainInstance(arg0, arg1 interface{}) *gomock.Call
MaintainInstance indicates an expected call of MaintainInstance
func (*MockLXDProfileInstanceBrokerMockRecorder) MaybeWriteLXDProfile ¶
func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 interface{}) *gomock.Call
MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile
func (*MockLXDProfileInstanceBrokerMockRecorder) ReplaceOrAddInstanceProfile ¶
func (mr *MockLXDProfileInstanceBrokerMockRecorder) ReplaceOrAddInstanceProfile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ReplaceOrAddInstanceProfile indicates an expected call of ReplaceOrAddInstanceProfile
func (*MockLXDProfileInstanceBrokerMockRecorder) StartInstance ¶
func (mr *MockLXDProfileInstanceBrokerMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call
StartInstance indicates an expected call of StartInstance
func (*MockLXDProfileInstanceBrokerMockRecorder) StopInstances ¶
func (mr *MockLXDProfileInstanceBrokerMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call
StopInstances indicates an expected call of StopInstances