netutils

package
v0.0.0-...-c65a67c Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBitset

func CreateBitset(numBitsWide uint) *bitset.BitSet

initialize a bit set with 2^numBitsWide bits

func GetIpNumber

func GetIpNumber(subnetIp string, subnetLen uint, allocSubnetLen uint, hostIp string) (uint, error)

func GetLocalIp

func GetLocalIp() (string, error)

func GetSubnetIp

func GetSubnetIp(subnetIp string, subnetLen uint, allocSubnetLen, hostId uint) (string, error)

func InitSubnetBitset

func InitSubnetBitset(b *bitset.BitSet, subnetLen uint)

initialize a bit set with 2^(32 - subnetLen) bits

func ParseCIDR

func ParseCIDR(cidrStr string) (string, uint, error)

Types

type TagRange

type TagRange struct {
	Min int
	Max int
}

func ParseTagRanges

func ParseTagRanges(ranges string, tagType string) ([]TagRange, error)

Jump to

Keyboard shortcuts

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