github.com/hugorut/terraform@v1.1.3/src/terraform/graph_interface_subgraph.go (about)

     1  package terraform
     2  
     3  import (
     4  	"github.com/hugorut/terraform/src/addrs"
     5  )
     6  
     7  // GraphNodeModuleInstance says that a node is part of a graph with a
     8  // different path, and the context should be adjusted accordingly.
     9  type GraphNodeModuleInstance interface {
    10  	Path() addrs.ModuleInstance
    11  }
    12  
    13  // GraphNodeModulePath is implemented by all referenceable nodes, to indicate
    14  // their configuration path in unexpanded modules.
    15  type GraphNodeModulePath interface {
    16  	ModulePath() addrs.Module
    17  }