Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/juju/juju/internal/container (interfaces: TestLXDManager)
Generated by this command:
mockgen -typed -package testing -destination testing/interface_mock.go -write_package_comment=false github.com/juju/juju/internal/container TestLXDManager
Code generated by MockGen. DO NOT EDIT. Source: github.com/juju/juju/internal/container (interfaces: Manager,Initialiser)
Generated by this command:
mockgen -typed -package testing -destination testing/package_mock.go -write_package_comment=false github.com/juju/juju/internal/container Manager,Initialiser
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 MockInitialiserInitialiseCall
- type MockInitialiserMockRecorder
- type MockManager
- func (m *MockManager) CreateContainer(arg0 context.Context, arg1 *instancecfg.InstanceConfig, arg2 constraints.Value, ...) (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 MockManagerCreateContainerCall
- func (c *MockManagerCreateContainerCall) Do(...) *MockManagerCreateContainerCall
- func (c *MockManagerCreateContainerCall) DoAndReturn(...) *MockManagerCreateContainerCall
- func (c *MockManagerCreateContainerCall) Return(arg0 instances.Instance, arg1 *instance.HardwareCharacteristics, arg2 error) *MockManagerCreateContainerCall
- type MockManagerDestroyContainerCall
- func (c *MockManagerDestroyContainerCall) Do(f func(instance.Id) error) *MockManagerDestroyContainerCall
- func (c *MockManagerDestroyContainerCall) DoAndReturn(f func(instance.Id) error) *MockManagerDestroyContainerCall
- func (c *MockManagerDestroyContainerCall) Return(arg0 error) *MockManagerDestroyContainerCall
- type MockManagerIsInitializedCall
- type MockManagerListContainersCall
- func (c *MockManagerListContainersCall) Do(f func() ([]instances.Instance, error)) *MockManagerListContainersCall
- func (c *MockManagerListContainersCall) DoAndReturn(f func() ([]instances.Instance, error)) *MockManagerListContainersCall
- func (c *MockManagerListContainersCall) Return(arg0 []instances.Instance, arg1 error) *MockManagerListContainersCall
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockManagerCreateContainerCall
- func (mr *MockManagerMockRecorder) DestroyContainer(arg0 any) *MockManagerDestroyContainerCall
- func (mr *MockManagerMockRecorder) IsInitialized() *MockManagerIsInitializedCall
- func (mr *MockManagerMockRecorder) ListContainers() *MockManagerListContainersCall
- func (mr *MockManagerMockRecorder) Namespace() *MockManagerNamespaceCall
- type MockManagerNamespaceCall
- type MockTestLXDManager
- func (m *MockTestLXDManager) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)
- func (m *MockTestLXDManager) CreateContainer(arg0 context.Context, arg1 *instancecfg.InstanceConfig, arg2 constraints.Value, ...) (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 MockTestLXDManagerAssignLXDProfilesCall
- func (c *MockTestLXDManagerAssignLXDProfilesCall) Do(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockTestLXDManagerAssignLXDProfilesCall
- func (c *MockTestLXDManagerAssignLXDProfilesCall) DoAndReturn(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockTestLXDManagerAssignLXDProfilesCall
- func (c *MockTestLXDManagerAssignLXDProfilesCall) Return(arg0 []string, arg1 error) *MockTestLXDManagerAssignLXDProfilesCall
- type MockTestLXDManagerCreateContainerCall
- func (c *MockTestLXDManagerCreateContainerCall) Do(...) *MockTestLXDManagerCreateContainerCall
- func (c *MockTestLXDManagerCreateContainerCall) DoAndReturn(...) *MockTestLXDManagerCreateContainerCall
- func (c *MockTestLXDManagerCreateContainerCall) Return(arg0 instances.Instance, arg1 *instance.HardwareCharacteristics, arg2 error) *MockTestLXDManagerCreateContainerCall
- type MockTestLXDManagerDestroyContainerCall
- func (c *MockTestLXDManagerDestroyContainerCall) Do(f func(instance.Id) error) *MockTestLXDManagerDestroyContainerCall
- func (c *MockTestLXDManagerDestroyContainerCall) DoAndReturn(f func(instance.Id) error) *MockTestLXDManagerDestroyContainerCall
- func (c *MockTestLXDManagerDestroyContainerCall) Return(arg0 error) *MockTestLXDManagerDestroyContainerCall
- type MockTestLXDManagerIsInitializedCall
- func (c *MockTestLXDManagerIsInitializedCall) Do(f func() bool) *MockTestLXDManagerIsInitializedCall
- func (c *MockTestLXDManagerIsInitializedCall) DoAndReturn(f func() bool) *MockTestLXDManagerIsInitializedCall
- func (c *MockTestLXDManagerIsInitializedCall) Return(arg0 bool) *MockTestLXDManagerIsInitializedCall
- type MockTestLXDManagerLXDProfileNamesCall
- func (c *MockTestLXDManagerLXDProfileNamesCall) Do(f func(string) ([]string, error)) *MockTestLXDManagerLXDProfileNamesCall
- func (c *MockTestLXDManagerLXDProfileNamesCall) DoAndReturn(f func(string) ([]string, error)) *MockTestLXDManagerLXDProfileNamesCall
- func (c *MockTestLXDManagerLXDProfileNamesCall) Return(arg0 []string, arg1 error) *MockTestLXDManagerLXDProfileNamesCall
- type MockTestLXDManagerListContainersCall
- func (c *MockTestLXDManagerListContainersCall) Do(f func() ([]instances.Instance, error)) *MockTestLXDManagerListContainersCall
- func (c *MockTestLXDManagerListContainersCall) DoAndReturn(f func() ([]instances.Instance, error)) *MockTestLXDManagerListContainersCall
- func (c *MockTestLXDManagerListContainersCall) Return(arg0 []instances.Instance, arg1 error) *MockTestLXDManagerListContainersCall
- type MockTestLXDManagerMaybeWriteLXDProfileCall
- func (c *MockTestLXDManagerMaybeWriteLXDProfileCall) Do(f func(string, lxdprofile.Profile) error) *MockTestLXDManagerMaybeWriteLXDProfileCall
- func (c *MockTestLXDManagerMaybeWriteLXDProfileCall) DoAndReturn(f func(string, lxdprofile.Profile) error) *MockTestLXDManagerMaybeWriteLXDProfileCall
- func (c *MockTestLXDManagerMaybeWriteLXDProfileCall) Return(arg0 error) *MockTestLXDManagerMaybeWriteLXDProfileCall
- type MockTestLXDManagerMockRecorder
- func (mr *MockTestLXDManagerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 any) *MockTestLXDManagerAssignLXDProfilesCall
- func (mr *MockTestLXDManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockTestLXDManagerCreateContainerCall
- func (mr *MockTestLXDManagerMockRecorder) DestroyContainer(arg0 any) *MockTestLXDManagerDestroyContainerCall
- func (mr *MockTestLXDManagerMockRecorder) IsInitialized() *MockTestLXDManagerIsInitializedCall
- func (mr *MockTestLXDManagerMockRecorder) LXDProfileNames(arg0 any) *MockTestLXDManagerLXDProfileNamesCall
- func (mr *MockTestLXDManagerMockRecorder) ListContainers() *MockTestLXDManagerListContainersCall
- func (mr *MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 any) *MockTestLXDManagerMaybeWriteLXDProfileCall
- func (mr *MockTestLXDManagerMockRecorder) Namespace() *MockTestLXDManagerNamespaceCall
- type MockTestLXDManagerNamespaceCall
- func (c *MockTestLXDManagerNamespaceCall) Do(f func() instance.Namespace) *MockTestLXDManagerNamespaceCall
- func (c *MockTestLXDManagerNamespaceCall) DoAndReturn(f func() instance.Namespace) *MockTestLXDManagerNamespaceCall
- func (c *MockTestLXDManagerNamespaceCall) Return(arg0 instance.Namespace) *MockTestLXDManagerNamespaceCall
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 MockInitialiserInitialiseCall ¶
MockInitialiserInitialiseCall wrap *gomock.Call
func (*MockInitialiserInitialiseCall) Do ¶
func (c *MockInitialiserInitialiseCall) Do(f func() error) *MockInitialiserInitialiseCall
Do rewrite *gomock.Call.Do
func (*MockInitialiserInitialiseCall) DoAndReturn ¶
func (c *MockInitialiserInitialiseCall) DoAndReturn(f func() error) *MockInitialiserInitialiseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInitialiserInitialiseCall) Return ¶
func (c *MockInitialiserInitialiseCall) Return(arg0 error) *MockInitialiserInitialiseCall
Return rewrite *gomock.Call.Return
type MockInitialiserMockRecorder ¶
type MockInitialiserMockRecorder struct {
// contains filtered or unexported fields
}
MockInitialiserMockRecorder is the mock recorder for MockInitialiser.
func (*MockInitialiserMockRecorder) Initialise ¶
func (mr *MockInitialiserMockRecorder) Initialise() *MockInitialiserInitialiseCall
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 context.Context, arg1 *instancecfg.InstanceConfig, arg2 constraints.Value, arg3 base.Base, arg4 *container.NetworkConfig, arg5 *container.StorageConfig, arg6 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 MockManagerCreateContainerCall ¶
MockManagerCreateContainerCall wrap *gomock.Call
func (*MockManagerCreateContainerCall) Do ¶
func (c *MockManagerCreateContainerCall) Do(f func(context.Context, *instancecfg.InstanceConfig, constraints.Value, base.Base, *container.NetworkConfig, *container.StorageConfig, environs.StatusCallbackFunc) (instances.Instance, *instance.HardwareCharacteristics, error)) *MockManagerCreateContainerCall
Do rewrite *gomock.Call.Do
func (*MockManagerCreateContainerCall) DoAndReturn ¶
func (c *MockManagerCreateContainerCall) DoAndReturn(f func(context.Context, *instancecfg.InstanceConfig, constraints.Value, base.Base, *container.NetworkConfig, *container.StorageConfig, environs.StatusCallbackFunc) (instances.Instance, *instance.HardwareCharacteristics, error)) *MockManagerCreateContainerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockManagerCreateContainerCall) Return ¶
func (c *MockManagerCreateContainerCall) Return(arg0 instances.Instance, arg1 *instance.HardwareCharacteristics, arg2 error) *MockManagerCreateContainerCall
Return rewrite *gomock.Call.Return
type MockManagerDestroyContainerCall ¶
MockManagerDestroyContainerCall wrap *gomock.Call
func (*MockManagerDestroyContainerCall) Do ¶
func (c *MockManagerDestroyContainerCall) Do(f func(instance.Id) error) *MockManagerDestroyContainerCall
Do rewrite *gomock.Call.Do
func (*MockManagerDestroyContainerCall) DoAndReturn ¶
func (c *MockManagerDestroyContainerCall) DoAndReturn(f func(instance.Id) error) *MockManagerDestroyContainerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockManagerDestroyContainerCall) Return ¶
func (c *MockManagerDestroyContainerCall) Return(arg0 error) *MockManagerDestroyContainerCall
Return rewrite *gomock.Call.Return
type MockManagerIsInitializedCall ¶
MockManagerIsInitializedCall wrap *gomock.Call
func (*MockManagerIsInitializedCall) Do ¶
func (c *MockManagerIsInitializedCall) Do(f func() bool) *MockManagerIsInitializedCall
Do rewrite *gomock.Call.Do
func (*MockManagerIsInitializedCall) DoAndReturn ¶
func (c *MockManagerIsInitializedCall) DoAndReturn(f func() bool) *MockManagerIsInitializedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockManagerIsInitializedCall) Return ¶
func (c *MockManagerIsInitializedCall) Return(arg0 bool) *MockManagerIsInitializedCall
Return rewrite *gomock.Call.Return
type MockManagerListContainersCall ¶
MockManagerListContainersCall wrap *gomock.Call
func (*MockManagerListContainersCall) Do ¶
func (c *MockManagerListContainersCall) Do(f func() ([]instances.Instance, error)) *MockManagerListContainersCall
Do rewrite *gomock.Call.Do
func (*MockManagerListContainersCall) DoAndReturn ¶
func (c *MockManagerListContainersCall) DoAndReturn(f func() ([]instances.Instance, error)) *MockManagerListContainersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockManagerListContainersCall) Return ¶
func (c *MockManagerListContainersCall) Return(arg0 []instances.Instance, arg1 error) *MockManagerListContainersCall
Return rewrite *gomock.Call.Return
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, arg6 any) *MockManagerCreateContainerCall
CreateContainer indicates an expected call of CreateContainer.
func (*MockManagerMockRecorder) DestroyContainer ¶
func (mr *MockManagerMockRecorder) DestroyContainer(arg0 any) *MockManagerDestroyContainerCall
DestroyContainer indicates an expected call of DestroyContainer.
func (*MockManagerMockRecorder) IsInitialized ¶
func (mr *MockManagerMockRecorder) IsInitialized() *MockManagerIsInitializedCall
IsInitialized indicates an expected call of IsInitialized.
func (*MockManagerMockRecorder) ListContainers ¶
func (mr *MockManagerMockRecorder) ListContainers() *MockManagerListContainersCall
ListContainers indicates an expected call of ListContainers.
func (*MockManagerMockRecorder) Namespace ¶
func (mr *MockManagerMockRecorder) Namespace() *MockManagerNamespaceCall
Namespace indicates an expected call of Namespace.
type MockManagerNamespaceCall ¶
MockManagerNamespaceCall wrap *gomock.Call
func (*MockManagerNamespaceCall) Do ¶
func (c *MockManagerNamespaceCall) Do(f func() instance.Namespace) *MockManagerNamespaceCall
Do rewrite *gomock.Call.Do
func (*MockManagerNamespaceCall) DoAndReturn ¶
func (c *MockManagerNamespaceCall) DoAndReturn(f func() instance.Namespace) *MockManagerNamespaceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockManagerNamespaceCall) Return ¶
func (c *MockManagerNamespaceCall) Return(arg0 instance.Namespace) *MockManagerNamespaceCall
Return rewrite *gomock.Call.Return
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 context.Context, arg1 *instancecfg.InstanceConfig, arg2 constraints.Value, arg3 base.Base, arg4 *container.NetworkConfig, arg5 *container.StorageConfig, arg6 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 MockTestLXDManagerAssignLXDProfilesCall ¶
MockTestLXDManagerAssignLXDProfilesCall wrap *gomock.Call
func (*MockTestLXDManagerAssignLXDProfilesCall) Do ¶
func (c *MockTestLXDManagerAssignLXDProfilesCall) Do(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockTestLXDManagerAssignLXDProfilesCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerAssignLXDProfilesCall) DoAndReturn ¶
func (c *MockTestLXDManagerAssignLXDProfilesCall) DoAndReturn(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockTestLXDManagerAssignLXDProfilesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerAssignLXDProfilesCall) Return ¶
func (c *MockTestLXDManagerAssignLXDProfilesCall) Return(arg0 []string, arg1 error) *MockTestLXDManagerAssignLXDProfilesCall
Return rewrite *gomock.Call.Return
type MockTestLXDManagerCreateContainerCall ¶
MockTestLXDManagerCreateContainerCall wrap *gomock.Call
func (*MockTestLXDManagerCreateContainerCall) Do ¶
func (c *MockTestLXDManagerCreateContainerCall) Do(f func(context.Context, *instancecfg.InstanceConfig, constraints.Value, base.Base, *container.NetworkConfig, *container.StorageConfig, environs.StatusCallbackFunc) (instances.Instance, *instance.HardwareCharacteristics, error)) *MockTestLXDManagerCreateContainerCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerCreateContainerCall) DoAndReturn ¶
func (c *MockTestLXDManagerCreateContainerCall) DoAndReturn(f func(context.Context, *instancecfg.InstanceConfig, constraints.Value, base.Base, *container.NetworkConfig, *container.StorageConfig, environs.StatusCallbackFunc) (instances.Instance, *instance.HardwareCharacteristics, error)) *MockTestLXDManagerCreateContainerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerCreateContainerCall) Return ¶
func (c *MockTestLXDManagerCreateContainerCall) Return(arg0 instances.Instance, arg1 *instance.HardwareCharacteristics, arg2 error) *MockTestLXDManagerCreateContainerCall
Return rewrite *gomock.Call.Return
type MockTestLXDManagerDestroyContainerCall ¶
MockTestLXDManagerDestroyContainerCall wrap *gomock.Call
func (*MockTestLXDManagerDestroyContainerCall) Do ¶
func (c *MockTestLXDManagerDestroyContainerCall) Do(f func(instance.Id) error) *MockTestLXDManagerDestroyContainerCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerDestroyContainerCall) DoAndReturn ¶
func (c *MockTestLXDManagerDestroyContainerCall) DoAndReturn(f func(instance.Id) error) *MockTestLXDManagerDestroyContainerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerDestroyContainerCall) Return ¶
func (c *MockTestLXDManagerDestroyContainerCall) Return(arg0 error) *MockTestLXDManagerDestroyContainerCall
Return rewrite *gomock.Call.Return
type MockTestLXDManagerIsInitializedCall ¶
MockTestLXDManagerIsInitializedCall wrap *gomock.Call
func (*MockTestLXDManagerIsInitializedCall) Do ¶
func (c *MockTestLXDManagerIsInitializedCall) Do(f func() bool) *MockTestLXDManagerIsInitializedCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerIsInitializedCall) DoAndReturn ¶
func (c *MockTestLXDManagerIsInitializedCall) DoAndReturn(f func() bool) *MockTestLXDManagerIsInitializedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerIsInitializedCall) Return ¶
func (c *MockTestLXDManagerIsInitializedCall) Return(arg0 bool) *MockTestLXDManagerIsInitializedCall
Return rewrite *gomock.Call.Return
type MockTestLXDManagerLXDProfileNamesCall ¶
MockTestLXDManagerLXDProfileNamesCall wrap *gomock.Call
func (*MockTestLXDManagerLXDProfileNamesCall) Do ¶
func (c *MockTestLXDManagerLXDProfileNamesCall) Do(f func(string) ([]string, error)) *MockTestLXDManagerLXDProfileNamesCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerLXDProfileNamesCall) DoAndReturn ¶
func (c *MockTestLXDManagerLXDProfileNamesCall) DoAndReturn(f func(string) ([]string, error)) *MockTestLXDManagerLXDProfileNamesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerLXDProfileNamesCall) Return ¶
func (c *MockTestLXDManagerLXDProfileNamesCall) Return(arg0 []string, arg1 error) *MockTestLXDManagerLXDProfileNamesCall
Return rewrite *gomock.Call.Return
type MockTestLXDManagerListContainersCall ¶
MockTestLXDManagerListContainersCall wrap *gomock.Call
func (*MockTestLXDManagerListContainersCall) Do ¶
func (c *MockTestLXDManagerListContainersCall) Do(f func() ([]instances.Instance, error)) *MockTestLXDManagerListContainersCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerListContainersCall) DoAndReturn ¶
func (c *MockTestLXDManagerListContainersCall) DoAndReturn(f func() ([]instances.Instance, error)) *MockTestLXDManagerListContainersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerListContainersCall) Return ¶
func (c *MockTestLXDManagerListContainersCall) Return(arg0 []instances.Instance, arg1 error) *MockTestLXDManagerListContainersCall
Return rewrite *gomock.Call.Return
type MockTestLXDManagerMaybeWriteLXDProfileCall ¶
MockTestLXDManagerMaybeWriteLXDProfileCall wrap *gomock.Call
func (*MockTestLXDManagerMaybeWriteLXDProfileCall) Do ¶
func (c *MockTestLXDManagerMaybeWriteLXDProfileCall) Do(f func(string, lxdprofile.Profile) error) *MockTestLXDManagerMaybeWriteLXDProfileCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerMaybeWriteLXDProfileCall) DoAndReturn ¶
func (c *MockTestLXDManagerMaybeWriteLXDProfileCall) DoAndReturn(f func(string, lxdprofile.Profile) error) *MockTestLXDManagerMaybeWriteLXDProfileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerMaybeWriteLXDProfileCall) Return ¶
func (c *MockTestLXDManagerMaybeWriteLXDProfileCall) Return(arg0 error) *MockTestLXDManagerMaybeWriteLXDProfileCall
Return rewrite *gomock.Call.Return
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 any) *MockTestLXDManagerAssignLXDProfilesCall
AssignLXDProfiles indicates an expected call of AssignLXDProfiles.
func (*MockTestLXDManagerMockRecorder) CreateContainer ¶
func (mr *MockTestLXDManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockTestLXDManagerCreateContainerCall
CreateContainer indicates an expected call of CreateContainer.
func (*MockTestLXDManagerMockRecorder) DestroyContainer ¶
func (mr *MockTestLXDManagerMockRecorder) DestroyContainer(arg0 any) *MockTestLXDManagerDestroyContainerCall
DestroyContainer indicates an expected call of DestroyContainer.
func (*MockTestLXDManagerMockRecorder) IsInitialized ¶
func (mr *MockTestLXDManagerMockRecorder) IsInitialized() *MockTestLXDManagerIsInitializedCall
IsInitialized indicates an expected call of IsInitialized.
func (*MockTestLXDManagerMockRecorder) LXDProfileNames ¶
func (mr *MockTestLXDManagerMockRecorder) LXDProfileNames(arg0 any) *MockTestLXDManagerLXDProfileNamesCall
LXDProfileNames indicates an expected call of LXDProfileNames.
func (*MockTestLXDManagerMockRecorder) ListContainers ¶
func (mr *MockTestLXDManagerMockRecorder) ListContainers() *MockTestLXDManagerListContainersCall
ListContainers indicates an expected call of ListContainers.
func (*MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile ¶
func (mr *MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 any) *MockTestLXDManagerMaybeWriteLXDProfileCall
MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile.
func (*MockTestLXDManagerMockRecorder) Namespace ¶
func (mr *MockTestLXDManagerMockRecorder) Namespace() *MockTestLXDManagerNamespaceCall
Namespace indicates an expected call of Namespace.
type MockTestLXDManagerNamespaceCall ¶
MockTestLXDManagerNamespaceCall wrap *gomock.Call
func (*MockTestLXDManagerNamespaceCall) Do ¶
func (c *MockTestLXDManagerNamespaceCall) Do(f func() instance.Namespace) *MockTestLXDManagerNamespaceCall
Do rewrite *gomock.Call.Do
func (*MockTestLXDManagerNamespaceCall) DoAndReturn ¶
func (c *MockTestLXDManagerNamespaceCall) DoAndReturn(f func() instance.Namespace) *MockTestLXDManagerNamespaceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockTestLXDManagerNamespaceCall) Return ¶
func (c *MockTestLXDManagerNamespaceCall) Return(arg0 instance.Namespace) *MockTestLXDManagerNamespaceCall
Return rewrite *gomock.Call.Return