netlink

package
v1.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	RouteReplace(route *netlink.Route) error

	RouteList(link netlink.Link, family int) ([]netlink.Route, error)

	RouteListFiltered(family int, filter *netlink.Route, filterMask uint64) ([]netlink.Route, error)

	RouteDel(route *netlink.Route) error

	AddrList(link netlink.Link, family int) ([]netlink.Addr, error)

	AddrReplace(link netlink.Link, addr *netlink.Addr) error

	AddrDel(link netlink.Link, addr *netlink.Addr) error

	NeighList(linkIndex, family int) ([]netlink.Neigh, error)

	NeighSet(neigh *netlink.Neigh) error

	NeighDel(neigh *netlink.Neigh) error

	LinkByName(name string) (netlink.Link, error)

	LinkSetNsFd(link netlink.Link, fd int) error

	LinkSetMTU(link netlink.Link, mtu int) error

	LinkSetUp(link netlink.Link) error
}

Interface is created to allow testing.

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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