nethelper

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementIP

func IncrementIP(ip net.IP, inc uint) net.IP

IncrementIP represents a function to increase IP by input number

Types

type AvailableIPv4PrivateAddressSpaces

type AvailableIPv4PrivateAddressSpaces struct {
	RecommendedIPv4PrivateAddressSpace string   `json:"recommendedIPv4PrivateAddressSpace"`
	AddressSpace10s                    []string `json:"addressSpace10S"`
	AddressSpace172s                   []string `json:"addressSpace172S"`
	AddressSpace192s                   []string `json:"addressSpace192S"`
}

AvailableIPv4PrivateAddressSpaces represents the specification of a Cloud Adaptive Network (CLADNet).

func GetAvailableIPv4PrivateAddressSpaces

func GetAvailableIPv4PrivateAddressSpaces(strIPv4CIDRs []string) *AvailableIPv4PrivateAddressSpaces

GetAvailableIPv4PrivateAddressSpaces represents a function to check and return the available IPv4 private address spaces

type IPNetworks

type IPNetworks struct {
	IPNetworks []string `json:"ipNetworks"`
}

IPNetworks represents a list of IP Network, such as 10.10.10.10/10, 172.16.10.10/16, and 192.168.10.10/24.

Jump to

Keyboard shortcuts

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