github.com/mohanarpit/terraform@v0.6.16-0.20160909104007-291f29853544/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  }