Documentation
¶
Overview ¶
This is a test package.
Index ¶
- func RegisterValidations(scheme *testscheme.Scheme) error
- func Validate_E1(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_T1(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_T2(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- type E1
- type T1
- type T2
- type T3
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_E1 ¶
func Validate_T1 ¶
Types ¶
type E1 ¶
type E1 []E1
+k8s:validateFalse="type E1" +k8s:eachVal=+k8s:validateFalse="type E1 values"
type T1 ¶
type T1 struct { // +k8s:validateFalse="field T1.PT1" // +k8s:optional PT1 *T1 `json:"pt1"` // +k8s:validateFalse="field T1.T2" T2 T2 `json:"t2"` // +k8s:validateFalse="field T1.PT2" // +k8s:optional PT2 *T2 `json:"pt2"` }
+k8s:validateFalse="type T1"
Click to show internal directories.
Click to hide internal directories.