netlinker

package module
v0.0.0-...-fcf6736 Latest Latest
Warning

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

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

README

netlinker

Netlinker is an interface with a mock netlink library to facilitate simpler unit testing for netlink dependent projects.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle interface {
	RouteAdd(*netlink.Route) error
	RouteDel(*netlink.Route) error
	RouteListFiltered(int, *netlink.Route, uint64) ([]netlink.Route, error)
}

Handle is an interface which should be fulfilled by both netlink and mocklink this enables easy unit testing for netlink dependent code without requiring root or doing actual kernel state modifications

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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