// RefreshData implementation of terraform.ResourceProvider interface.

RefreshData implementation of terraform.ResourceProvider interface.
// RefreshData implementation of terraform . ResourceProvider interface .
func (p *Provider) ReadDataApply(
	info *terraform.InstanceInfo,
	d *terraform.InstanceDiff) (*terraform.InstanceState, error) {
	r, ok := p.DataSourcesMap[info.Type]
	if !ok {
		return nil, fmt.Errorf("unknown data source: %s", info.Type)
	}
	return r.ReadDataApply(d, p.meta)
}
func ( p * Provider ) ReadDataApply ( info * terraform . InstanceInfo , d * terraform . InstanceDiff ) ( * terraform . InstanceState , error ) { r , ok := p . DataSourcesMap [ info . Type ] if ! ok { return nil , fmt . Errorf ( " " , info . Type ) } return r . ReadDataApply ( d , p . meta ) }
RefreshData implementation of terraform.ResourceProvider interface.
RefreshData implementation of terraform . ResourceProvider interface .