Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- type MockApplicationMockRecorder
- type MockBridgePolicy
- func (m *MockBridgePolicy) EXPECT() *MockBridgePolicyMockRecorder
- func (m *MockBridgePolicy) FindMissingBridgesForContainer(arg0 containerizer.Machine, arg1 containerizer.Container) ([]network0.DeviceToBridge, int, error)
- func (m *MockBridgePolicy) PopulateContainerLinkLayerDevices(arg0 containerizer.Machine, arg1 containerizer.Container, arg2 bool) (network.InterfaceInfos, error)
- type MockBridgePolicyMockRecorder
- type MockCharm
- type MockCharmMockRecorder
- type MockLinkLayerDevice
- func (m *MockLinkLayerDevice) Addresses() ([]*state.Address, error)
- func (m *MockLinkLayerDevice) EXPECT() *MockLinkLayerDeviceMockRecorder
- func (m *MockLinkLayerDevice) EthernetDeviceForBridge(arg0 string, arg1 bool) (network.InterfaceInfo, error)
- func (m *MockLinkLayerDevice) IsAutoStart() bool
- func (m *MockLinkLayerDevice) IsUp() bool
- func (m *MockLinkLayerDevice) MACAddress() string
- func (m *MockLinkLayerDevice) MTU() uint
- func (m *MockLinkLayerDevice) Name() string
- func (m *MockLinkLayerDevice) ParentDevice() (containerizer.LinkLayerDevice, error)
- func (m *MockLinkLayerDevice) ParentName() string
- func (m *MockLinkLayerDevice) Type() network.LinkLayerDeviceType
- func (m *MockLinkLayerDevice) VirtualPortType() network.VirtualPortType
- type MockLinkLayerDeviceMockRecorder
- func (mr *MockLinkLayerDeviceMockRecorder) Addresses() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) EthernetDeviceForBridge(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) IsAutoStart() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) IsUp() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) MACAddress() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) MTU() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) Name() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) ParentDevice() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) ParentName() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) Type() *gomock.Call
- func (mr *MockLinkLayerDeviceMockRecorder) VirtualPortType() *gomock.Call
- type MockMachine
- func (m *MockMachine) AllAddresses() ([]containerizer.Address, error)
- func (m *MockMachine) AllLinkLayerDevices() ([]containerizer.LinkLayerDevice, error)
- func (m *MockMachine) AllSpaces() (set.Strings, error)
- func (m *MockMachine) Constraints() (constraints.Value, error)
- func (m *MockMachine) ContainerType() instance.ContainerType
- func (m *MockMachine) EXPECT() *MockMachineMockRecorder
- func (m *MockMachine) Id() string
- func (m *MockMachine) InstanceId() (instance.Id, error)
- func (m *MockMachine) IsManual() (bool, error)
- func (m *MockMachine) MachineTag() names.MachineTag
- func (m *MockMachine) Raw() *state.Machine
- func (m *MockMachine) RemoveAllAddresses() error
- func (m *MockMachine) SetConstraints(arg0 constraints.Value) error
- func (m *MockMachine) SetDevicesAddresses(arg0 ...state.LinkLayerDeviceAddress) error
- func (m *MockMachine) SetLinkLayerDevices(arg0 ...state.LinkLayerDeviceArgs) error
- func (m *MockMachine) SetParentLinkLayerDevicesBeforeTheirChildren(arg0 []state.LinkLayerDeviceArgs) error
- func (m *MockMachine) Units() ([]provisioner.Unit, error)
- type MockMachineMockRecorder
- func (mr *MockMachineMockRecorder) AllAddresses() *gomock.Call
- func (mr *MockMachineMockRecorder) AllLinkLayerDevices() *gomock.Call
- func (mr *MockMachineMockRecorder) AllSpaces() *gomock.Call
- func (mr *MockMachineMockRecorder) Constraints() *gomock.Call
- func (mr *MockMachineMockRecorder) ContainerType() *gomock.Call
- func (mr *MockMachineMockRecorder) Id() *gomock.Call
- func (mr *MockMachineMockRecorder) InstanceId() *gomock.Call
- func (mr *MockMachineMockRecorder) IsManual() *gomock.Call
- func (mr *MockMachineMockRecorder) MachineTag() *gomock.Call
- func (mr *MockMachineMockRecorder) Raw() *gomock.Call
- func (mr *MockMachineMockRecorder) RemoveAllAddresses() *gomock.Call
- func (mr *MockMachineMockRecorder) SetConstraints(arg0 interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) SetDevicesAddresses(arg0 ...interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) SetLinkLayerDevices(arg0 ...interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) SetParentLinkLayerDevicesBeforeTheirChildren(arg0 interface{}) *gomock.Call
- func (mr *MockMachineMockRecorder) Units() *gomock.Call
- type MockUnit
- type MockUnitMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplication ¶
type MockApplication struct {
// contains filtered or unexported fields
}
MockApplication is a mock of Application interface
func NewMockApplication ¶
func NewMockApplication(ctrl *gomock.Controller) *MockApplication
NewMockApplication creates a new mock instance
func (*MockApplication) Charm ¶
func (m *MockApplication) Charm() (provisioner.Charm, bool, error)
Charm mocks base method
func (*MockApplication) EXPECT ¶
func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockApplicationMockRecorder ¶
type MockApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationMockRecorder is the mock recorder for MockApplication
func (*MockApplicationMockRecorder) Charm ¶
func (mr *MockApplicationMockRecorder) Charm() *gomock.Call
Charm indicates an expected call of Charm
func (*MockApplicationMockRecorder) Name ¶
func (mr *MockApplicationMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
type MockBridgePolicy ¶
type MockBridgePolicy struct {
// contains filtered or unexported fields
}
MockBridgePolicy is a mock of BridgePolicy interface
func NewMockBridgePolicy ¶
func NewMockBridgePolicy(ctrl *gomock.Controller) *MockBridgePolicy
NewMockBridgePolicy creates a new mock instance
func (*MockBridgePolicy) EXPECT ¶
func (m *MockBridgePolicy) EXPECT() *MockBridgePolicyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBridgePolicy) FindMissingBridgesForContainer ¶
func (m *MockBridgePolicy) FindMissingBridgesForContainer(arg0 containerizer.Machine, arg1 containerizer.Container) ([]network0.DeviceToBridge, int, error)
FindMissingBridgesForContainer mocks base method
func (*MockBridgePolicy) PopulateContainerLinkLayerDevices ¶
func (m *MockBridgePolicy) PopulateContainerLinkLayerDevices(arg0 containerizer.Machine, arg1 containerizer.Container, arg2 bool) (network.InterfaceInfos, error)
PopulateContainerLinkLayerDevices mocks base method
type MockBridgePolicyMockRecorder ¶
type MockBridgePolicyMockRecorder struct {
// contains filtered or unexported fields
}
MockBridgePolicyMockRecorder is the mock recorder for MockBridgePolicy
func (*MockBridgePolicyMockRecorder) FindMissingBridgesForContainer ¶
func (mr *MockBridgePolicyMockRecorder) FindMissingBridgesForContainer(arg0, arg1 interface{}) *gomock.Call
FindMissingBridgesForContainer indicates an expected call of FindMissingBridgesForContainer
func (*MockBridgePolicyMockRecorder) PopulateContainerLinkLayerDevices ¶
func (mr *MockBridgePolicyMockRecorder) PopulateContainerLinkLayerDevices(arg0, arg1, arg2 interface{}) *gomock.Call
PopulateContainerLinkLayerDevices indicates an expected call of PopulateContainerLinkLayerDevices
type MockCharm ¶
type MockCharm struct {
// contains filtered or unexported fields
}
MockCharm is a mock of Charm interface
func NewMockCharm ¶
func NewMockCharm(ctrl *gomock.Controller) *MockCharm
NewMockCharm creates a new mock instance
func (*MockCharm) EXPECT ¶
func (m *MockCharm) EXPECT() *MockCharmMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCharm) LXDProfile ¶
func (m *MockCharm) LXDProfile() *charm.LXDProfile
LXDProfile mocks base method
type MockCharmMockRecorder ¶
type MockCharmMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmMockRecorder is the mock recorder for MockCharm
func (*MockCharmMockRecorder) LXDProfile ¶
func (mr *MockCharmMockRecorder) LXDProfile() *gomock.Call
LXDProfile indicates an expected call of LXDProfile
func (*MockCharmMockRecorder) Revision ¶
func (mr *MockCharmMockRecorder) Revision() *gomock.Call
Revision indicates an expected call of Revision
type MockLinkLayerDevice ¶
type MockLinkLayerDevice struct {
// contains filtered or unexported fields
}
MockLinkLayerDevice is a mock of LinkLayerDevice interface
func NewMockLinkLayerDevice ¶
func NewMockLinkLayerDevice(ctrl *gomock.Controller) *MockLinkLayerDevice
NewMockLinkLayerDevice creates a new mock instance
func (*MockLinkLayerDevice) Addresses ¶
func (m *MockLinkLayerDevice) Addresses() ([]*state.Address, error)
Addresses mocks base method
func (*MockLinkLayerDevice) EXPECT ¶
func (m *MockLinkLayerDevice) EXPECT() *MockLinkLayerDeviceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLinkLayerDevice) EthernetDeviceForBridge ¶
func (m *MockLinkLayerDevice) EthernetDeviceForBridge(arg0 string, arg1 bool) (network.InterfaceInfo, error)
EthernetDeviceForBridge mocks base method
func (*MockLinkLayerDevice) IsAutoStart ¶
func (m *MockLinkLayerDevice) IsAutoStart() bool
IsAutoStart mocks base method
func (*MockLinkLayerDevice) MACAddress ¶
func (m *MockLinkLayerDevice) MACAddress() string
MACAddress mocks base method
func (*MockLinkLayerDevice) Name ¶
func (m *MockLinkLayerDevice) Name() string
Name mocks base method
func (*MockLinkLayerDevice) ParentDevice ¶
func (m *MockLinkLayerDevice) ParentDevice() (containerizer.LinkLayerDevice, error)
ParentDevice mocks base method
func (*MockLinkLayerDevice) ParentName ¶
func (m *MockLinkLayerDevice) ParentName() string
ParentName mocks base method
func (*MockLinkLayerDevice) Type ¶
func (m *MockLinkLayerDevice) Type() network.LinkLayerDeviceType
Type mocks base method
func (*MockLinkLayerDevice) VirtualPortType ¶
func (m *MockLinkLayerDevice) VirtualPortType() network.VirtualPortType
VirtualPortType mocks base method
type MockLinkLayerDeviceMockRecorder ¶
type MockLinkLayerDeviceMockRecorder struct {
// contains filtered or unexported fields
}
MockLinkLayerDeviceMockRecorder is the mock recorder for MockLinkLayerDevice
func (*MockLinkLayerDeviceMockRecorder) Addresses ¶
func (mr *MockLinkLayerDeviceMockRecorder) Addresses() *gomock.Call
Addresses indicates an expected call of Addresses
func (*MockLinkLayerDeviceMockRecorder) EthernetDeviceForBridge ¶
func (mr *MockLinkLayerDeviceMockRecorder) EthernetDeviceForBridge(arg0, arg1 interface{}) *gomock.Call
EthernetDeviceForBridge indicates an expected call of EthernetDeviceForBridge
func (*MockLinkLayerDeviceMockRecorder) IsAutoStart ¶
func (mr *MockLinkLayerDeviceMockRecorder) IsAutoStart() *gomock.Call
IsAutoStart indicates an expected call of IsAutoStart
func (*MockLinkLayerDeviceMockRecorder) IsUp ¶
func (mr *MockLinkLayerDeviceMockRecorder) IsUp() *gomock.Call
IsUp indicates an expected call of IsUp
func (*MockLinkLayerDeviceMockRecorder) MACAddress ¶
func (mr *MockLinkLayerDeviceMockRecorder) MACAddress() *gomock.Call
MACAddress indicates an expected call of MACAddress
func (*MockLinkLayerDeviceMockRecorder) MTU ¶
func (mr *MockLinkLayerDeviceMockRecorder) MTU() *gomock.Call
MTU indicates an expected call of MTU
func (*MockLinkLayerDeviceMockRecorder) Name ¶
func (mr *MockLinkLayerDeviceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockLinkLayerDeviceMockRecorder) ParentDevice ¶
func (mr *MockLinkLayerDeviceMockRecorder) ParentDevice() *gomock.Call
ParentDevice indicates an expected call of ParentDevice
func (*MockLinkLayerDeviceMockRecorder) ParentName ¶
func (mr *MockLinkLayerDeviceMockRecorder) ParentName() *gomock.Call
ParentName indicates an expected call of ParentName
func (*MockLinkLayerDeviceMockRecorder) Type ¶
func (mr *MockLinkLayerDeviceMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type
func (*MockLinkLayerDeviceMockRecorder) VirtualPortType ¶
func (mr *MockLinkLayerDeviceMockRecorder) VirtualPortType() *gomock.Call
VirtualPortType indicates an expected call of VirtualPortType
type MockMachine ¶
type MockMachine struct {
// contains filtered or unexported fields
}
MockMachine is a mock of Machine interface
func NewMockMachine ¶
func NewMockMachine(ctrl *gomock.Controller) *MockMachine
NewMockMachine creates a new mock instance
func (*MockMachine) AllAddresses ¶
func (m *MockMachine) AllAddresses() ([]containerizer.Address, error)
AllAddresses mocks base method
func (*MockMachine) AllLinkLayerDevices ¶
func (m *MockMachine) AllLinkLayerDevices() ([]containerizer.LinkLayerDevice, error)
AllLinkLayerDevices mocks base method
func (*MockMachine) AllSpaces ¶
func (m *MockMachine) AllSpaces() (set.Strings, error)
AllSpaces mocks base method
func (*MockMachine) Constraints ¶
func (m *MockMachine) Constraints() (constraints.Value, error)
Constraints mocks base method
func (*MockMachine) ContainerType ¶
func (m *MockMachine) ContainerType() instance.ContainerType
ContainerType mocks base method
func (*MockMachine) EXPECT ¶
func (m *MockMachine) EXPECT() *MockMachineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMachine) InstanceId ¶
func (m *MockMachine) InstanceId() (instance.Id, error)
InstanceId mocks base method
func (*MockMachine) IsManual ¶
func (m *MockMachine) IsManual() (bool, error)
IsManual mocks base method
func (*MockMachine) MachineTag ¶
func (m *MockMachine) MachineTag() names.MachineTag
MachineTag mocks base method
func (*MockMachine) RemoveAllAddresses ¶
func (m *MockMachine) RemoveAllAddresses() error
RemoveAllAddresses mocks base method
func (*MockMachine) SetConstraints ¶
func (m *MockMachine) SetConstraints(arg0 constraints.Value) error
SetConstraints mocks base method
func (*MockMachine) SetDevicesAddresses ¶
func (m *MockMachine) SetDevicesAddresses(arg0 ...state.LinkLayerDeviceAddress) error
SetDevicesAddresses mocks base method
func (*MockMachine) SetLinkLayerDevices ¶
func (m *MockMachine) SetLinkLayerDevices(arg0 ...state.LinkLayerDeviceArgs) error
SetLinkLayerDevices mocks base method
func (*MockMachine) SetParentLinkLayerDevicesBeforeTheirChildren ¶
func (m *MockMachine) SetParentLinkLayerDevicesBeforeTheirChildren(arg0 []state.LinkLayerDeviceArgs) error
SetParentLinkLayerDevicesBeforeTheirChildren mocks base method
func (*MockMachine) Units ¶
func (m *MockMachine) Units() ([]provisioner.Unit, error)
Units mocks base method
type MockMachineMockRecorder ¶
type MockMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineMockRecorder is the mock recorder for MockMachine
func (*MockMachineMockRecorder) AllAddresses ¶
func (mr *MockMachineMockRecorder) AllAddresses() *gomock.Call
AllAddresses indicates an expected call of AllAddresses
func (*MockMachineMockRecorder) AllLinkLayerDevices ¶
func (mr *MockMachineMockRecorder) AllLinkLayerDevices() *gomock.Call
AllLinkLayerDevices indicates an expected call of AllLinkLayerDevices
func (*MockMachineMockRecorder) AllSpaces ¶
func (mr *MockMachineMockRecorder) AllSpaces() *gomock.Call
AllSpaces indicates an expected call of AllSpaces
func (*MockMachineMockRecorder) Constraints ¶
func (mr *MockMachineMockRecorder) Constraints() *gomock.Call
Constraints indicates an expected call of Constraints
func (*MockMachineMockRecorder) ContainerType ¶
func (mr *MockMachineMockRecorder) ContainerType() *gomock.Call
ContainerType indicates an expected call of ContainerType
func (*MockMachineMockRecorder) Id ¶
func (mr *MockMachineMockRecorder) Id() *gomock.Call
Id indicates an expected call of Id
func (*MockMachineMockRecorder) InstanceId ¶
func (mr *MockMachineMockRecorder) InstanceId() *gomock.Call
InstanceId indicates an expected call of InstanceId
func (*MockMachineMockRecorder) IsManual ¶
func (mr *MockMachineMockRecorder) IsManual() *gomock.Call
IsManual indicates an expected call of IsManual
func (*MockMachineMockRecorder) MachineTag ¶
func (mr *MockMachineMockRecorder) MachineTag() *gomock.Call
MachineTag indicates an expected call of MachineTag
func (*MockMachineMockRecorder) Raw ¶
func (mr *MockMachineMockRecorder) Raw() *gomock.Call
Raw indicates an expected call of Raw
func (*MockMachineMockRecorder) RemoveAllAddresses ¶
func (mr *MockMachineMockRecorder) RemoveAllAddresses() *gomock.Call
RemoveAllAddresses indicates an expected call of RemoveAllAddresses
func (*MockMachineMockRecorder) SetConstraints ¶
func (mr *MockMachineMockRecorder) SetConstraints(arg0 interface{}) *gomock.Call
SetConstraints indicates an expected call of SetConstraints
func (*MockMachineMockRecorder) SetDevicesAddresses ¶
func (mr *MockMachineMockRecorder) SetDevicesAddresses(arg0 ...interface{}) *gomock.Call
SetDevicesAddresses indicates an expected call of SetDevicesAddresses
func (*MockMachineMockRecorder) SetLinkLayerDevices ¶
func (mr *MockMachineMockRecorder) SetLinkLayerDevices(arg0 ...interface{}) *gomock.Call
SetLinkLayerDevices indicates an expected call of SetLinkLayerDevices
func (*MockMachineMockRecorder) SetParentLinkLayerDevicesBeforeTheirChildren ¶
func (mr *MockMachineMockRecorder) SetParentLinkLayerDevicesBeforeTheirChildren(arg0 interface{}) *gomock.Call
SetParentLinkLayerDevicesBeforeTheirChildren indicates an expected call of SetParentLinkLayerDevicesBeforeTheirChildren
func (*MockMachineMockRecorder) Units ¶
func (mr *MockMachineMockRecorder) Units() *gomock.Call
Units indicates an expected call of Units
type MockUnit ¶
type MockUnit struct {
// contains filtered or unexported fields
}
MockUnit is a mock of Unit interface
func NewMockUnit ¶
func NewMockUnit(ctrl *gomock.Controller) *MockUnit
NewMockUnit creates a new mock instance
func (*MockUnit) Application ¶
func (m *MockUnit) Application() (provisioner.Application, error)
Application mocks base method
func (*MockUnit) EXPECT ¶
func (m *MockUnit) EXPECT() *MockUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockUnitMockRecorder ¶
type MockUnitMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitMockRecorder is the mock recorder for MockUnit
func (*MockUnitMockRecorder) Application ¶
func (mr *MockUnitMockRecorder) Application() *gomock.Call
Application indicates an expected call of Application
func (*MockUnitMockRecorder) Name ¶
func (mr *MockUnitMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name