fake

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

© 2021 Red Hat, Inc. and others.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetLink struct {
	sync.Mutex
	// 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