adapter

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 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 NetAdapter

type NetAdapter struct{}

func (*NetAdapter) InterfaceByIndex

func (a *NetAdapter) InterfaceByIndex(index int) (*net.Interface, error)

type NetlinkAdapter

type NetlinkAdapter struct{}

func (*NetlinkAdapter) AddrList added in v0.3.0

func (a *NetlinkAdapter) AddrList(link netlink.Link, family int) ([]netlink.Addr, error)
func (a *NetlinkAdapter) LinkList() ([]netlink.Link, error)

func (*NetlinkAdapter) RouteList

func (a *NetlinkAdapter) RouteList(link netlink.Link, family int) ([]netlink.Route, error)

Jump to

Keyboard shortcuts

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