opentofu/terraform/transform_attach_config_provider.go
James Bardin 482ae66e18 minor cleanup
Remove unused variables, sync.Once, and init in BuiltinEvalContext.
Replace some shim calls.
GraphNodeAttachProvider doesn't need to be a NodeModuleInstance.
2020-03-12 14:54:47 -04:00

17 lines
439 B
Go

package terraform
import (
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/configs"
)
// GraphNodeAttachProvider is an interface that must be implemented by nodes
// that want provider configurations attached.
type GraphNodeAttachProvider interface {
// ProviderName with no module prefix. Example: "aws".
ProviderAddr() addrs.AbsProviderConfig
// Sets the configuration
AttachProvider(*configs.Provider)
}