Documentation ¶
Overview ¶
Package validate contains validation utilities for installer types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CIDRsDontOverlap ¶
CIDRsDontOverlap ensures two given CIDRs don't overlap with one another. CIDR starting IPs are canonicalized before being compared.
func ClusterName ¶
ClusterName checks if the given string is a valid name for a cluster and returns an error if not.
func DomainName ¶
DomainName checks if the given string is a valid domain name and returns an error if not.
func IPv4 ¶
IPv4 checks if the given string is a valid IP v4 address and returns an error if not. Based on net.ParseIP.
func S3Bucket ¶
S3Bucket does some basic validation to ensure that the S3 bucket matches the S3 bucket naming rules. Not all rules are checked because Tectonic controls the generation of S3 bucket names, creating buckets of the form: <cluster-name>.<domain-name> If domain-name contains a trailing dot, it's removed from the bucket name.
func SubnetCIDR ¶
SubnetCIDR checks if the given string is a valid CIDR for a master nodes or worker nodes subnet and returns an error if not.
Types ¶
This section is empty.