Documentation
¶
Overview ¶
Package hostpattern implements the hostname-pattern language shared by inventory resolution and Writ host selectors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match validates raw and matches name. It is intended for compiled policy values; malformed patterns fail closed.
func NormalizeName ¶ added in v0.30.0
NormalizeName applies ASCII case folding at host ingress boundaries.
Types ¶
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
Pattern is a validated, anchored hostname pattern. Dots are label separators: * and ? stay within one label, while ** is legal only as a complete label and crosses zero or more labels.
func Parse ¶
Parse validates raw against Epithet's deliberately small hostname-pattern language. In particular, it rejects the additional syntax understood by the doublestar matching engine so a dependency change cannot silently broaden a policy or inventory entry.