utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SdnNamespace = "kube-system"
)

Variables

This section is empty.

Functions

func GenerateDefaultGateway

func GenerateDefaultGateway(sna *net.IPNet) net.IP

Generate the default gateway IP Address for a subnet

func GetHostIPNetworks

func GetHostIPNetworks(skipInterfaces []string) ([]*net.IPNet, []net.IP, error)

Return Host IP Networks Ignores provided interfaces and filters loopback and non IPv4 addrs.

func GetNodeIP

func GetNodeIP(nodeName string) (string, error)

func IPToUint32

func IPToUint32(ip net.IP) uint32

func Uint32ToIP

func Uint32ToIP(u uint32) net.IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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