github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/api/environment/environment.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package environment
     5  
     6  import (
     7  	"github.com/juju/juju/api/base"
     8  	"github.com/juju/juju/api/common"
     9  )
    10  
    11  const apiName = "Environment"
    12  
    13  // Facade provides access to a machine environment worker's view of the world.
    14  type Facade struct {
    15  	*common.EnvironWatcher
    16  }
    17  
    18  // NewFacade returns a new api client facade instance.
    19  func NewFacade(caller base.APICaller) *Facade {
    20  	facadeCaller := base.NewFacadeCaller(caller, apiName)
    21  	return &Facade{
    22  		EnvironWatcher: common.NewEnvironWatcher(facadeCaller),
    23  	}
    24  }