Documentation ¶
Index ¶
- func HostnameMatchSpecCandidates(hostname string) []string
- func HostnameMatches(hostname string, matchSpec string) bool
- func ValidateCertInfo(certInfo configv1.CertInfo, required bool, fldPath *field.Path) field.ErrorList
- func ValidateDir(path string, fldPath *field.Path) field.ErrorList
- func ValidateFile(path string, fldPath *field.Path) field.ErrorList
- func ValidateHostPort(value string, fldPath *field.Path) field.ErrorList
- func ValidateSecureURL(urlString string, fldPath *field.Path) (*url.URL, field.ErrorList)
- func ValidateURL(urlString string, fldPath *field.Path) (*url.URL, field.ErrorList)
- type ValidationResults
- func ValidateHTTPServingInfo(info configv1.HTTPServingInfo, fldPath *field.Path) ValidationResults
- func ValidateNamedCertificates(fldPath *field.Path, namedCertificates []configv1.NamedCertificate) ValidationResults
- func ValidateServingInfo(info configv1.ServingInfo, certificatesRequired bool, fldPath *field.Path) ValidationResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostnameMatchSpecCandidates ¶
HostnameMatchSpecCandidates returns a list of match specs that would match the provided hostname Returns nil if len(hostname) == 0
func HostnameMatches ¶
HostnameMatches returns true if the given hostname is matched by the given matchSpec
func ValidateCertInfo ¶
func ValidateSecureURL ¶
Types ¶
type ValidationResults ¶
func ValidateHTTPServingInfo ¶
func ValidateHTTPServingInfo(info configv1.HTTPServingInfo, fldPath *field.Path) ValidationResults
func ValidateNamedCertificates ¶
func ValidateNamedCertificates(fldPath *field.Path, namedCertificates []configv1.NamedCertificate) ValidationResults
func ValidateServingInfo ¶
func ValidateServingInfo(info configv1.ServingInfo, certificatesRequired bool, fldPath *field.Path) ValidationResults
func (*ValidationResults) AddErrors ¶
func (r *ValidationResults) AddErrors(errors ...*field.Error)
func (*ValidationResults) AddWarnings ¶
func (r *ValidationResults) AddWarnings(warnings ...*field.Error)
func (*ValidationResults) Append ¶
func (r *ValidationResults) Append(additionalResults ValidationResults)
Click to show internal directories.
Click to hide internal directories.