github.com/mattyw/juju@v0.0.0-20140610034352-732aecd63861/state/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/state/api/base" 8 "github.com/juju/juju/state/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.Caller) *Facade { 20 return &Facade{ 21 EnvironWatcher: common.NewEnvironWatcher(apiName, caller), 22 } 23 }