github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/apiserver/migrationminion/register.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package migrationminion 5 6 import ( 7 "github.com/juju/juju/apiserver/common" 8 "github.com/juju/juju/apiserver/facade" 9 "github.com/juju/juju/state" 10 ) 11 12 func init() { 13 common.RegisterStandardFacade("MigrationMinion", 1, newAPIShim) 14 } 15 16 func newAPIShim( 17 st *state.State, 18 resources facade.Resources, 19 authorizer facade.Authorizer, 20 ) (*API, error) { 21 return NewAPI(st, resources, authorizer) 22 }