Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for quotedValues (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go

    func NotSupported[T ~string](field *Path, value interface{}, validValues []T) *Error {
    	detail := ""
    	if len(validValues) > 0 {
    		quotedValues := make([]string, len(validValues))
    		for i, v := range validValues {
    			quotedValues[i] = strconv.Quote(fmt.Sprint(v))
    		}
    		detail = "supported values: " + strings.Join(quotedValues, ", ")
    	}
    	return &Error{ErrorTypeNotSupported, field.String(), value, detail}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.1K bytes
    - Viewed (0)
Back to top