// DataSources implementation of terraform.ResourceProvider interface.

DataSources implementation of terraform.ResourceProvider interface.
// DataSources implementation of terraform . ResourceProvider interface .
func (p *Provider) DataSources() []terraform.DataSource {
	keys := make([]string, 0, len(p.DataSourcesMap))
	for k, _ := range p.DataSourcesMap {
		keys = append(keys, k)
	}
	sort.Strings(keys)
	result := make([]terraform.DataSource, 0, len(keys))
	for _, k := range keys {
		result = append(result, terraform.DataSource{
			Name: k,
			SchemaAvailable: true,
		})
	}
	return result
}
func ( p * Provider ) DataSources ( ) [ ] terraform . DataSource { keys := make ( [ ] string , 0 , len ( p . DataSourcesMap ) ) for k , _ := range p . DataSourcesMap { keys = append ( keys , k ) } sort . Strings ( keys ) result := make ( [ ] terraform . DataSource , 0 , len ( keys ) ) for _ , k := range keys { result = append ( result , terraform . DataSource { Name : k , SchemaAvailable : true , } ) } return result }
DataSources implementation of terraform.ResourceProvider interface.
DataSources implementation of terraform . ResourceProvider interface .
// Indicates that a provider is compiled against a new enough
 // version of core to support the GetSchema method.
