Documentation

Index

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 AssertCloudInit

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

    func CreateContainer

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

    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 EnsureLXCRootFSEtcNetwork

      func EnsureLXCRootFSEtcNetwork(c *gc.C, containerName string)

      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)

        Source Files