2024-02-08 03:48:59 -06:00
|
|
|
// Copyright (c) The OpenTofu Authors
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
2023-05-02 10:33:06 -05:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-09-20 07:16:53 -05:00
|
|
|
package tofu
|
2020-03-05 18:53:24 -06:00
|
|
|
|
|
|
|
import (
|
2023-09-20 06:35:35 -05:00
|
|
|
"github.com/opentofu/opentofu/internal/addrs"
|
|
|
|
"github.com/opentofu/opentofu/internal/configs"
|
2020-03-05 18:53:24 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
// GraphNodeAttachProviderMetaConfigs is an interface that must be implemented
|
|
|
|
// by nodes that want provider meta configurations attached.
|
|
|
|
type GraphNodeAttachProviderMetaConfigs interface {
|
2020-03-15 10:32:06 -05:00
|
|
|
GraphNodeConfigResource
|
2020-03-05 18:53:24 -06:00
|
|
|
|
|
|
|
// Sets the configuration
|
|
|
|
AttachProviderMetaConfigs(map[addrs.Provider]*configs.ProviderMeta)
|
|
|
|
}
|