Documentation
¶
Index ¶
- func ModalTreeView(netState NetState, pages *tview.Pages) (tview.Primitive, error)
- func NMTUIRunner(app *tview.Application, pages *tview.Pages, treeView *tview.TreeView) func()
- func TreeView(netState NetState, pages *tview.Pages) (*tview.TreeView, error)
- func ValidateConnectivity(address string) ([]byte, error)
- type DNSConfig
- type DNSResolver
- type Hostname
- type IPConfig
- type Iface
- type NetState
- type Route
- type RoutesRC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModalTreeView ¶
func NMTUIRunner ¶
func ValidateConnectivity ¶
Types ¶
type DNSResolver ¶
type DNSResolver struct {
Running DNSConfig `json:"running,omitempty"`
}
type IPConfig ¶
type IPConfig struct { Enabled bool `json:"enabled,omitempty"` Addresses []net.IPNet `json:"address,omitempty"` }
func (*IPConfig) UnmarshalJSON ¶
type NetState ¶
type NetState struct { Hostname Hostname `json:"hostname,omitempty"` DNS DNSResolver `json:"dns-resolver,omitempty"` Routes RoutesRC `json:"routes,omitempty"` Ifaces []Iface `json:"interfaces"` }
func (*NetState) GetDefaultNextHopIface ¶
Click to show internal directories.
Click to hide internal directories.