common

package
v4.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCertInfo

func ValidateCertInfo(certInfo config.CertInfo, required bool, fldPath *field.Path) field.ErrorList

func ValidateDir

func ValidateDir(path string, fldPath *field.Path) field.ErrorList

func ValidateFile

func ValidateFile(path string, fldPath *field.Path) field.ErrorList

func ValidateHostPort

func ValidateHostPort(value string, fldPath *field.Path) field.ErrorList

func ValidateSecureURL

func ValidateSecureURL(urlString string, fldPath *field.Path) (*url.URL, field.ErrorList)

func ValidateSpecifiedIP

func ValidateSpecifiedIP(ipString string, fldPath *field.Path) field.ErrorList

func ValidateSpecifiedIPPort

func ValidateSpecifiedIPPort(ipPortString string, fldPath *field.Path) field.ErrorList

func ValidateURL

func ValidateURL(urlString string, fldPath *field.Path) (*url.URL, field.ErrorList)

Types

type ValidationResults

type ValidationResults struct {
	Warnings field.ErrorList
	Errors   field.ErrorList
}

TODO: this should just be two return arrays, no need to be clever

func ValidateNamedCertificates

func ValidateNamedCertificates(fldPath *field.Path, namedCertificates []config.NamedCertificate) ValidationResults

func ValidateServingInfo

func ValidateServingInfo(info config.ServingInfo, certificatesRequired bool, fldPath *field.Path) ValidationResults

func ValidateStringSource

func ValidateStringSource(s config.StringSource, fieldPath *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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL