github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/provider/local/init.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package local 5 6 import ( 7 "github.com/juju/juju/environs" 8 storageprovider "github.com/juju/juju/storage/provider" 9 "github.com/juju/juju/storage/provider/registry" 10 ) 11 12 const ( 13 providerType = "local" 14 ) 15 16 func init() { 17 environs.RegisterProvider(providerType, providerInstance) 18 19 // TODO(wallyworld) - sort out policy for allowing loop provider 20 registry.RegisterEnvironStorageProviders( 21 providerType, 22 storageprovider.HostLoopProviderType, 23 ) 24 }