-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprovider.go
42 lines (40 loc) · 1.18 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
37
38
39
40
41
42
package main
import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/linkpoolio/terraform-provider-chainlink/chainlink"
)
func Provider() *schema.Provider {
return &schema.Provider{
Schema: map[string]*schema.Schema{
"url": {
Type: schema.TypeString,
Optional: true,
Default: "http://localhost:6688",
Description: "The node url address",
},
"email": {
Type: schema.TypeString,
Optional: true,
Default: "[email protected]",
Description: "Node email address",
},
"password": {
Type: schema.TypeString,
Optional: true,
Default: "twochains",
Description: "Node password",
},
},
ConfigureFunc: chainlink.ConfigureFunc,
ResourcesMap: map[string]*schema.Resource{
"chainlink_bridge": chainlink.ResourceChainlinkBridgeType(),
"chainlink_spec": chainlink.ResourceChainlinkSpec(),
"chainlink_spec_v2": chainlink.ResourceChainlinkSpecV2(),
"chainlink_ocr_key": chainlink.ResourceChainlinkOCRKey(),
"chainlink_p2p_key": chainlink.ResourceChainlinkP2PKey(),
},
DataSourcesMap: map[string]*schema.Resource{
"chainlink_eth_key": chainlink.DataSourceETHKey(),
},
}
}