netns

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 16 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetNSProbe

type NetNSProbe struct {
	common.RWMutex
	Graph        *graph.Graph
	Root         *graph.Node
	NetLinkProbe *netlink.NetLinkProbe
	// contains filtered or unexported fields
}

NetNSProbe describes a netlink probe in a network namespace

func NewNetNSProbe

func NewNetNSProbe(g *graph.Graph, n *graph.Node, nlProbe *netlink.NetLinkProbe) (*NetNSProbe, error)

NewNetNSProbe creates a new network namespace probe

func (*NetNSProbe) Register

func (u *NetNSProbe) Register(path string, name string) (*graph.Node, error)

Register a new network namespace path

func (*NetNSProbe) Start

func (u *NetNSProbe) Start()

Start the probe

func (*NetNSProbe) Stop

func (u *NetNSProbe) Stop()

Stop the probe

func (*NetNSProbe) Unregister

func (u *NetNSProbe) Unregister(path string)

Unregister a network namespace path

func (*NetNSProbe) Watch

func (u *NetNSProbe) Watch(path string)

Watch add a path to the inotify watcher

type NetNs

type NetNs struct {
	// contains filtered or unexported fields
}

NetNs describes a network namespace path associated with a device / inode

func (*NetNs) Equal

func (ns *NetNs) Equal(o *NetNs) bool

Equal compares two NetNs objects

func (*NetNs) String

func (ns *NetNs) String() string

Jump to

Keyboard shortcuts

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