Documentation
¶
Overview ¶
This is a test package.
Index ¶
- func RegisterValidations(scheme *testscheme.Scheme) error
- 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 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_StringType ¶
Types ¶
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.ListTypedefField"
// +k8s:eachVal=+k8s:validateFalse="field Struct.ListTypedefField[*]"
ListTypedefField []StringType `json:"listTypedefField"`
UnvalidatedListField []string `json:"UnvalidatedListField"`
}
+k8s:validateFalse="type Struct"
Click to show internal directories.
Click to hide internal directories.