nlmonitor

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkMonitor

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

LinkMonitor keeps track of the interfaces on this host. It can invoke a callback when an interface is added/deleted.

func NewLinkMonitor

func NewLinkMonitor(handler LinkMonitorHandler) (*LinkMonitor, error)

func (*LinkMonitor) Close

func (lm *LinkMonitor) Close()

func (*LinkMonitor) ParseLinkUpdates

func (lm *LinkMonitor) ParseLinkUpdates()

type LinkMonitorHandler

type LinkMonitorHandler interface {
	HandleNewlink(link netlink.Link)
	HandleDellink(link netlink.Link)
}

Jump to

Keyboard shortcuts

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