validation

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentField = validation.CurrentField

Variables

View Source
var ErrDisallowedFields = validation.ErrDisallowedFields
View Source
var ErrDuplicateValue = validation.ErrDuplicateValue
View Source
var ErrInvalidArrayValue = validation.ErrInvalidArrayValue
View Source
var ErrInvalidValue = validation.ErrInvalidValue
View Source
var ErrMissingField = validation.ErrMissingField
View Source
var ErrMissingOneOf = validation.ErrMissingOneOf
View Source
var ErrMultipleOneOf = validation.ErrMultipleOneOf

Functions

This section is empty.

Types

type FieldErrors

type FieldErrors = validation.FieldErrors

func CompareQuantity

func CompareQuantity(limit, request, field string) FieldErrors

func DeletableEnvVar

func DeletableEnvVar(env, field string) FieldErrors

func DeletableEnvVars

func DeletableEnvVars(envs []string, field string) FieldErrors

func DeletableKeyObjectReference

func DeletableKeyObjectReference(ref, field string) FieldErrors

func DeletableKeyObjectReferences

func DeletableKeyObjectReferences(kvs []string, field string) FieldErrors

func DeletableKeyValue

func DeletableKeyValue(kv, field string) FieldErrors

func DeletableKeyValues

func DeletableKeyValues(kvs []string, field string) FieldErrors

func DeletableObjectReference

func DeletableObjectReference(ref, field string) FieldErrors

func DeletableObjectReferences

func DeletableObjectReferences(kvs []string, field string) FieldErrors

func Enum

func Enum(input string, field string, validOptions []string) FieldErrors

func EnumInvalidValue

func EnumInvalidValue(input interface{}, field string, validOptions []string) FieldErrors

func EnvVar

func EnvVar(env, field string) FieldErrors

func EnvVarFrom

func EnvVarFrom(env, field string) FieldErrors

func EnvVarFroms

func EnvVarFroms(envs []string, field string) FieldErrors

func EnvVars

func EnvVars(envs []string, field string) FieldErrors

func ErrMissingFieldWithDetail

func ErrMissingFieldWithDetail(field string, detail string) FieldErrors

func JsonOrYamlKeyValues added in v0.7.0

func JsonOrYamlKeyValues(kvs []string, field string) FieldErrors

func K8sLabelValue

func K8sLabelValue(value, field string) FieldErrors

func K8sName

func K8sName(name, field string) FieldErrors

func K8sNames

func K8sNames(names []string, field string) FieldErrors

func KeyValue

func KeyValue(kv, field string) FieldErrors

func KeyValues

func KeyValues(kvs []string, field string) FieldErrors

func ObjectReference

func ObjectReference(ref, field string) FieldErrors

func ObjectReferences

func ObjectReferences(refs []string, field string) FieldErrors

func Port

func Port(port string, field string) FieldErrors

func PortNumber

func PortNumber(port int32, field string) FieldErrors

func Quantity

func Quantity(str, field string) FieldErrors

type FieldValidator

type FieldValidator = validation.FieldValidator

type Validatable

type Validatable = validation.Validatable

Jump to

Keyboard shortcuts

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