Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteGraphHTML ¶
func WriteGraphHTML(writer io.Writer, graph *tfgraph.Graph, options *RenderingOptions)
WriteGraphHTML writes the specified Terraform graph to an HTML file using the given template.
func WriteGraphJSON ¶
func WriteGraphJSON(writer io.Writer, graph *tfgraph.Graph, options *RenderingOptions)
WriteGraphJSON writes the specified Terraform graph in Cytoscape.js JSON format.
Types ¶
type EdgeData ¶
type EdgeData struct { // Standard properties. ID string `json:"id"` Source string `json:"source"` Target string `json:"target"` // Custom properties. SourceType string `json:"sourceType"` TargetType string `json:"targetType"` }
EdgeData represents the element data of a graph edge.
type NodeData ¶
type NodeData struct { // Standard properties. ID string `json:"id"` Parent *string `json:"parent,omitempty"` // Custom properties. Label string `json:"label"` Type string `json:"type"` ParentModuleID *string `json:"parentModuleID,omitempty"` }
NodeData represents the element data of a graph node.
Click to show internal directories.
Click to hide internal directories.