Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getHits (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    			}
    			err := store.GetList(ctx, tt.prefix, storageOpts, out)
    			if tt.expectRVTooLarge {
    				if err == nil || !apierrors.IsTimeout(err) || !storage.IsTooLargeResourceVersion(err) {
    					t.Fatalf("expecting resource version too high error, but get: %s", err)
    				}
    				return
    			}
    
    			if err != nil {
    				if !tt.expectError {
    					t.Fatalf("GetList failed: %v", err)
    				}
    				return
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    	backingStorage.injectError(errDummy)
    	err = cacher.GetList(context.TODO(), "pods/ns", storage.ListOptions{
    		ResourceVersion: "0",
    		Predicate:       pred,
    	}, result)
    	if err != nil {
    		t.Errorf("GetList with Limit and RV=0 should be served from cache: %v", err)
    	}
    
    	err = cacher.GetList(context.TODO(), "pods/ns", storage.ListOptions{
    		ResourceVersion: "",
    		Predicate:       pred,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  3. cmd/object-api-options.go

    		opts.ServerSideEncryption = encrypt.NewSSE()
    	}
    
    	return
    }
    
    // get ObjectOptions for GET calls from encryption headers
    func getOpts(ctx context.Context, r *http.Request, bucket, object string) (ObjectOptions, error) {
    	var opts ObjectOptions
    
    	var partNumber int
    	var err error
    	if pn := r.Form.Get(xhttp.PartNumber); pn != "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. cmd/object-multipart-handlers.go

    		return
    	}
    	srcOpts.VersionID = vid
    
    	// convert copy src and dst encryption options for GET/PUT calls
    	getOpts := ObjectOptions{VersionID: srcOpts.VersionID}
    	if srcOpts.ServerSideEncryption != nil {
    		getOpts.ServerSideEncryption = encrypt.SSE(srcOpts.ServerSideEncryption)
    	}
    
    	dstOpts, err = copyDstOpts(ctx, r, dstBucket, dstObject, nil)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    			return true
    		}
    		return checkCopyObjectPreconditions(ctx, w, r, o)
    	}
    	getOpts.CheckPrecondFn = checkCopyPrecondFn
    	if cpSrcDstSame {
    		getOpts.NoLock = true
    	}
    
    	var rs *HTTPRangeSpec
    	gr, err := getObjectNInfo(ctx, srcBucket, srcObject, rs, r.Header, getOpts)
    	if err != nil {
    		if isErrPreconditionFailed(err) {
    			return
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-provider/src/testFixtures/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeFixture.groovy

                        action.execute(getDependencies());
                    }
    
    
                    public abstract ListProperty<String> getList();
    
                    @Adding
                    public void addToList(String value) {
                        getList().add(value);
                    }
    
                    @Nested
                    public abstract Bar getBar();
    
                    @Configuring
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:26 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  7. cmd/s3-zip-handlers.go

    		return
    	}
    
    	zipPath, object, err := splitZipExtensionPath(object)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	opts, err := getOpts(ctx, r, bucket, zipPath)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	getObjectInfo := objectAPI.GetObjectInfo
    
    	// Check for auth type to return S3 compatible error.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    		t.Fatalf("Failed to initialize cacher: %v", err)
    	}
    	ctx := context.Background()
    	terminate := func() {
    		cacher.Stop()
    		server.Terminate(t)
    	}
    
    	// Since some tests depend on the fact that GetList shouldn't fail,
    	// we wait until the error from the underlying storage is consumed.
    	if err := wait.PollInfinite(100*time.Millisecond, wrappedStorage.ErrorsConsumed); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    	_, watchErr := store.Watch(ctx, invalidKey, storage.ListOptions{})
    	expectInvalidKey("Watch", watchErr)
    	expectInvalidKey("Get", store.Get(ctx, invalidKey, storage.GetOptions{}, nil))
    	expectInvalidKey("GetList", store.GetList(ctx, invalidKey, storage.ListOptions{}, nil))
    	expectInvalidKey("GuaranteedUpdate", store.GuaranteedUpdate(ctx, invalidKey, nil, true, nil, nil, nil))
    	_, countErr := store.Count(invalidKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    }
    
    // GetList implements storage.Interface
    func (c *Cacher) GetList(ctx context.Context, key string, opts storage.ListOptions, listObj runtime.Object) error {
    	recursive := opts.Recursive
    	resourceVersion := opts.ResourceVersion
    	pred := opts.Predicate
    	if shouldDelegateList(opts) {
    		return c.storage.GetList(ctx, key, opts, listObj)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top