ip

package
v1.10.46 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 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

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