Documentation ¶
Index ¶
- Constants
- Variables
- type FieldErrors
- func CompareQuantity(limit, request, field string) FieldErrors
- func DeletableEnvVar(env, field string) FieldErrors
- func DeletableEnvVars(envs []string, field string) FieldErrors
- func DeletableKeyObjectReference(ref, field string) FieldErrors
- func DeletableKeyObjectReferences(kvs []string, field string) FieldErrors
- func DeletableKeyValue(kv, field string) FieldErrors
- func DeletableKeyValues(kvs []string, field string) FieldErrors
- func DeletableObjectReference(ref, field string) FieldErrors
- func DeletableObjectReferences(kvs []string, field string) FieldErrors
- func Enum(input string, field string, validOptions []string) FieldErrors
- func EnumInvalidValue(input interface{}, field string, validOptions []string) FieldErrors
- func EnvVar(env, field string) FieldErrors
- func EnvVarFrom(env, field string) FieldErrors
- func EnvVarFroms(envs []string, field string) FieldErrors
- func EnvVars(envs []string, field string) FieldErrors
- func ErrMissingFieldWithDetail(field string, detail string) FieldErrors
- func ErrMultipleSources(names ...string) FieldErrors
- func JsonOrYamlKeyValues(kvs []string, field string) FieldErrors
- func K8sLabelValue(value, field string) FieldErrors
- func K8sName(name, field string) FieldErrors
- func K8sNames(names []string, field string) FieldErrors
- func KeyValue(kv, field string) FieldErrors
- func KeyValues(kvs []string, field string) FieldErrors
- func ObjectReference(ref, field string) FieldErrors
- func ObjectReferences(refs []string, field string) FieldErrors
- func Port(port string, field string) FieldErrors
- func PortNumber(port int32, field string) FieldErrors
- func Quantity(str, field string) FieldErrors
- type FieldValidator
- type Validatable
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 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 ErrMultipleSources ¶ added in v0.12.0
func ErrMultipleSources(names ...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
Click to show internal directories.
Click to hide internal directories.