Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for errorexit (0.12 sec)

  1. pkg/apis/core/validation/validation.go

    }
    
    // ValidateFieldAcceptList checks that only allowed fields are set.
    // The value must be a struct (not a pointer to a struct!).
    func validateFieldAllowList(value interface{}, allowedFields map[string]bool, errorText string, fldPath *field.Path) field.ErrorList {
    	var allErrs field.ErrorList
    
    	reflectType, reflectValue := reflect.TypeOf(value), reflect.ValueOf(value)
    	for i := 0; i < reflectType.NumField(); i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top