github.com/mwhudson/juju@v0.0.0-20160512215208-90ff01f3497f/provider/common/policies.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package common
     5  
     6  // SupportsUnitPlacementPolicy provides an
     7  // implementation of SupportsUnitPlacement
     8  // that never returns an error, and is
     9  // intended for embedding in environs.Environ
    10  // implementations.
    11  type SupportsUnitPlacementPolicy struct{}
    12  
    13  func (*SupportsUnitPlacementPolicy) SupportsUnitPlacement() error {
    14  	return nil
    15  }