Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 297 for index (0.04 sec)

  1. pkg/controller/job/indexed_job_utils_test.go

    	cases := map[string]struct {
    		intervals orderedIntervals
    		index     int
    		wantHas   bool
    	}{
    		"empty": {
    			index: 4,
    		},
    		"before all": {
    			index:     1,
    			intervals: []interval{{2, 4}, {5, 7}},
    		},
    		"after all": {
    			index:     9,
    			intervals: []interval{{2, 4}, {6, 8}},
    		},
    		"in between": {
    			index:     5,
    			intervals: []interval{{2, 4}, {6, 8}},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  2. src/compress/flate/deflate.go

    					if index < d.maxInsertIndex {
    						hash := hash4(d.window[index : index+minMatchLength])
    						// Get previous value with the same hash.
    						// Our chain should point to the previous value.
    						hh := &d.hashHead[hash&hashMask]
    						d.hashPrev[index&windowMask] = *hh
    						// Set the head of the hash chain to us.
    						*hh = uint32(index + d.hashOffset)
    					}
    				}
    				d.index = index
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/index/suffixarray/suffixarray_test.go

    }
    
    func testLookups(t *testing.T, tc *testCase, x *Index, n int) {
    	for _, pat := range tc.patterns {
    		testLookup(t, tc, x, pat, n)
    		if rx, err := regexp.Compile(pat); err == nil {
    			testFindAllIndex(t, tc, x, rx, n)
    		}
    	}
    }
    
    // index is used to hide the sort.Interface
    type index Index
    
    func (x *index) Len() int           { return x.sa.len() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. cmd/notification.go

    	g := errgroup.WithNErrs(len(sys.peerClients))
    	for index, client := range sys.peerClients {
    		if client == nil {
    			continue
    		}
    		index := index
    		g.Go(func() error {
    			var err error
    			reply[index], err = sys.peerClients[index].GetCPUs(ctx)
    			return err
    		}, index)
    	}
    
    	for index, err := range g.Wait() {
    		if err != nil {
    			sys.addNodeErr(&reply[index], sys.peerClients[index], err)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 44.9K bytes
    - Viewed (0)
  5. cmd/erasure-metadata-utils.go

    	g := errgroup.WithNErrs(len(disks))
    	// Read `xl.meta` in parallel across disks.
    	for index := range disks {
    		index := index
    		g.Go(func() (err error) {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			metadataArray[index], err = disks[index].ReadVersion(ctx, origbucket, bucket, object, versionID, opts)
    			return err
    		}, index)
    	}
    
    	return metadataArray, g.Wait()
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. cmd/erasure-healing-common.go

    			for index, e := range etags {
    				if partsMetadata[index].IsValid() && e == etag {
    					onlineDisks[index] = disks[index]
    				} else {
    					onlineDisks[index] = nil
    				}
    			}
    			return onlineDisks, modTime, etag
    		}
    	}
    
    	// Create a new online disks slice, which have common uuid.
    	for index, t := range modTimes {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go

    	ByAddress        *krt.Index[model.WorkloadInfo, networkAddress]
    	ByServiceKey     *krt.Index[model.WorkloadInfo, string]
    	ByOwningWaypoint *krt.Index[model.WorkloadInfo, networkAddress]
    }
    
    type waypointsCollection struct {
    	krt.Collection[Waypoint]
    }
    
    type servicesCollection struct {
    	krt.Collection[model.ServiceInfo]
    	ByAddress        *krt.Index[model.ServiceInfo, networkAddress]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 19 17:19:41 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. pkg/proxy/util/nodeport_addresses_test.go

    			cidrs: []string{"10.20.30.0/24"},
    			itfAddrsPairs: []InterfaceAddrsPair{
    				{
    					itf:   net.Interface{Index: 0, MTU: 0, Name: "eth0", HardwareAddr: nil, Flags: 0},
    					addrs: []net.Addr{&net.IPNet{IP: netutils.ParseIPSloppy("10.20.30.51"), Mask: net.CIDRMask(24, 32)}},
    				},
    				{
    					itf:   net.Interface{Index: 2, MTU: 0, Name: "eth1", HardwareAddr: nil, Flags: 0},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modindex/read.go

    	"cmd/go/internal/str"
    )
    
    // enabled is used to flag off the behavior of the module index on tip.
    // It will be removed before the release.
    // TODO(matloob): Remove enabled once we have more confidence on the
    // module index.
    var enabled = godebug.New("#goindex").Value() != "0"
    
    // Module represents and encoded module index file. It is used to
    // do the equivalent of build.Import of packages in the module and answer other
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    	}
    	sort.Ints(priorities)
    	// 2.2 adjust LocalityLbEndpoints priority
    	// if the index and value of priorities array is not equal.
    	for i, priority := range priorities {
    		if i != priority {
    			// the LocalityLbEndpoints index in ClusterLoadAssignment.Endpoints
    			for _, index := range priorityMap[priority] {
    				loadAssignment.Endpoints[index].Priority = uint32(i)
    			}
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top