juju: github.com/juju/juju/provider/azure/internal/iputils Index | Files

package iputils

import "github.com/juju/juju/provider/azure/internal/iputils"

Index

Package Files

iputils.go

func NextSubnetIP Uses

func NextSubnetIP(subnet *net.IPNet, ipsInUse []net.IP) (net.IP, error)

NextSubnetIP returns the next available IP address in a given subnet.

func NthSubnetIP Uses

func NthSubnetIP(subnet *net.IPNet, n int) net.IP

NthSubnetIP returns the n'th IP address in a given subnet, where n is a zero-based index, zero being the first available IP address in the subnet.

If n is out of range, NthSubnetIP will return nil.

Package iputils imports 3 packages (graph) and is imported by 22 packages. Updated 2016-09-27. Refresh now. Tools for package owners.