-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprovider.go
36 lines (34 loc) · 1.01 KB
/
provider.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/terraform"
)
func Provider() terraform.ResourceProvider {
return &schema.Provider{
ResourcesMap: map[string]*schema.Resource{
"scaleft_server": resourceServer(),
},
// Schema: map[string]*schema.Schema{
// "key_id": &schema.Schema{
// Type: schema.TypeString,
// Required: true,
// Description: "The key id for the scaleft service user",
// },
// "key_secret": &schema.Schema{
// Type: schema.TypeString,
// Required: true,
// Description: "The key secret for the scaleft service user",
// },
// "key_team": &schema.Schema{
// Type: schema.TypeString,
// Required: true,
// Description: "The team for the scaleft service user",
// },
// "project": &schema.Schema{
// Type: schema.TypeString,
// Required: true,
// Description: "The project for the scaleft servers",
// },
// },
}
}