Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SimpleUpdate (0.16 sec)

  1. src/hash/crc32/crc32_test.go

    func TestSimple(t *testing.T) {
    	tab := simpleMakeTable(IEEE)
    	testGoldenIEEE(t, func(b []byte) uint32 {
    		return simpleUpdate(0, tab, b)
    	})
    
    	tab = simpleMakeTable(Castagnoli)
    	testGoldenCastagnoli(t, func(b []byte) uint32 {
    		return simpleUpdate(0, tab, b)
    	})
    }
    
    func TestGoldenMarshal(t *testing.T) {
    	t.Run("IEEE", func(t *testing.T) {
    		for _, g := range golden {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. pkg/registry/core/namespace/storage/storage.go

    		out := r.store.NewFunc()
    		err = r.store.Storage.GuaranteedUpdate(
    			ctx, key, out, false, &preconditions,
    			storage.SimpleUpdate(func(existing runtime.Object) (runtime.Object, error) {
    				existingNamespace, ok := existing.(*api.Namespace)
    				if !ok {
    					// wrong type
    					return nil, fmt.Errorf("expected *api.Namespace, got %v", existing)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  3. pkg/registry/core/pod/storage/storage.go

    		}
    		if podResourceVersion != "" {
    			preconditions.ResourceVersion = &podResourceVersion
    		}
    	}
    
    	err = r.store.Storage.GuaranteedUpdate(ctx, podKey, &api.Pod{}, false, preconditions, storage.SimpleUpdate(func(obj runtime.Object) (runtime.Object, error) {
    		pod, ok := obj.(*api.Pod)
    		if !ok {
    			return nil, fmt.Errorf("unexpected object: %#v", obj)
    		}
    		if pod.DeletionTimestamp != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. pkg/registry/apps/deployment/storage/storage.go

    	dKey, err := r.store.KeyFunc(ctx, deploymentID)
    	if err != nil {
    		return nil, err
    	}
    	var finalDeployment *apps.Deployment
    	err = r.store.Storage.GuaranteedUpdate(ctx, dKey, &apps.Deployment{}, false, nil, storage.SimpleUpdate(func(obj runtime.Object) (runtime.Object, error) {
    		d, ok := obj.(*apps.Deployment)
    		if !ok {
    			return nil, fmt.Errorf("unexpected object: %#v", obj)
    		}
    		if d.Annotations == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 16.8K bytes
    - Viewed (0)
Back to top