func init() { cloudprovider.RegisterCloudProvider(ProviderName, func(config io.Reader) (cloudprovider.Interface, error) { cfg, err := readConfig(config) if err != nil { return nil, err } return newRackspace(cfg) }) }
func init() { cloudprovider.RegisterCloudProvider( ProviderName, func(configReader io.Reader) (cloudprovider.Interface, error) { provider, err := newMesosCloud(configReader) if err == nil { CloudProvider = provider } return provider, err }) }
func init() { cloudprovider.RegisterCloudProvider(ProviderName, func(config io.Reader) (cloudprovider.Interface, error) { return newOVirtCloud(config) }) }