Documentation
¶
Index ¶
- func CleanID(id string) string
- func CleanLabel(label string) string
- func ConvertToMermaidFlowchart(graph *gographviz.Graph, direction string, subgraphName string) (string, error)
- func ExtractProvider(label string) string
- func ParseTerraform(workingDir, tfPath, planFile string) (*gographviz.Graph, error)
- type Edge
- type Graph
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanLabel ¶ added in v1.7.0
CleanLabel removes unnecessary parts from the label
func ConvertToMermaidFlowchart ¶ added in v1.7.0
func ConvertToMermaidFlowchart(graph *gographviz.Graph, direction string, subgraphName string) (string, error)
ConvertToMermaidFlowchart converts a gographviz graph to a Mermaid.js compatible string. It accepts a graph, direction, and an optional subgraph name.
func ExtractProvider ¶ added in v1.7.0
ExtractProvider extracts the provider for separate subgraph
func ParseTerraform ¶
func ParseTerraform(workingDir, tfPath, planFile string) (*gographviz.Graph, error)
ParseTerraform parses the Terraform plan and returns the generated graph
Types ¶
type Graph ¶ added in v1.7.0
func TransformGraph ¶ added in v1.7.0
func TransformGraph(graph *gographviz.Graph) Graph
TransformGraph transforms the parsed graph into cleaned nodes and edges
Click to show internal directories.
Click to hide internal directories.