github.com/mwhudson/juju@v0.0.0-20160512215208-90ff01f3497f/storage/provider/registry/init.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package registry
     5  
     6  import (
     7  	"github.com/juju/juju/storage/provider"
     8  )
     9  
    10  func init() {
    11  	// Register the providers common to all environments, eg loop, tmpfs etc
    12  	for providerType, p := range provider.CommonProviders() {
    13  		RegisterProvider(providerType, p)
    14  	}
    15  }