Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.
Index ¶
- func AssertCloudInit(c *gc.C, filename string) []byte
- func CreateContainer(c *gc.C, manager container.Manager, machineId string) instances.Instance
- func CreateContainerWithMachineAndNetworkAndStorageConfig(c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig, ...) instances.Instance
- func CreateContainerWithMachineConfig(c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig) instances.Instance
- func MockMachineConfig(machineId string) (*instancecfg.InstanceConfig, error)
- type MockInitialiser
- type MockInitialiserMockRecorder
- type MockManager
- func (m *MockManager) CreateContainer(arg0 *instancecfg.InstanceConfig, arg1 constraints.Value, arg2 string, ...) (instances.Instance, *instance.HardwareCharacteristics, error)
- func (m *MockManager) DestroyContainer(arg0 instance.Id) error
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) IsInitialized() bool
- func (m *MockManager) ListContainers() ([]instances.Instance, error)
- func (m *MockManager) Namespace() instance.Namespace
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) IsInitialized() *gomock.Call
- func (mr *MockManagerMockRecorder) ListContainers() *gomock.Call
- func (mr *MockManagerMockRecorder) Namespace() *gomock.Call
- type MockTestLXDManager
- func (m *MockTestLXDManager) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)
- func (m *MockTestLXDManager) CreateContainer(arg0 *instancecfg.InstanceConfig, arg1 constraints.Value, arg2 string, ...) (instances.Instance, *instance.HardwareCharacteristics, error)
- func (m *MockTestLXDManager) DestroyContainer(arg0 instance.Id) error
- func (m *MockTestLXDManager) EXPECT() *MockTestLXDManagerMockRecorder
- func (m *MockTestLXDManager) IsInitialized() bool
- func (m *MockTestLXDManager) LXDProfileNames(arg0 string) ([]string, error)
- func (m *MockTestLXDManager) ListContainers() ([]instances.Instance, error)
- func (m *MockTestLXDManager) MaybeWriteLXDProfile(arg0 string, arg1 lxdprofile.Profile) error
- func (m *MockTestLXDManager) Namespace() instance.Namespace
- type MockTestLXDManagerMockRecorder
- func (mr *MockTestLXDManagerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTestLXDManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockTestLXDManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call
- func (mr *MockTestLXDManagerMockRecorder) IsInitialized() *gomock.Call
- func (mr *MockTestLXDManagerMockRecorder) LXDProfileNames(arg0 interface{}) *gomock.Call
- func (mr *MockTestLXDManagerMockRecorder) ListContainers() *gomock.Call
- func (mr *MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTestLXDManagerMockRecorder) Namespace() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶
func CreateContainerWithMachineAndNetworkAndStorageConfig ¶
func CreateContainerWithMachineAndNetworkAndStorageConfig( c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig, networkConfig *container.NetworkConfig, storageConfig *container.StorageConfig, ) instances.Instance
func CreateContainerWithMachineConfig ¶
func CreateContainerWithMachineConfig( c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig, ) instances.Instance
func MockMachineConfig ¶
func MockMachineConfig(machineId string) (*instancecfg.InstanceConfig, error)
Types ¶
type MockInitialiser ¶
type MockInitialiser struct {
// contains filtered or unexported fields
}
MockInitialiser is a mock of Initialiser interface
func NewMockInitialiser ¶
func NewMockInitialiser(ctrl *gomock.Controller) *MockInitialiser
NewMockInitialiser creates a new mock instance
func (*MockInitialiser) EXPECT ¶
func (m *MockInitialiser) EXPECT() *MockInitialiserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInitialiser) Initialise ¶
func (m *MockInitialiser) Initialise() error
Initialise mocks base method
type MockInitialiserMockRecorder ¶
type MockInitialiserMockRecorder struct {
// contains filtered or unexported fields
}
MockInitialiserMockRecorder is the mock recorder for MockInitialiser
func (*MockInitialiserMockRecorder) Initialise ¶
func (mr *MockInitialiserMockRecorder) Initialise() *gomock.Call
Initialise indicates an expected call of Initialise
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance
func (*MockManager) CreateContainer ¶
func (m *MockManager) CreateContainer(arg0 *instancecfg.InstanceConfig, arg1 constraints.Value, arg2 string, arg3 *container.NetworkConfig, arg4 *container.StorageConfig, arg5 environs.StatusCallbackFunc) (instances.Instance, *instance.HardwareCharacteristics, error)
CreateContainer mocks base method
func (*MockManager) DestroyContainer ¶
func (m *MockManager) DestroyContainer(arg0 instance.Id) error
DestroyContainer mocks base method
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockManager) IsInitialized ¶
func (m *MockManager) IsInitialized() bool
IsInitialized mocks base method
func (*MockManager) ListContainers ¶
func (m *MockManager) ListContainers() ([]instances.Instance, error)
ListContainers mocks base method
func (*MockManager) Namespace ¶
func (m *MockManager) Namespace() instance.Namespace
Namespace mocks base method
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager
func (*MockManagerMockRecorder) CreateContainer ¶
func (mr *MockManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
CreateContainer indicates an expected call of CreateContainer
func (*MockManagerMockRecorder) DestroyContainer ¶
func (mr *MockManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call
DestroyContainer indicates an expected call of DestroyContainer
func (*MockManagerMockRecorder) IsInitialized ¶
func (mr *MockManagerMockRecorder) IsInitialized() *gomock.Call
IsInitialized indicates an expected call of IsInitialized
func (*MockManagerMockRecorder) ListContainers ¶
func (mr *MockManagerMockRecorder) ListContainers() *gomock.Call
ListContainers indicates an expected call of ListContainers
func (*MockManagerMockRecorder) Namespace ¶
func (mr *MockManagerMockRecorder) Namespace() *gomock.Call
Namespace indicates an expected call of Namespace
type MockTestLXDManager ¶
type MockTestLXDManager struct {
// contains filtered or unexported fields
}
MockTestLXDManager is a mock of TestLXDManager interface
func NewMockTestLXDManager ¶
func NewMockTestLXDManager(ctrl *gomock.Controller) *MockTestLXDManager
NewMockTestLXDManager creates a new mock instance
func (*MockTestLXDManager) AssignLXDProfiles ¶
func (m *MockTestLXDManager) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)
AssignLXDProfiles mocks base method
func (*MockTestLXDManager) CreateContainer ¶
func (m *MockTestLXDManager) CreateContainer(arg0 *instancecfg.InstanceConfig, arg1 constraints.Value, arg2 string, arg3 *container.NetworkConfig, arg4 *container.StorageConfig, arg5 environs.StatusCallbackFunc) (instances.Instance, *instance.HardwareCharacteristics, error)
CreateContainer mocks base method
func (*MockTestLXDManager) DestroyContainer ¶
func (m *MockTestLXDManager) DestroyContainer(arg0 instance.Id) error
DestroyContainer mocks base method
func (*MockTestLXDManager) EXPECT ¶
func (m *MockTestLXDManager) EXPECT() *MockTestLXDManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTestLXDManager) IsInitialized ¶
func (m *MockTestLXDManager) IsInitialized() bool
IsInitialized mocks base method
func (*MockTestLXDManager) LXDProfileNames ¶
func (m *MockTestLXDManager) LXDProfileNames(arg0 string) ([]string, error)
LXDProfileNames mocks base method
func (*MockTestLXDManager) ListContainers ¶
func (m *MockTestLXDManager) ListContainers() ([]instances.Instance, error)
ListContainers mocks base method
func (*MockTestLXDManager) MaybeWriteLXDProfile ¶
func (m *MockTestLXDManager) MaybeWriteLXDProfile(arg0 string, arg1 lxdprofile.Profile) error
MaybeWriteLXDProfile mocks base method
func (*MockTestLXDManager) Namespace ¶
func (m *MockTestLXDManager) Namespace() instance.Namespace
Namespace mocks base method
type MockTestLXDManagerMockRecorder ¶
type MockTestLXDManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockTestLXDManagerMockRecorder is the mock recorder for MockTestLXDManager
func (*MockTestLXDManagerMockRecorder) AssignLXDProfiles ¶
func (mr *MockTestLXDManagerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 interface{}) *gomock.Call
AssignLXDProfiles indicates an expected call of AssignLXDProfiles
func (*MockTestLXDManagerMockRecorder) CreateContainer ¶
func (mr *MockTestLXDManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
CreateContainer indicates an expected call of CreateContainer
func (*MockTestLXDManagerMockRecorder) DestroyContainer ¶
func (mr *MockTestLXDManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call
DestroyContainer indicates an expected call of DestroyContainer
func (*MockTestLXDManagerMockRecorder) IsInitialized ¶
func (mr *MockTestLXDManagerMockRecorder) IsInitialized() *gomock.Call
IsInitialized indicates an expected call of IsInitialized
func (*MockTestLXDManagerMockRecorder) LXDProfileNames ¶
func (mr *MockTestLXDManagerMockRecorder) LXDProfileNames(arg0 interface{}) *gomock.Call
LXDProfileNames indicates an expected call of LXDProfileNames
func (*MockTestLXDManagerMockRecorder) ListContainers ¶
func (mr *MockTestLXDManagerMockRecorder) ListContainers() *gomock.Call
ListContainers indicates an expected call of ListContainers
func (*MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile ¶
func (mr *MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 interface{}) *gomock.Call
MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile
func (*MockTestLXDManagerMockRecorder) Namespace ¶
func (mr *MockTestLXDManagerMockRecorder) Namespace() *gomock.Call
Namespace indicates an expected call of Namespace