github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/provider/azure/init.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package azure
     5  
     6  import (
     7  	"github.com/juju/juju/environs"
     8  	"github.com/juju/juju/storage/provider/registry"
     9  )
    10  
    11  const (
    12  	providerType = "azure"
    13  )
    14  
    15  func init() {
    16  	environs.RegisterProvider(providerType, azureEnvironProvider{})
    17  
    18  	// Register the Azure storage provider.
    19  	registry.RegisterProvider(storageProviderType, &azureStorageProvider{})
    20  	registry.RegisterEnvironStorageProviders(providerType, storageProviderType)
    21  }