testing

package
v0.0.0-...-b9bb202 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCloudInit

func AssertCloudInit(c *gc.C, filename string) []byte

func CreateContainer

func CreateContainer(c *gc.C, manager container.Manager, machineId string) instances.Instance

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

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

type MockInitialiserInitialiseCall struct {
	*gomock.Call
}

MockInitialiserInitialiseCall wrap *gomock.Call

func (*MockInitialiserInitialiseCall) Do

Do rewrite *gomock.Call.Do

func (*MockInitialiserInitialiseCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInitialiserInitialiseCall) Return

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

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

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

type MockManagerCreateContainerCall struct {
	*gomock.Call
}

MockManagerCreateContainerCall wrap *gomock.Call

func (*MockManagerCreateContainerCall) Return

Return rewrite *gomock.Call.Return

type MockManagerDestroyContainerCall

type MockManagerDestroyContainerCall struct {
	*gomock.Call
}

MockManagerDestroyContainerCall wrap *gomock.Call

func (*MockManagerDestroyContainerCall) Do

Do rewrite *gomock.Call.Do

func (*MockManagerDestroyContainerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockManagerDestroyContainerCall) Return

Return rewrite *gomock.Call.Return

type MockManagerIsInitializedCall

type MockManagerIsInitializedCall struct {
	*gomock.Call
}

MockManagerIsInitializedCall wrap *gomock.Call

func (*MockManagerIsInitializedCall) Do

Do rewrite *gomock.Call.Do

func (*MockManagerIsInitializedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockManagerIsInitializedCall) Return

Return rewrite *gomock.Call.Return

type MockManagerListContainersCall

type MockManagerListContainersCall struct {
	*gomock.Call
}

MockManagerListContainersCall wrap *gomock.Call

func (*MockManagerListContainersCall) Do

Do rewrite *gomock.Call.Do

func (*MockManagerListContainersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockManagerListContainersCall) Return

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

IsInitialized indicates an expected call of IsInitialized.

func (*MockManagerMockRecorder) ListContainers

ListContainers indicates an expected call of ListContainers.

func (*MockManagerMockRecorder) Namespace

Namespace indicates an expected call of Namespace.

type MockManagerNamespaceCall

type MockManagerNamespaceCall struct {
	*gomock.Call
}

MockManagerNamespaceCall wrap *gomock.Call

func (*MockManagerNamespaceCall) Do

Do rewrite *gomock.Call.Do

func (*MockManagerNamespaceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockManagerNamespaceCall) Return

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

CreateContainer mocks base method.

func (*MockTestLXDManager) DestroyContainer

func (m *MockTestLXDManager) DestroyContainer(arg0 instance.Id) error

DestroyContainer mocks base method.

func (*MockTestLXDManager) EXPECT

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

type MockTestLXDManagerAssignLXDProfilesCall struct {
	*gomock.Call
}

MockTestLXDManagerAssignLXDProfilesCall wrap *gomock.Call

func (*MockTestLXDManagerAssignLXDProfilesCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestLXDManagerAssignLXDProfilesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestLXDManagerAssignLXDProfilesCall) Return

Return rewrite *gomock.Call.Return

type MockTestLXDManagerCreateContainerCall

type MockTestLXDManagerCreateContainerCall struct {
	*gomock.Call
}

MockTestLXDManagerCreateContainerCall wrap *gomock.Call

func (*MockTestLXDManagerCreateContainerCall) Return

Return rewrite *gomock.Call.Return

type MockTestLXDManagerDestroyContainerCall

type MockTestLXDManagerDestroyContainerCall struct {
	*gomock.Call
}

MockTestLXDManagerDestroyContainerCall wrap *gomock.Call

func (*MockTestLXDManagerDestroyContainerCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestLXDManagerDestroyContainerCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestLXDManagerDestroyContainerCall) Return

Return rewrite *gomock.Call.Return

type MockTestLXDManagerIsInitializedCall

type MockTestLXDManagerIsInitializedCall struct {
	*gomock.Call
}

MockTestLXDManagerIsInitializedCall wrap *gomock.Call

func (*MockTestLXDManagerIsInitializedCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestLXDManagerIsInitializedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestLXDManagerIsInitializedCall) Return

Return rewrite *gomock.Call.Return

type MockTestLXDManagerLXDProfileNamesCall

type MockTestLXDManagerLXDProfileNamesCall struct {
	*gomock.Call
}

MockTestLXDManagerLXDProfileNamesCall wrap *gomock.Call

func (*MockTestLXDManagerLXDProfileNamesCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestLXDManagerLXDProfileNamesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestLXDManagerLXDProfileNamesCall) Return

Return rewrite *gomock.Call.Return

type MockTestLXDManagerListContainersCall

type MockTestLXDManagerListContainersCall struct {
	*gomock.Call
}

MockTestLXDManagerListContainersCall wrap *gomock.Call

func (*MockTestLXDManagerListContainersCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestLXDManagerListContainersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestLXDManagerListContainersCall) Return

Return rewrite *gomock.Call.Return

type MockTestLXDManagerMaybeWriteLXDProfileCall

type MockTestLXDManagerMaybeWriteLXDProfileCall struct {
	*gomock.Call
}

MockTestLXDManagerMaybeWriteLXDProfileCall wrap *gomock.Call

func (*MockTestLXDManagerMaybeWriteLXDProfileCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestLXDManagerMaybeWriteLXDProfileCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestLXDManagerMaybeWriteLXDProfileCall) Return

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

DestroyContainer indicates an expected call of DestroyContainer.

func (*MockTestLXDManagerMockRecorder) IsInitialized

IsInitialized indicates an expected call of IsInitialized.

func (*MockTestLXDManagerMockRecorder) LXDProfileNames

LXDProfileNames indicates an expected call of LXDProfileNames.

func (*MockTestLXDManagerMockRecorder) ListContainers

ListContainers indicates an expected call of ListContainers.

func (*MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile

MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile.

func (*MockTestLXDManagerMockRecorder) Namespace

Namespace indicates an expected call of Namespace.

type MockTestLXDManagerNamespaceCall

type MockTestLXDManagerNamespaceCall struct {
	*gomock.Call
}

MockTestLXDManagerNamespaceCall wrap *gomock.Call

func (*MockTestLXDManagerNamespaceCall) Do

Do rewrite *gomock.Call.Do

func (*MockTestLXDManagerNamespaceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTestLXDManagerNamespaceCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL