github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/apiserver/proxyupdater/model.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package proxyupdater 5 6 import ( 7 "github.com/juju/juju/apiserver/common" 8 "github.com/juju/juju/state" 9 ) 10 11 // NewAPI creates a new API server-side facade with a state.State backing. 12 func NewAPI(st *state.State, res *common.Resources, auth common.Authorizer) (*ProxyUpdaterAPI, error) { 13 return NewAPIWithBacking(&stateShim{st: st}, res, auth) 14 }