Documentation
¶
Overview ¶
This is a test package.
Index ¶
- func RegisterValidations(scheme *testscheme.Scheme) error
- func Validate_OtherStruct(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_OtherTypedefStruct(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 OtherStruct
- type OtherTypedefStruct
- 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_OtherStruct ¶
Types ¶
type OtherTypedefStruct ¶
type OtherTypedefStruct OtherStruct
+k8s:validateFalse="type OtherTypedefStruct"
type Struct ¶
type Struct struct { TypeMeta int // +k8s:validateFalse="field Struct.MapField" // +k8s:eachVal=+k8s:validateFalse="field Struct.MapField[*]" MapField map[string]OtherStruct `json:"mapField"` // +k8s:validateFalse="field Struct.MapTypedefField" // +k8s:eachVal=+k8s:validateFalse="field Struct.MapTypedefField[*]" MapTypedefField map[string]OtherTypedefStruct `json:"mapTypedefField"` UnvalidatedMapField map[string]string `json:"UnvalidatedMapField"` }
+k8s:validateFalse="type Struct"
Click to show internal directories.
Click to hide internal directories.