ip

package
v1.11.57 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIps

func GetIps() ([]net.IP, error)

GetIps returns an array of IPs found on the host. It skips loop back, link-local, private ips

func UniqIps added in v1.11.10

func UniqIps(ips []net.IP) []net.IP

UniqIps returns a uniq list of IPs from the input, as the name implies

Types

type Opts

type Opts struct {
	ExcludeAll  bool
	ExcludeNets []*net.IPNet
}

Opts holds options for openstack/non-openstack

func GetExcludeOpts

func GetExcludeOpts(file string) (Opts, error)

GetExcludeOpts parses exclude_ip file at /var/lib/sia, and returns exclude ip options

Jump to

Keyboard shortcuts

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