netlink

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2018 License: Apache-2.0 Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetLinkProbe

type NetLinkProbe struct {
	sync.RWMutex
	Graph *graph.Graph
	// contains filtered or unexported fields
}

NetLinkProbe describes a list NetLink NameSpace probe to enhance the graph

func NewNetLinkProbe

func NewNetLinkProbe(g *graph.Graph, n *graph.Node) (*NetLinkProbe, error)

NewNetLinkProbe creates a new netlink probe

func (*NetLinkProbe) Register

func (u *NetLinkProbe) Register(nsPath string, root *graph.Node) (*NetNsNetLinkProbe, error)

Register a new network netlink/namespace probe in the graph

func (*NetLinkProbe) Start

func (u *NetLinkProbe) Start()

Start the probe

func (*NetLinkProbe) Stop

func (u *NetLinkProbe) Stop()

Stop the probe

func (*NetLinkProbe) Unregister

func (u *NetLinkProbe) Unregister(nsPath string) error

Unregister a probe from a network namespace

type NetNsNetLinkProbe

type NetNsNetLinkProbe struct {
	sync.RWMutex
	Graph  *graph.Graph
	Root   *graph.Node
	NsPath string
	// contains filtered or unexported fields
}

NetNsNetLinkProbe describes a topology probe based on netlink in a network namespace

type NextHop

type NextHop struct {
	Priority int64  `json:"Priority,omitempty"`
	IP       net.IP `json:"Src,omitempty"`
	IfIndex  int64  `json:"IfIndex,omitempty"`
}

NextHop describes a next hop

type Route

type Route struct {
	Protocol int64     `json:"Protocol,omitempty"`
	Prefix   string    `json:"Prefix,omitempty"`
	Nexthops []NextHop `json:"Nexthops,omitempty"`
}

Route describes a route

type RoutingTable

type RoutingTable struct {
	ID     int64   `json:"Id"`
	Src    net.IP  `json:"Src,omitempty"`
	Routes []Route `json:"Routes,omitempty"`
}

RouteTable describes a list of Routes

Jump to

Keyboard shortcuts

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