Documentation
¶
Overview ¶
SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func AllBondingShootClientIPs(vpnNetwork *net.IPNet, haVPNClients int) []net.IP
- func BondIP6TunnelLinkName(index int) string
- func BondingAddressForClient(ip net.IP) *net.IPNet
- func BondingSeedClientRange(vpnNetworkIP net.IP) (base net.IP, startIndex, endIndex int)
- func BondingShootClientAddress(vpnNetwork *net.IPNet, vpnClientIndex int) *net.IPNet
- func BondingShootClientIP(vpnNetwork *net.IPNet, index int) net.IP
- func ClientIndexFromBondingShootClientIP(clientIP net.IP) int
- func CreateTunnel(linkName string, local, remote net.IP) error
- func DeleteLinkByName(name string) error
- func GetLinkIPAddressesByName(name string, scope int) ([]net.IP, error)
- func NewIPTables(log logr.Logger, proto iptables.Protocol) (*iptables.IPTables, error)
- func ReplaceRoute(log logr.Logger, ipnet *net.IPNet, dev netlink.Link) error
- type CIDR
Constants ¶
View Source
const ( ScopeUniverse = 0 ScopeLink = 253 )
Variables ¶
This section is empty.
Functions ¶
func BondIP6TunnelLinkName ¶
func BondingSeedClientRange ¶
func CreateTunnel ¶
CreateTunnel creates an ip6tnl tunnel to allow IPv4 and IPv6 packages over IPv6 and sets it up.
func DeleteLinkByName ¶
DeleteLinkByName delete a link by name.
func GetLinkIPAddressesByName ¶
GetLinkIPAddressesByName gets the IP addresses for the given link name and scope (`ScopeLink` or `ScopeUniversal`).
func NewIPTables ¶
NewIPTables wraps the creation of IPTables to patch the path to the correct implementation binary. It has been introduced to avoid the risk that the command doesn't work due to missing kernel modules.
Types ¶
type CIDR ¶
func (*CIDR) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.