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 CreateContainerWithMachineAndNetworkConfig(c *gc.C, manager container.Manager, machineConfig *cloudinit.MachineConfig, ...) instance.Instance
- func CreateContainerWithMachineConfig(c *gc.C, manager container.Manager, machineConfig *cloudinit.MachineConfig) instance.Instance
- func MockMachineConfig(machineId string) (*cloudinit.MachineConfig, 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 CreateContainerWithMachineAndNetworkConfig ¶
func CreateContainerWithMachineAndNetworkConfig( c *gc.C, manager container.Manager, machineConfig *cloudinit.MachineConfig, networkConfig *container.NetworkConfig, ) instance.Instance
func MockMachineConfig ¶
func MockMachineConfig(machineId string) (*cloudinit.MachineConfig, 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.