labels

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DNS1123LabelMaxLength int = 63

DNS1123LabelMaxLength is a label's max length in DNS (RFC 1123)

View Source
const DNS1123SubdomainMaxLength int = 253

DNS1123SubdomainMaxLength is a subdomain's max length in DNS (RFC 1123)

Variables

View Source
var DNS1123LabelRegexp = regexp.MustCompile("^" + dns1123LabelFmt + "$")

DNS1123LabelRegexp is a regular expression matching a dns1123 label.

View Source
var DNS1123SubdomainRegexp = regexp.MustCompile("^" + dns1123SubdomainFmt + "$")

DNS1123SubdomainRegexp is a regular expression matching a RFC 1123 subdomain.

Functions

func ValidateDNSLabel

func ValidateDNSLabel(id string) error

ValidateDNSLabel checks if the id is a valid DNS label.

func ValidateDNSSubdomain

func ValidateDNSSubdomain(value string) error

ValidateDNSSubdomain checks if ID is a valid DNS subdomain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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