Documentation ¶
Index ¶
- Variables
- func AssertCloudInit(c *gc.C, filename string) []byte
- func CreateContainer(c *gc.C, manager container.Manager, machineId string) instance.Instance
- func CreateContainerTest(c *gc.C, manager container.Manager, machineId string) (instance.Instance, error)
- func CreateContainerWithMachineAndNetworkAndStorageConfig(c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig, ...) instance.Instance
- func CreateContainerWithMachineConfig(c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig) instance.Instance
- func EnsureRootFSEtcNetwork(c *gc.C, containerName string)
- func MockMachineConfig(machineId string) (*instancecfg.InstanceConfig, error)
- type MockURLGetter
Constants ¶
This section is empty.
Variables ¶
View Source
var FakeLxcURLScript = `#!/bin/bash
echo -n test://cloud-images/$1-$2-$3.tar.gz`
FakeLxcURLScript is used to replace ubuntu-cloudimg-query in tests.
Functions ¶
func CreateContainer ¶
func CreateContainerTest ¶
func CreateContainerTest(c *gc.C, manager container.Manager, machineId string) (instance.Instance, error)
CreateContainerTest tries to create a container and returns any errors encountered along the way
func CreateContainerWithMachineAndNetworkAndStorageConfig ¶
func CreateContainerWithMachineAndNetworkAndStorageConfig( c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig, networkConfig *container.NetworkConfig, storageConfig *container.StorageConfig, ) instance.Instance
func CreateContainerWithMachineConfig ¶
func CreateContainerWithMachineConfig( c *gc.C, manager container.Manager, instanceConfig *instancecfg.InstanceConfig, ) instance.Instance
func EnsureRootFSEtcNetwork ¶
func MockMachineConfig ¶
func MockMachineConfig(machineId string) (*instancecfg.InstanceConfig, error)
Types ¶
type MockURLGetter ¶
type MockURLGetter struct{}
MockURLGetter implements ImageURLGetter.
func (*MockURLGetter) CACert ¶
func (ug *MockURLGetter) CACert() []byte
func (*MockURLGetter) ImageURL ¶
func (ug *MockURLGetter) ImageURL(kind instance.ContainerType, series, arch string) (string, error)
Click to show internal directories.
Click to hide internal directories.