]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/github.com/hashicorp/terraform/terraform/transform_attach_config_provider.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / terraform / transform_attach_config_provider.go
CommitLineData
bae9f6d2
JC
1package terraform
2
3import (
107c1cdb
ND
4 "github.com/hashicorp/terraform/addrs"
5 "github.com/hashicorp/terraform/configs"
bae9f6d2
JC
6)
7
8// GraphNodeAttachProvider is an interface that must be implemented by nodes
9// that want provider configurations attached.
10type GraphNodeAttachProvider interface {
11 // Must be implemented to determine the path for the configuration
12 GraphNodeSubPath
13
14 // ProviderName with no module prefix. Example: "aws".
107c1cdb 15 ProviderAddr() addrs.AbsProviderConfig
bae9f6d2
JC
16
17 // Sets the configuration
107c1cdb 18 AttachProvider(*configs.Provider)
bae9f6d2 19}