juju: github.com/juju/juju/container/testing Index | Files

package testing

import "github.com/juju/juju/container/testing"

Package testing is a generated GoMock package.

Package testing is a generated GoMock package.

Index

Package Files

common.go interface_mock.go package_mock.go

func AssertCloudInit Uses

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

func CreateContainer Uses

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

func CreateContainerWithMachineAndNetworkAndStorageConfig Uses

func CreateContainerWithMachineAndNetworkAndStorageConfig(
    c *gc.C,
    manager container.Manager,
    instanceConfig *instancecfg.InstanceConfig,
    networkConfig *container.NetworkConfig,
    storageConfig *container.StorageConfig,
) instances.Instance

func CreateContainerWithMachineConfig Uses

func CreateContainerWithMachineConfig(
    c *gc.C,
    manager container.Manager,
    instanceConfig *instancecfg.InstanceConfig,
) instances.Instance

func MockMachineConfig Uses

func MockMachineConfig(machineId string) (*instancecfg.InstanceConfig, error)

type MockInitialiser Uses

type MockInitialiser struct {
    // contains filtered or unexported fields
}

MockInitialiser is a mock of Initialiser interface

func NewMockInitialiser Uses

func NewMockInitialiser(ctrl *gomock.Controller) *MockInitialiser

NewMockInitialiser creates a new mock instance

func (*MockInitialiser) EXPECT Uses

func (m *MockInitialiser) EXPECT() *MockInitialiserMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockInitialiser) Initialise Uses

func (m *MockInitialiser) Initialise() error

Initialise mocks base method

type MockInitialiserMockRecorder Uses

type MockInitialiserMockRecorder struct {
    // contains filtered or unexported fields
}

MockInitialiserMockRecorder is the mock recorder for MockInitialiser

func (*MockInitialiserMockRecorder) Initialise Uses

func (mr *MockInitialiserMockRecorder) Initialise() *gomock.Call

Initialise indicates an expected call of Initialise

type MockManager Uses

type MockManager struct {
    // contains filtered or unexported fields
}

MockManager is a mock of Manager interface

func NewMockManager Uses

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance

func (*MockManager) CreateContainer Uses

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 Uses

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

DestroyContainer mocks base method

func (*MockManager) EXPECT Uses

func (m *MockManager) EXPECT() *MockManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockManager) IsInitialized Uses

func (m *MockManager) IsInitialized() bool

IsInitialized mocks base method

func (*MockManager) ListContainers Uses

func (m *MockManager) ListContainers() ([]instances.Instance, error)

ListContainers mocks base method

func (*MockManager) Namespace Uses

func (m *MockManager) Namespace() instance.Namespace

Namespace mocks base method

type MockManagerMockRecorder Uses

