Documentation
¶
Overview ¶
This is a test package.
Index ¶
- func RegisterValidations(scheme *testscheme.Scheme) error
- func Validate_MapType(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_Struct(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- type MapType
- type Struct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterValidations ¶
func RegisterValidations(scheme *testscheme.Scheme) error
RegisterValidations adds validation functions to the given scheme. Public to allow building arbitrary schemes.
func Validate_MapType ¶
Types ¶
type MapType ¶
+k8s:validateFalse="type MapType" +k8s:validateFalse="field Struct.MapField" +k8s:validateFalse="field Struct.MapPtrField" +k8s:validateFalse="field Struct.MapTypedefField" +k8s:eachVal=+k8s:validateFalse="type MapType[*]"
type Struct ¶
type Struct struct { TypeMeta int // +k8s:validateFalse="field Struct.MapField" // +k8s:eachVal=+k8s:validateFalse="field Struct.MapField[*]" MapField map[string]map[string]string `json:"mapField"` // +k8s:validateFalse="field Struct.MapPtrField" // +k8s:eachVal=+k8s:validateFalse="field Struct.MapPtrField[*]" MapPtrField map[string]map[string]*string `json:"mapPtrField"` // +k8s:validateFalse="field Struct.MapTypedefField" // +k8s:eachVal=+k8s:validateFalse="field Struct.MapTypedefField[*]" MapTypedefField map[string]MapType `json:"mapTypedefField"` }
+k8s:validateFalse="type Struct"
Click to show internal directories.
Click to hide internal directories.