Documentation
¶
Overview ¶
This is a test package.
Index ¶
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.
Types ¶
type Struct ¶
type Struct struct {
TypeMeta int
// +k8s:validateFalse="field Struct.MapField #1"
// +k8s:validateFalse="field Struct.MapField #2"
// +k8s:eachKey=+k8s:validateFalse="field Struct.MapField(keys) #1"
// +k8s:eachKey=+k8s:validateFalse="field Struct.MapField(keys) #2"
// +k8s:eachVal=+k8s:validateFalse="field Struct.MapField[*] #1"
// +k8s:eachVal=+k8s:validateFalse="field Struct.MapField[*] #2"
MapField map[string]string `json:"mapField"`
UnvalidatedMapField []string `json:"UnvalidatedMapField"`
}
+k8s:validateFalse="type Struct"
Click to show internal directories.
Click to hide internal directories.