ipam

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager []ipManager

Manager - handles the addresses for each namespace/vip

Functions

func FindAvailableHostFromCidr

func FindAvailableHostFromCidr(namespace, cidr string, existingServiceIPS []string) (string, error)

FindAvailableHostFromCidr - will look through the cidr and the address Manager and find a free address (if possible)

func FindAvailableHostFromRange

func FindAvailableHostFromRange(namespace, ipRange string, existingServiceIPS []string) (string, error)

FindAvailableHostFromRange - will look through the cidr and the address Manager and find a free address (if possible)

func IPInt2Str added in v0.0.2

func IPInt2Str(i uint) string

IPInt2Str - Converts the IP address in integer format to an string

func IPStr2Int added in v0.0.2

func IPStr2Int(ip string) uint

IPStr2Int - Converts the IP address in string format to an integer

Types

This section is empty.

Jump to

Keyboard shortcuts

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