github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/random/provider.go (about)

     1  package random
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  	"github.com/hashicorp/terraform/terraform"
     6  )
     7  
     8  // Provider returns a terraform.ResourceProvider.
     9  func Provider() terraform.ResourceProvider {
    10  	return &schema.Provider{
    11  		Schema: map[string]*schema.Schema{},
    12  
    13  		ResourcesMap: map[string]*schema.Resource{
    14  			"random_id":      resourceId(),
    15  			"random_shuffle": resourceShuffle(),
    16  			"random_pet":     resourcePet(),
    17  		},
    18  	}
    19  }