visual

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ABBREVIATE_IPADDRESS = false
View Source
const KEY_EDGE_HEADLABEL = "headlabel"
View Source
const KEY_EDGE_LABEL = "label"
View Source
const KEY_EDGE_TAILLABEL = "taillabel"
View Source
const KEY_NODE_LABEL = "label"
View Source
const KEY_NODE_STYLE = "style"
View Source
const KEY_NODE_XLABEL = "xlabel"

Variables

This section is empty.

Functions

func GetDataJSON

func GetDataJSON(cfg *types.Config, nm *types.NetworkModel) ([]byte, error)

func GraphToDot

func GraphToDot(cfg *types.Config, nm *types.NetworkModel, layer string) (string, error)

Types

type ConnectionData

type ConnectionData struct {
	SrcNode      string `json:"src_node" mapstructure:"src_node"`
	SrcInterface string `json:"src_interface" mapstructure:"src_interface"`
	DstNode      string `json:"dst_node" mapstructure:"dst_node"`
	DstInterface string `json:"dst_interface" mapstructure:"dst_interface"`
}

type InterfaceData

type InterfaceData struct {
	Name   string            `json:"name" mapstructure:"name"`
	Params map[string]string `json:"params" mapstructure:"params"`
}

type NetworkModelData

type NetworkModelData struct {
	Name        string            `json:"name" mapstructure:"name"`
	Nodes       []*NodeData       `json:"nodes" mapstructure:"nodes"`
	Connections []*ConnectionData `json:"connections" mapstructure:"connections"`
}

type NodeData

type NodeData struct {
	Name       string            `json:"name" mapstructure:"name"`
	Params     map[string]string `json:"params" mapstructure:"params"`
	Interfaces []*InterfaceData  `json:"interfaces" mapstructure:"interfaces"`
}

Jump to

Keyboard shortcuts

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