netns

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 19 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProbe added in v0.21.0

func NewProbe(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

NewProbe returns a new network namespace probe

Types

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

type ProbeHandler added in v0.25.0

type ProbeHandler struct {
	insanelock.RWMutex
	Ctx tp.Context
	// contains filtered or unexported fields
}

ProbeHandler describes a netlink probe in a network namespace

func (*ProbeHandler) Exclude added in v0.25.0

func (u *ProbeHandler) Exclude(paths ...string)

Exclude specify path to not process

func (*ProbeHandler) Register added in v0.25.0

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

Register a new network namespace path

func (*ProbeHandler) Start added in v0.25.0

func (u *ProbeHandler) Start() error

Start the probe

func (*ProbeHandler) Stop added in v0.25.0

func (u *ProbeHandler) Stop()

Stop the probe

func (*ProbeHandler) Unregister added in v0.25.0

func (u *ProbeHandler) Unregister(path string)

Unregister a network namespace path

func (*ProbeHandler) Watch added in v0.25.0

func (u *ProbeHandler) Watch(path string)

Watch add a path to the inotify watcher

Jump to

Keyboard shortcuts

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