github.com/mwhudson/juju@v0.0.0-20160512215208-90ff01f3497f/container/lxd/lxd_go12.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  // +build !go1.3
     5  
     6  package lxd
     7  
     8  import (
     9  	"github.com/juju/errors"
    10  	"github.com/juju/loggo"
    11  
    12  	"github.com/juju/juju/container"
    13  )
    14  
    15  var (
    16  	logger = loggo.GetLogger("juju.container.lxd")
    17  )
    18  
    19  func GetDefaultBridgeName() (string, error) {
    20  	return "", errors.Errorf("LXD not supported in go 1.2")
    21  }
    22  
    23  func NewContainerManager(conf container.ManagerConfig) (container.Manager, error) {
    24  	return nil, errors.Errorf("LXD containers not supported in go 1.2")
    25  }
    26  
    27  func NewContainerInitialiser(series string) container.Initialiser {
    28  	logger.Errorf("No LXD container initializer in go 1.2")
    29  	/* while it seems slightly impolite to return nil here, the return
    30  	 * value is never actually used, because it's never deref'd before
    31  	 * NewContainerManager is called, which *does* actually return an
    32  	 * error that bubbles up.
    33  	 */
    34  	return nil
    35  }
    36  
    37  func HasLXDSupport() bool {
    38  	return false
    39  }