Documentation

Overview

    Copyright 2013 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.

    Index

    Constants

    View Source
    const (
    	BootstrapIpKey   = "bootstrap-ip"
    	ContainerKey     = "container"
    	NamespaceKey     = "namespace"
    	NetworkBridgeKey = "network-bridge"
    	RootDirKey       = "root-dir"
    	StoragePortKey   = "storage-port"
    )

      Attribute keys

      Variables

      View Source
      var VerifyPrerequisites = func(containerType instance.ContainerType) error {
      	if goos != "linux" {
      		return fmt.Errorf(errUnsupportedOS, goos)
      	}
      	if err := verifyJujuLocal(); err != nil {
      		return err
      	}
      	switch containerType {
      	case instance.LXC:
      		return verifyLxc()
      	case instance.KVM:
      		return kvm.VerifyKVMEnabled()
      	}
      	return fmt.Errorf("Unknown container type specified in the config.")
      }

        VerifyPrerequisites verifies the prerequisites of the local machine (machine 0) for running the local provider.

        Functions

        This section is empty.

        Types

        This section is empty.