Documentation
¶
Overview ¶
This is a test package.
Index ¶
- func RegisterValidations(scheme *testscheme.Scheme) error
- func Validate_HasFieldVal(ctx context.Context, op operation.Operation, fldPath *field.Path, ...) (errs field.ErrorList)
- func Validate_HasTypeVal(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)
- type HasFieldVal
- type HasFieldValNotLinked
- type HasNoVal
- type HasNoValNotLinked
- type HasTypeVal
- type HasTypeValNotLinked
- type T1
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_HasFieldVal ¶
func Validate_HasTypeVal ¶
Types ¶
type HasFieldVal ¶
type HasFieldVal struct {
// +k8s:validateFalse="field HasFieldVal.S"
S string `json:"s"`
}
Note: no type validation.
type HasFieldValNotLinked ¶
type HasFieldValNotLinked struct {
// +k8s:validateFalse="field HasFieldValNotLinked.S"
S string `json:"s"`
}
Note: no type validation.
type HasNoVal ¶
type HasNoVal struct {
// Note: no field validation.
S string `json:"s"`
}
Note: no type validation.
type HasNoValNotLinked ¶
type HasNoValNotLinked struct {
// Note: no field validation.
S string `json:"s"`
}
Note: no type validation.
type HasTypeVal ¶
type HasTypeVal struct {
// Note: no field validation.
S string `json:"s"`
}
+k8s:validateFalse="type HasTypeVal"
type HasTypeValNotLinked ¶
type HasTypeValNotLinked struct {
// Note: no field validation.
S string `json:"s"`
}
+k8s:validateFalse="type HasTypeValNotLinked"
type T1 ¶
type T1 struct {
TypeMeta int
HasTypeVal HasTypeVal `json:"hasTypeVal"`
HasFieldVal HasFieldVal `json:"hasFieldVal"`
HasNoVal HasNoVal `json:"hasNoVal"`
// +k8s:validateFalse="field T1.HasNoValFieldVal"
HasNoValFieldVal HasNoVal `json:"hasNoValFieldVal"`
}
Click to show internal directories.
Click to hide internal directories.