Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for makeKeyStrategy (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/common/maplist.go

    			a.keyedItems[itemKey] = mitem
    		}
    
    		// if it matches, short-circuit
    		if itemKey == key {
    			return mitem
    		}
    	}
    
    	return nil
    }
    
    func makeKeyStrategy(sts Schema) keyStrategy {
    	listMapKeys := sts.XListMapKeys()
    	if len(listMapKeys) == 1 {
    		key := listMapKeys[0]
    		return &singleKeyStrategy{
    			key: key,
    		}
    	}
    
    	return &multiKeyStrategy{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 02:56:51 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top