Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Name ¶
type Name string
Name describes a (possibly wildcarded) hostname
func (Name) IsWildCarded ¶
func (Name) Matches ¶
Matches returns true if this hostname overlaps with the other hostname. Names overlap if: - they're fully resolved (i.e. not wildcarded) and match exactly (i.e. an exact string match) - one or both are wildcarded (e.g. "*.foo.com"), in which case we use wildcard resolution rules to determine if n is covered by o or o is covered by n. e.g.:
Name("foo.com").Matches("foo.com") = true
Name("foo.com").Matches("bar.com") = false
Name("*.com").Matches("foo.com") = true
Name("bar.com").Matches("*.com") = true
Name("*.foo.com").Matches("foo.com") = false
Name("*").Matches("foo.com") = true
Name("*").Matches("*.com") = true
Click to show internal directories.
Click to hide internal directories.