type MockManagerMockRecorder struct {
    // contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager

func (*MockManagerMockRecorder) CreateContainer Uses

func (mr *MockManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

CreateContainer indicates an expected call of CreateContainer

func (*MockManagerMockRecorder) DestroyContainer Uses

func (mr *MockManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call

DestroyContainer indicates an expected call of DestroyContainer

func (*MockManagerMockRecorder) IsInitialized Uses

func (mr *MockManagerMockRecorder) IsInitialized() *gomock.Call

IsInitialized indicates an expected call of IsInitialized

func (*MockManagerMockRecorder) ListContainers Uses

func (mr *MockManagerMockRecorder) ListContainers() *gomock.Call

ListContainers indicates an expected call of ListContainers

func (*MockManagerMockRecorder) Namespace Uses

func (mr *MockManagerMockRecorder) Namespace() *gomock.Call

Namespace indicates an expected call of Namespace

type MockTestLXDManager Uses

type MockTestLXDManager struct {
    // contains filtered or unexported fields
}

MockTestLXDManager is a mock of TestLXDManager interface

func NewMockTestLXDManager Uses

func NewMockTestLXDManager(ctrl *gomock.Controller) *MockTestLXDManager

NewMockTestLXDManager creates a new mock instance

func (*MockTestLXDManager) AssignLXDProfiles Uses

func (m *MockTestLXDManager) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)

AssignLXDProfiles mocks base method

func (*MockTestLXDManager) CreateContainer Uses

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 Uses

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

DestroyContainer mocks base method

func (*MockTestLXDManager) EXPECT Uses

func (m *MockTestLXDManager) EXPECT() *MockTestLXDManagerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTestLXDManager) IsInitialized Uses

func (m *MockTestLXDManager) IsInitialized() bool

IsInitialized mocks base method

func (*MockTestLXDManager) LXDProfileNames Uses

func (m *MockTestLXDManager) LXDProfileNames(arg0 string) ([]string, error)

LXDProfileNames mocks base method

func (*MockTestLXDManager) ListContainers Uses

func (m *MockTestLXDManager) ListContainers() ([]instances.Instance, error)

ListContainers mocks base method

func (*MockTestLXDManager) MaybeWriteLXDProfile Uses

func (m *MockTestLXDManager) MaybeWriteLXDProfile(arg0 string, arg1 *charm_v6.LXDProfile) error

MaybeWriteLXDProfile mocks base method

func (*MockTestLXDManager) Namespace Uses

func (m *MockTestLXDManager) Namespace() instance.Namespace

Namespace mocks base method

func (*MockTestLXDManager) ReplaceOrAddInstanceProfile Uses

func (m *MockTestLXDManager) ReplaceOrAddInstanceProfile(arg0, arg1, arg2 string, arg3 *charm_v6.LXDProfile) ([]string, error)

ReplaceOrAddInstanceProfile mocks base method

type MockTestLXDManagerMockRecorder Uses

type MockTestLXDManagerMockRecorder struct {
    // contains filtered or unexported fields
}

MockTestLXDManagerMockRecorder is the mock recorder for MockTestLXDManager

func (*MockTestLXDManagerMockRecorder) AssignLXDProfiles Uses

func (mr *MockTestLXDManagerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 interface{}) *gomock.Call

AssignLXDProfiles indicates an expected call of AssignLXDProfiles

func (*MockTestLXDManagerMockRecorder) CreateContainer Uses

func (mr *MockTestLXDManagerMockRecorder) CreateContainer(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

CreateContainer indicates an expected call of CreateContainer

func (*MockTestLXDManagerMockRecorder) DestroyContainer Uses

func (mr *MockTestLXDManagerMockRecorder) DestroyContainer(arg0 interface{}) *gomock.Call

DestroyContainer indicates an expected call of DestroyContainer

func (*MockTestLXDManagerMockRecorder) IsInitialized Uses

func (mr *MockTestLXDManagerMockRecorder) IsInitialized() *gomock.Call

IsInitialized indicates an expected call of IsInitialized

func (*MockTestLXDManagerMockRecorder) LXDProfileNames Uses

func (mr *MockTestLXDManagerMockRecorder) LXDProfileNames(arg0 interface{}) *gomock.Call

LXDProfileNames indicates an expected call of LXDProfileNames

func (*MockTestLXDManagerMockRecorder) ListContainers Uses

func (mr *MockTestLXDManagerMockRecorder) ListContainers() *gomock.Call

ListContainers indicates an expected call of ListContainers

func (*MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile Uses

func (mr *MockTestLXDManagerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 interface{}) *gomock.Call

MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile

func (*MockTestLXDManagerMockRecorder) Namespace Uses

func (mr *MockTestLXDManagerMockRecorder) Namespace() *gomock.Call

Namespace indicates an expected call of Namespace

func (*MockTestLXDManagerMockRecorder) ReplaceOrAddInstanceProfile Uses

func (mr *MockTestLXDManagerMockRecorder) ReplaceOrAddInstanceProfile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ReplaceOrAddInstanceProfile indicates an expected call of ReplaceOrAddInstanceProfile

Package testing imports 19 packages (graph). Updated 2019-05-09. Refresh now. Tools for package owners.