github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/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 "test_resource_gh12183": testResourceGH12183(), 13 }, 14 DataSourcesMap: map[string]*schema.Resource{ 15 "test_data_source": testDataSource(), 16 }, 17 ConfigureFunc: providerConfigure, 18 } 19 } 20 21 func providerConfigure(d *schema.ResourceData) (interface{}, error) { 22 return nil, nil 23 }