fake

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 7 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 netlink.Link, addr *netlink.Addr) error
func (n *NetLink) AwaitLink(name string) (link netlink.Link)

func (*NetLink) AwaitNeighbors

func (n *NetLink) AwaitNeighbors(linkIndex int, expIPs ...string)
func (n *NetLink) AwaitNoLink(name string)

func (*NetLink) AwaitNoNeighbors

func (n *NetLink) AwaitNoNeighbors(linkIndex int, expIPs ...string)

func (*NetLink) AwaitNoRoutes

func (n *NetLink) AwaitNoRoutes(linkIndex int, destCIDRs ...string)

func (*NetLink) AwaitNoRule

func (n *NetLink) AwaitNoRule(table int)

func (*NetLink) AwaitRoutes

func (n *NetLink) AwaitRoutes(linkIndex int, destCIDRs ...string)

func (*NetLink) AwaitRule

func (n *NetLink) AwaitRule(table int)

func (*NetLink) ConfigureTCPMTUProbe

func (n *NetLink) ConfigureTCPMTUProbe(mtuProbe, baseMss string) error

func (*NetLink) EnableLooseModeReversePathFilter

func (n *NetLink) EnableLooseModeReversePathFilter(interfaceName string) error

func (*NetLink) FlushRouteTable

func (n *NetLink) FlushRouteTable(table int) error

func (*NetLink) LinkAdd

func (n *NetLink) LinkAdd(link 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) LinkSetUp

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

func (*NetLink) NeighAppend

func (n *NetLink) NeighAppend(neigh *netlink.Neigh) error

func (*NetLink) NeighDel

func (n *NetLink) NeighDel(neigh *netlink.Neigh) error

func (*NetLink) RouteAdd

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

func (*NetLink) RouteDel

func (n *NetLink) RouteDel(route *netlink.Route) error

func (*NetLink) RouteGet

func (n *NetLink) RouteGet(destination net.IP) ([]netlink.Route, error)

func (*NetLink) RouteList

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

func (*NetLink) RuleAdd

func (n *NetLink) RuleAdd(rule *netlink.Rule) error

func (*NetLink) RuleDel

func (n *NetLink) RuleDel(rule *netlink.Rule) error

func (*NetLink) SetLinkIndex

func (n *NetLink) SetLinkIndex(name string, index int)

func (*NetLink) XfrmPolicyAdd

func (n *NetLink) XfrmPolicyAdd(policy *netlink.XfrmPolicy) error

func (*NetLink) XfrmPolicyDel

func (n *NetLink) XfrmPolicyDel(policy *netlink.XfrmPolicy) error

func (*NetLink) XfrmPolicyList

func (n *NetLink) XfrmPolicyList(family int) ([]netlink.XfrmPolicy, error)

Jump to

Keyboard shortcuts

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