net

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package net includes common net functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterLocalNetIPs

func FilterLocalNetIPs(ips []netip.Addr) ([]netip.Addr, error)

FilterLocalNetIPs filters list of IPs with the local subnets (rfc1918, rfc4193).

func PreferedDualStackNodeIPs added in v1.6.0

func PreferedDualStackNodeIPs(preferIPv6 bool, ips []string) []string

PreferedDualStackNodeIPs returns the first IPv4 and IPv6 addresses from the list of IPs.

func SortedNodeIPs

func SortedNodeIPs(nodeIP string, first, second []string) (res []string)

SortedNodeIPs gets fists IP (excluded nodeIP) from the two sorted lists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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