Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 113 for index (0.04 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	}
    	if chanSize > maxChanSize {
    		chanSize = maxChanSize
    	}
    	return chanSize
    }
    
    // isIndexValidLocked checks if a given index is still valid.
    // This assumes that the lock is held.
    func (w *watchCache) isIndexValidLocked(index int) bool {
    	return index >= w.startIndex
    }
    
    // getAllEventsSinceLocked returns a watchCacheInterval that can be used to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_image_test.go

    }
    
    func TestPullWithSecrets(t *testing.T) {
    	ctx := context.Background()
    	// auth value is equivalent to: "username":"passed-user","password":"passed-password"
    	dockerCfg := map[string]map[string]string{"index.docker.io/v1/": {"email": "passed-email", "auth": "cGFzc2VkLXVzZXI6cGFzc2VkLXBhc3N3b3Jk"}}
    	dockercfgContent, err := json.Marshal(dockerCfg)
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval.go

    	endIndex int
    
    	// indexer is meant to inject behaviour for how an event must
    	// be retrieved from the underlying source given an index.
    	indexer indexerFunc
    
    	// indexValidator is used to check if a given index is still
    	// valid perspective. If it is deemed that the index is not
    	// valid, then this interval can no longer be used to serve
    	// events. Use of indexValidator is warranted only in cases
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    		}
    	}
    	partSkip = offset - skipLength
    
    	// Load index and skip more if feasible.
    	if partSkip > 0 && len(oi.Parts) > firstPartIdx && len(oi.Parts[firstPartIdx].Index) > 0 {
    		_, isEncrypted := crypto.IsEncrypted(oi.UserDefined)
    		if isEncrypted {
    			dec, err := decrypt(oi.Parts[firstPartIdx].Index)
    			if err == nil {
    				// Load Index
    				var idx s2.Index
    				_, err := idx.Load(s2.RestoreIndexHeaders(dec))
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  5. cmd/bucket-listobjects-handlers.go

    	return subToken, false
    }
    
    func proxyRequestByNodeIndex(ctx context.Context, w http.ResponseWriter, r *http.Request, index int) (success bool) {
    	if len(globalProxyEndpoints) == 0 {
    		return false
    	}
    	if index < 0 || index >= len(globalProxyEndpoints) {
    		return false
    	}
    	ep := globalProxyEndpoints[index]
    	if ep.IsLocal {
    		return false
    	}
    	return proxyRequest(ctx, w, r, ep)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/issues_test.go

    		"package p; var _ = T{@f(1, 2, 3): 0}",
    		"package p; var _ = T{@a + f(b) + <-ch: 0}",
    	}
    
    	for _, src := range tests {
    		// identify column position of @ and remove it from src
    		i := strings.Index(src, "@")
    		if i < 0 {
    			t.Errorf("%s: invalid test case (missing @)", src)
    			continue
    		}
    		src = src[:i] + src[i+1:]
    		want := colbase + uint(i)
    
    		f, err := Parse(nil, strings.NewReader(src), nil, nil, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				field.Required(field.NewPath("status", "allocation", "resourceHandles").Index(0).Child("structuredData", "results").Index(1), "exactly one structured model field must be set"),
    			},
    			oldClaim: validClaim,
    			update: func(claim *resource.ResourceClaim) *resource.ResourceClaim {
    				claim.Status.DriverName = "valid"
    				claim.Status.Allocation = &resource.AllocationResult{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. pilot/pkg/model/endpointshards.go

    type EndpointIndexUpdater struct {
    	Index *EndpointIndex
    	// Optional; if set, we will trigger ConfigUpdates in response to EDS updates as appropriate
    	ConfigUpdateFunc func(req *PushRequest)
    }
    
    var _ XDSUpdater = &EndpointIndexUpdater{}
    
    func NewEndpointIndexUpdater(ei *EndpointIndex) *EndpointIndexUpdater {
    	return &EndpointIndexUpdater{Index: ei}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/positions.go

    			m = n.Value
    		case *FuncLit:
    			m = n.Body
    		case *ParenExpr:
    			m = n.X
    		case *SelectorExpr:
    			m = n.Sel
    		case *IndexExpr:
    			m = n.Index
    		case *SliceExpr:
    			for i := len(n.Index) - 1; i >= 0; i-- {
    				if x := n.Index[i]; x != nil {
    					m = x
    					continue
    				}
    			}
    			m = n.X
    		case *AssertExpr:
    			m = n.Type
    		case *TypeSwitchGuard:
    			m = n.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    	}
    	if len(list) != 3 {
    		t.Errorf("unexpected list returned: %#v", list)
    	}
    	if indexUsed != "" {
    		t.Errorf("Used index %q but expected none to be used", indexUsed)
    	}
    
    	// list by label index.
    	matchValues := []storage.MatchValue{
    		{IndexName: "l:label", Value: "value1"},
    		{IndexName: "f:spec.nodeName", Value: "node2"},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top