Documentation
¶
Index ¶
Constants ¶
View Source
const SingleHostValidator = singleHostValidator(0)
SingleHostValidator checks if the ingress has a single host. It knows how to handle different ingress types. If the received object is not an ingress then will return `ErrNotIngress` error.
Variables ¶
View Source
var ErrNotIngress = errors.New("object is not an ingress")
ErrNotIngress will be used when the validating object is not an ingress.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
Validator knows how to validate an ingress.
var DummyValidator Validator = dummyValidator(0)
DummyValidator is a Validator that doesn't do anything.
func NewHostRegexValidator ¶
NewHostRegexValidator returns a new validator that checks an ingress hosts match at least one of the received regexes. It knows how to handle different ingress types. If the received object is not an ingress then will return `ErrNotIngress` error.
Click to show internal directories.
Click to hide internal directories.