mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
2fa16c24f7
RemovableIfNotTargeted and GraphNodeTargetDownstream are no longer used by the target transformer.
27 lines
729 B
Go
27 lines
729 B
Go
package terraform
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/hashicorp/terraform/dag"
|
|
)
|
|
|
|
// NodeDisabledProvider represents a provider that is disabled. A disabled
|
|
// provider does nothing. It exists to properly set inheritance information
|
|
// for child providers.
|
|
type NodeDisabledProvider struct {
|
|
*NodeAbstractProvider
|
|
}
|
|
|
|
var (
|
|
_ GraphNodeModulePath = (*NodeDisabledProvider)(nil)
|
|
_ GraphNodeReferencer = (*NodeDisabledProvider)(nil)
|
|
_ GraphNodeProvider = (*NodeDisabledProvider)(nil)
|
|
_ GraphNodeAttachProvider = (*NodeDisabledProvider)(nil)
|
|
_ dag.GraphNodeDotter = (*NodeDisabledProvider)(nil)
|
|
)
|
|
|
|
func (n *NodeDisabledProvider) Name() string {
|
|
return fmt.Sprintf("%s (disabled)", n.NodeAbstractProvider.Name())
|
|
}
|