netlink

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetLink struct{}

func (NetLink) AddrAdd

func (n NetLink) AddrAdd(link netlink.Link, addr *netlink.Addr) error

func (NetLink) AddrDel

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

func (NetLink) AddrList

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

func (NetLink) AddrReplace

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

func (NetLink) LinkAdd

func (n NetLink) LinkAdd(link netlink.Link) error

func (NetLink) LinkByIndex

func (n NetLink) LinkByIndex(index int) (netlink.Link, error)

func (NetLink) LinkByName

func (n NetLink) LinkByName(name string) (netlink.Link, error)

func (NetLink) LinkDel

func (n NetLink) LinkDel(link netlink.Link) error

func (NetLink) LinkGetProtinfo

func (n NetLink) LinkGetProtinfo(link netlink.Link) (netlink.Protinfo, error)
func (n NetLink) LinkList() ([]netlink.Link, error)

func (NetLink) LinkSetDown

func (n NetLink) LinkSetDown(link netlink.Link) error

func (NetLink) LinkSetHardwareAddr

func (n NetLink) LinkSetHardwareAddr(link netlink.Link, hwaddr net.HardwareAddr) error

func (NetLink) LinkSetLearningOff

func (n NetLink) LinkSetLearningOff(link netlink.Link) error

func (NetLink) LinkSetMTU

func (n NetLink) LinkSetMTU(link netlink.Link, mtu int) error

func (NetLink) LinkSetMaster

func (n NetLink) LinkSetMaster(link netlink.Link, master *netlink.Bridge) error

func (NetLink) LinkSetName

func (n NetLink) LinkSetName(link netlink.Link, name string) error

func (NetLink) LinkSetUp

func (n NetLink) LinkSetUp(link netlink.Link) error

func (NetLink) ParseAddr

func (n NetLink) ParseAddr(s string) (*netlink.Addr, error)

func (NetLink) RouteList

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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