github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/provider/ec2/init.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package ec2 5 6 import ( 7 "github.com/juju/juju/environs" 8 "github.com/juju/juju/storage/provider/registry" 9 ) 10 11 const ( 12 providerType = "ec2" 13 ) 14 15 func init() { 16 environs.RegisterProvider(providerType, environProvider{}) 17 18 //Register the AWS specific providers. 19 registry.RegisterProvider(EBS_ProviderType, &ebsProvider{}) 20 21 // Inform the storage provider registry about the AWS providers. 22 registry.RegisterEnvironStorageProviders(providerType, EBS_ProviderType) 23 }