Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for refMap (0.34 sec)

  1. pkg/kubelet/util/manager/watch_based_manager.go

    		c.items[key] = item
    	}
    	item.refMap[referencedFrom]++
    }
    
    func (c *objectCache) DeleteReference(namespace, name string, referencedFrom types.UID) {
    	key := objectKey{namespace: namespace, name: name}
    
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	if item, ok := c.items[key]; ok {
    		item.refMap[referencedFrom]--
    		if item.refMap[referencedFrom] == 0 {
    			delete(item.refMap, referencedFrom)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/wrappers.go

    // Res adds a new container to the inner pod with given resource map.
    func (p *PodWrapper) Res(resMap map[v1.ResourceName]string) *PodWrapper {
    	if len(resMap) == 0 {
    		return p
    	}
    
    	name := fmt.Sprintf("con%d", len(p.Spec.Containers))
    	p.Spec.Containers = append(p.Spec.Containers, MakeContainer().Name(name).Image(imageutils.GetPauseImageName()).Resources(resMap).Obj())
    	return p
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  3. pkg/test/framework/scope.go

    }
    
    func (s *scope) get(ref any) error {
    	s.mu.Lock()
    	defer s.mu.Unlock()
    
    	refVal := reflect.ValueOf(ref)
    	if refVal.Kind() != reflect.Ptr {
    		return fmt.Errorf("ref must be a pointer instead got: %T", ref)
    	}
    	// work with the underlying value rather than the pointer
    	refVal = refVal.Elem()
    
    	targetT := refVal.Type()
    	if refVal.Kind() == reflect.Slice {
    		// for slices look at the element type
    		targetT = targetT.Elem()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 21:55:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/GroovyScriptClassCompiler.java

                return super.visitField(access, name, remap(desc), remap(signature), remap(value));
            }
    
            @Override
            public void visitInnerClass(String name, String outerName, String innerName, int access) {
                super.visitInnerClass(remap(name), remap(outerName), remap(innerName), access);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:23:24 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. cmd/admin-heal-ops.go

    	h.mutex.RLock()
    	defer h.mutex.RUnlock()
    
    	// Make a copy before returning the value
    	retMap := make(map[madmin.HealItemType]int64, len(h.scannedItemsMap))
    	for k, v := range h.scannedItemsMap {
    		retMap[k] = v
    	}
    
    	return retMap
    }
    
    // getHealedItemsMap - returns the map of all healed items against type
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 18:04:41 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  6. src/runtime/mem_linux.go

    	case madviseUnsupported:
    		// Since Linux 3.18, support for madvise is optional.
    		// Fall back on mmap if it's not supported.
    		// _MAP_ANON|_MAP_FIXED|_MAP_PRIVATE will unmap all the
    		// pages in the old mapping, and remap the memory region.
    		mmap(v, n, _PROT_READ|_PROT_WRITE, _MAP_ANON|_MAP_FIXED|_MAP_PRIVATE, -1, 0)
    	}
    
    	if debug.harddecommit > 0 {
    		p, err := mmap(v, n, _PROT_NONE, _MAP_ANON|_MAP_FIXED|_MAP_PRIVATE, -1, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. tools/bug-report/pkg/bugreport/bugreport.go

    func getIstioRevisions(resources *cluster2.Resources) []string {
    	revMap := sets.New[string]()
    	for _, podLabels := range resources.Labels {
    		for label, value := range podLabels {
    			if label == label2.IoIstioRev.Name {
    				revMap.Insert(value)
    			}
    		}
    	}
    	for _, podAnnotations := range resources.Annotations {
    		for annotation, value := range podAnnotations {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 20:57:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/request-forms-and-files.md

        This is not a limitation of **FastAPI**, it's part of the HTTP protocol.
    
    ## Recap
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/request-forms.md

        This is not a limitation of **FastAPI**, it's part of the HTTP protocol.
    
    ## Recap
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:02:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/body-updates.md

        {!> ../../../docs_src/body_updates/tutorial002_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="35"
        {!> ../../../docs_src/body_updates/tutorial002.py!}
        ```
    
    ### Partial updates recap
    
    In summary, to apply partial updates you would:
    
    * (Optionally) use `PATCH` instead of `PUT`.
    * Retrieve the stored data.
    * Put that data in a Pydantic model.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top