]>
Commit | Line | Data |
---|---|---|
bae9f6d2 JC |
1 | package terraform |
2 | ||
3 | import ( | |
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. | |
10 | type 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 | } |