mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
19 lines
473 B
Go
19 lines
473 B
Go
|
package terraform
|
||
|
|
||
|
import (
|
||
|
"github.com/hashicorp/terraform/config"
|
||
|
)
|
||
|
|
||
|
// GraphNodeAttachProvider is an interface that must be implemented by nodes
|
||
|
// that want provider configurations attached.
|
||
|
type GraphNodeAttachProvider interface {
|
||
|
// Must be implemented to determine the path for the configuration
|
||
|
GraphNodeSubPath
|
||
|
|
||
|
// ProviderName with no module prefix. Example: "aws".
|
||
|
ProviderName() string
|
||
|
|
||
|
// Sets the configuration
|
||
|
AttachProvider(*config.ProviderConfig)
|
||
|
}
|