github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/provider/gce/init.go (about)

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