package cidr
import "github.com/oslokommune/okctl/pkg/cfn/components/cidr"
Package cidr provides functionality for interacting with classless inter-domain routing https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
Index ¶
Functions ¶
func PrivateCidrRanges ¶
func PrivateCidrRanges() []string
PrivateCidrRanges returns a set of valid private CIDRs https://en.wikipedia.org/wiki/Private_network#Private_IPv4_addresses
func RequiredHosts ¶
RequiredHosts calculates the required number of hosts and rounds up to the nearest power of two
Types ¶
type Cidr ¶
Cidr stores the parsed range
func New ¶
New parses a provided cidr and ensures that it is valid
func NewDefault ¶
NewDefault parses the provided Cidr given the default restrictions
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 day ago –
Tools for package owners.