blob: 6aa2206dfd74d5c9ac6079cc8a8c6347a8a0d9b3 [file] [log] [blame]
package terraform
import (
"github.com/hashicorp/terraform/internal/addrs"
)
// GraphNodeModuleInstance says that a node is part of a graph with a
// different path, and the context should be adjusted accordingly.
type GraphNodeModuleInstance interface {
Path() addrs.ModuleInstance
}
// GraphNodeModulePath is implemented by all referenceable nodes, to indicate
// their configuration path in unexpanded modules.
type GraphNodeModulePath interface {
ModulePath() addrs.Module
}