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 ¶
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.
Click to show internal directories.
Click to hide internal directories.