github.com/cloudbase/juju-core@v0.0.0-20140504232958-a7271ac7912f/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 "launchpad.net/juju-core/state/api/base" 8 "launchpad.net/juju-core/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 }