routes

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ipv4Re *regexp.Regexp
	Ipv6Re *regexp.Regexp
)

Functions

func Add added in v0.12.0

func Add(exec executor.Executor, target, via string) error

Add route to target via for the given Executor.

func Delete added in v0.12.0

func Delete(exec executor.Executor, target, via string) error

Delete route to target via for the given Executor.

func ForIP

func ForIP(target string, exec executor.Executor) []net.IP

For IP returns the list of routes in the given container (or in the current host) to reach the service ip.

func MatchNodes

func MatchNodes(nodes []v1.Node, ips []net.IP, ipFamily ipfamily.Family) error

MatchNodes tells whether the given list of destination ips matches the expected list of nodes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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