fake

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 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 NetLink struct {
	// contains filtered or unexported fields
}

func New

func New() *NetLink

func (*NetLink) AddrAdd

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

func (*NetLink) AddrDel

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

func (*NetLink) AddrList

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

func (*NetLink) LinkAdd

func (n *NetLink) LinkAdd(link vishnetlink.Link) error

func (*NetLink) LinkByIndex

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

func (*NetLink) LinkByName

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

func (*NetLink) LinkDel

func (n *NetLink) LinkDel(link vishnetlink.Link) error

func (*NetLink) LinkGetProtinfo

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

func (*NetLink) LinkSetDown

func (n *NetLink) LinkSetDown(link vishnetlink.Link) error

func (*NetLink) LinkSetHardwareAddr

func (n *NetLink) LinkSetHardwareAddr(link vishnetlink.Link, hwAddress net.HardwareAddr) error

func (*NetLink) LinkSetLearningOff

func (n *NetLink) LinkSetLearningOff(link vishnetlink.Link) error

func (*NetLink) LinkSetMTU

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

func (*NetLink) LinkSetMaster

func (n *NetLink) LinkSetMaster(link vishnetlink.Link, bridge *vishnetlink.Bridge) error

func (*NetLink) LinkSetName

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

func (*NetLink) LinkSetUp

func (n *NetLink) LinkSetUp(link vishnetlink.Link) error

func (*NetLink) ParseAddr

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

func (*NetLink) RouteAdd

func (n *NetLink) RouteAdd(route *vishnetlink.Route) error

func (*NetLink) RouteList

func (n *NetLink) RouteList(_ vishnetlink.Link, family int) ([]vishnetlink.Route, error)

Jump to

Keyboard shortcuts

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