package
0.0.0-20250210171435-dda779884a9f
Repository: https://github.com/hashicorp/go-cty-funcs.git
Documentation: pkg.go.dev
# Functions
Host calculates a full host IP address within a given IP network address prefix.
Netmask converts an IPv4 address prefix given in CIDR notation into a subnet mask address.
Subnet calculates a subnet address within a given IP network address prefix.
Subnets calculates a sequence of consecutive subnet prefixes that may be of different prefix lengths under a common base prefix.
# Variables
HostFunc is a function that calculates a full host IP address within a given IP network address prefix.
NetmaskFunc is a function that converts an IPv4 address prefix given in CIDR notation into a subnet mask address.
SubnetFunc is a function that calculates a subnet address within a given IP network address prefix.
SubnetsFunc is similar to SubnetFunc but calculates many consecutive subnet addresses at once, rather than just a single subnet extension.