Documentation
¶
Overview ¶
This is a test package.
Index ¶
- func RegisterValidations(scheme *testscheme.Scheme) error
- func Validate_SliceType(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_StringType(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 SliceType
- type StringType
- 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_SliceType ¶
func Validate_StringType ¶
Types ¶
type SliceType ¶
type SliceType []StringType
+k8s:validateFalse="type SliceType" +k8s:eachVal=+k8s:validateFalse="type SliceType[*]"
type Struct ¶
type Struct struct {
TypeMeta int
// +k8s:validateFalse="field Struct.ListField"
// +k8s:eachVal=+k8s:validateFalse="field Struct.ListField[*]"
ListField [][]string `json:"listField"`
// +k8s:validateFalse="field Struct.ListPtrField"
// +k8s:eachVal=+k8s:validateFalse="field Struct.ListPtrField[*]"
ListPtrField [][]*string `json:"listPtrField"`
// +k8s:validateFalse="field Struct.ListTypedefField"
// +k8s:eachVal=+k8s:validateFalse="field Struct.ListTypedefField[*]"
ListTypedefField []SliceType `json:"listTypedefField"`
UnvalidatedListField []SliceType `json:"UnvalidatedListField"`
}
+k8s:validateFalse="type Struct"
Click to show internal directories.
Click to hide internal directories.