github.com/opentofu/opentofu@v1.7.1/internal/tofu/transform_attach_config_provider.go (about) 1 // Copyright (c) The OpenTofu Authors 2 // SPDX-License-Identifier: MPL-2.0 3 // Copyright (c) 2023 HashiCorp, Inc. 4 // SPDX-License-Identifier: MPL-2.0 5 6 package tofu 7 8 import ( 9 "github.com/opentofu/opentofu/internal/addrs" 10 "github.com/opentofu/opentofu/internal/configs" 11 ) 12 13 // GraphNodeAttachProvider is an interface that must be implemented by nodes 14 // that want provider configurations attached. 15 type GraphNodeAttachProvider interface { 16 // ProviderName with no module prefix. Example: "aws". 17 ProviderAddr() addrs.AbsProviderConfig 18 19 // Sets the configuration 20 AttachProvider(*configs.Provider) 21 }