kubernetes/vendor/k8s.io/kube-openapi/pkg/validation/errors/schema.go

const invalidType

const typeFail

const typeFailWithData

const typeFailWithError

const requiredFail

const tooLongMessage

const tooShortMessage

const patternFail

const enumFail

const multipleOfFail

const maxIncFail

const maxExcFail

const minIncFail

const minExcFail

const uniqueFail

const maxItemsFail

const minItemsFail

const typeFailNoIn

const typeFailWithDataNoIn

const typeFailWithErrorNoIn

const requiredFailNoIn

const tooLongMessageNoIn

const tooShortMessageNoIn

const patternFailNoIn

const enumFailNoIn

const multipleOfFailNoIn

const maxIncFailNoIn

const maxExcFailNoIn

const minIncFailNoIn

const minExcFailNoIn

const uniqueFailNoIn

const maxItemsFailNoIn

const minItemsFailNoIn

const noAdditionalItems

const noAdditionalItemsNoIn

const tooFewProperties

const tooFewPropertiesNoIn

const tooManyProperties

const tooManyPropertiesNoIn

const unallowedProperty

const unallowedPropertyNoIn

const failedAllPatternProps

const failedAllPatternPropsNoIn

const multipleOfMustBePositive

const CompositeErrorCode

const InvalidTypeCode

const RequiredFailCode

const TooLongFailCode

const TooShortFailCode

const PatternFailCode

const EnumFailCode

const MultipleOfFailCode

const MaxFailCode

const MinFailCode

const UniqueFailCode

const MaxItemsFailCode

const MinItemsFailCode

const NoAdditionalItemsCode

const TooFewPropertiesCode

const TooManyPropertiesCode

const UnallowedPropertyCode

const FailedAllPatternPropsCode

const MultipleOfMustBePositiveCode

type CompositeError

// Code for this error
func (c *CompositeError) Code() int32 {}

func (c *CompositeError) Error() string {}

// CompositeValidationError an error to wrap a bunch of other errors
func CompositeValidationError(errors ...error) *CompositeError {}

// FailedAllPatternProperties an error for when the property doesn't match a pattern
func FailedAllPatternProperties(name, in, key string) *Validation {}

// PropertyNotAllowed an error for when the property doesn't match a pattern
func PropertyNotAllowed(name, in, key string) *Validation {}

// TooFewProperties an error for an object with too few properties
func TooFewProperties(name, in string, minProperties, size int64) *Validation {}

// TooManyProperties an error for an object with too many properties
func TooManyProperties(name, in string, maxProperties, size int64) *Validation {}

// AdditionalItemsNotAllowed an error for invalid additional items
func AdditionalItemsNotAllowed(name, in string) *Validation {}

// InvalidCollectionFormat another flavor of invalid type error
func InvalidCollectionFormat(name, in, format string) *Validation {}

// InvalidTypeName an error for when the type is invalid
func InvalidTypeName(typeName string) *Validation {}

// InvalidType creates an error for when the type is invalid
func InvalidType(name, in, typeName string, value interface{}

// DuplicateItems error for when an array contains duplicates
func DuplicateItems(name, in string) *Validation {}

// TooManyItems error for when an array contains too many items
func TooManyItems(name, in string, max int64, value interface{}

// TooFewItems error for when an array contains too few items
func TooFewItems(name, in string, min int64, value interface{}

// ExceedsMaximumInt error for when maxinum validation fails
func ExceedsMaximumInt(name, in string, max int64, exclusive bool, value interface{}

// ExceedsMaximumUint error for when maxinum validation fails
func ExceedsMaximumUint(name, in string, max uint64, exclusive bool, value interface{}

// ExceedsMaximum error for when maxinum validation fails
func ExceedsMaximum(name, in string, max float64, exclusive bool, value interface{}

// ExceedsMinimumInt error for when maxinum validation fails
func ExceedsMinimumInt(name, in string, min int64, exclusive bool, value interface{}

// ExceedsMinimumUint error for when maxinum validation fails
func ExceedsMinimumUint(name, in string, min uint64, exclusive bool, value interface{}

// ExceedsMinimum error for when maxinum validation fails
func ExceedsMinimum(name, in string, min float64, exclusive bool, value interface{}

// NotMultipleOf error for when multiple of validation fails
func NotMultipleOf(name, in string, multiple, value interface{}

// EnumFail error for when an enum validation fails
func EnumFail(name, in string, value interface{}

// Required error for when a value is missing
func Required(name, in string) *Validation {}

// TooLong error for when a string is too long
func TooLong(name, in string, max int64, value interface{}

// TooShort error for when a string is too short
func TooShort(name, in string, min int64, value interface{}

// FailedPattern error for when a string fails a regex pattern match
// the pattern that is returned is the ECMA syntax version of the pattern not the golang version.
func FailedPattern(name, in, pattern string, value interface{}

// MultipleOfMustBePositive error for when a
// multipleOf factor is negative
func MultipleOfMustBePositive(name, in string, factor interface{}