common

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateDir

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

func ValidateFile

func ValidateFile(path 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 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