Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsListType (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go

    		return
    	}
    
    	// ensure that for empty lists we don't return <nil> items.
    	// This is safe to modify without deep-copying the object, as
    	// List objects themselves are never cached.
    	if meta.IsListType(result) && meta.LenList(result) == 0 {
    		if err := meta.SetList(result, []runtime.Object{}); err != nil {
    			scope.err(err, w, req)
    			return
    		}
    	}
    
    	var obj runtime.Object
    	do := func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top