github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/builtin/providers/digitalocean/provider.go (about) 1 package digitalocean 2 3 import ( 4 "github.com/hashicorp/terraform/helper/schema" 5 ) 6 7 // Provider returns a schema.Provider for DigitalOcean. 8 // 9 // NOTE: schema.Provider became available long after the DO provider 10 // was started, so resources may not be converted to this new structure 11 // yet. This is a WIP. To assist with the migration, make sure any resources 12 // you migrate are acceptance tested, then perform the migration. 13 func Provider() *schema.Provider { 14 // TODO: Move the configuration to this 15 16 return &schema.Provider{ 17 Schema: map[string]*schema.Schema{ 18 "token": &schema.Schema{ 19 Type: schema.TypeString, 20 Required: true, 21 }, 22 }, 23 24 ResourcesMap: map[string]*schema.Resource{ 25 "digitalocean_domain": resourceDomain(), 26 "digitalocean_record": resourceRecord(), 27 }, 28 } 29 }