visualize

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VisualizeCmd = &cobra.Command{
	Use:   "visualize",
	Short: "Visualize an access graph for network mapper intents using go-graphviz",
	Args:  cobra.NoArgs,
	RunE: func(cmd *cobra.Command, args []string) error {
		intents, err := mappershared.QueryIntents()
		if err != nil {
			return err
		}

		visualizer, err := intentsvisualizer.NewVisualizer()
		if err != nil {
			return err
		}
		defer visualizer.Close()

		if err := visualizer.Build(intents); err != nil {
			return err
		}

		if err := visualizer.RenderOutputToFile(); err != nil {
			return err
		}

		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL