Documentation
¶
Overview ¶
Package dnsnames validates the extra internal DNS names an app can claim. Pure functions so the spec, the API and the IaC planner share one rule set.
Index ¶
Constants ¶
View Source
const ( CodeInvalid = spec.DNSCodeInvalid CodeReserved = "dns_name_reserved" CodeConflict = "dns_name_conflict" )
Frozen error codes, mirrored by internal/iac/codes.go.
Variables ¶
This section is empty.
Functions ¶
func Conflict ¶
Conflict reports a name already taken by another app. taken maps a name, either an app name or another app's extra name, to its owner.
func ParseReserved ¶
ParseReserved turns a comma separated setting value into a lookup set.
func ValidateSyntax ¶
ValidateSyntax delegates to the shared rule in internal/spec.
Types ¶
type Error ¶
type Error = spec.DNSNameError
Error carries a frozen code so callers can surface it unchanged.
Click to show internal directories.
Click to hide internal directories.