Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for EncodeContinue (0.1 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/continue.go

    		}
    		return keyPrefix + cleaned[1:], c.ResourceVersion, nil
    	default:
    		return "", 0, fmt.Errorf("%w %v", ErrUnrecognizedEncodedVersion, c.APIVersion)
    	}
    }
    
    // EncodeContinue returns a string representing the encoded continuation of the current query.
    func EncodeContinue(key, keyPrefix string, resourceVersion int64) (string, error) {
    	nextKey := strings.TrimPrefix(key, keyPrefix)
    	if nextKey == key {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 17:30:02 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/errors.go

    	// continue the list at the latest resource version. We don't use rv=0
    	// for this purpose to distinguish from a bad token that has empty rv.
    	newToken, err := storage.EncodeContinue(continueKey, keyPrefix, -1)
    	if err != nil {
    		utilruntime.HandleError(err)
    		return errors.NewResourceExpired(continueExpired)
    	}
    	statusError := errors.NewResourceExpired(inconsistentContinue)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 15:59:41 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go

    	}
    }
    
    const dummyPrefix = "adapter"
    
    func encodeContinueOrDie(key string, resourceVersion int64) string {
    	token, err := storage.EncodeContinue(dummyPrefix+key, dummyPrefix, resourceVersion)
    	if err != nil {
    		panic(err)
    	}
    	return token
    }
    
    func testCheckEventType(t *testing.T, w watch.Interface, expectEventType watch.EventType) {
    	select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 07:26:55 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go

    	// we never return a key that the client wouldn't be allowed to see
    	if hasMore {
    		// we want to start immediately after the last key
    		next, err := storage.EncodeContinue(string(lastKey)+"\x00", keyPrefix, withRev)
    		if err != nil {
    			return err
    		}
    		var remainingItemCount *int64
    		// getResp.Count counts in objects that do not match the pred.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	}
    	if err := store.GetList(ctx, "/second", storageOpts, list); err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    	continueRV, _ := strconv.Atoi(list.ResourceVersion)
    	secondContinuation, err := storage.EncodeContinue("/second/foo", "/second/", int64(continueRV))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	getAttrs := func(obj runtime.Object) (labels.Set, fields.Set, error) {
    		pod := obj.(*example.Pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
Back to top