github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/builtin/providers/test/provider.go (about)

     1  package test
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  	"github.com/hashicorp/terraform/terraform"
     6  )
     7  
     8  func Provider() terraform.ResourceProvider {
     9  	return &schema.Provider{
    10  		ResourcesMap: map[string]*schema.Resource{
    11  			"test_resource": testResource(),
    12  		},
    13  		DataSourcesMap: map[string]*schema.Resource{
    14  			"test_data_source": testDataSource(),
    15  		},
    16  		ConfigureFunc: providerConfigure,
    17  	}
    18  }
    19  
    20  func providerConfigure(d *schema.ResourceData) (interface{}, error) {
    21  	return nil, nil
    22  }