Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for Load (0.14 sec)

  1. cni/pkg/nodeagent/healthServer_test.go

    	assert.Equal(t, installReady.Load(), false)
    	assert.Equal(t, watchReady.Load(), false)
    
    	server := httptest.NewServer(router)
    	defer server.Close()
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusServiceUnavailable)
    
    	installReady.Store(true)
    	watchReady.Store(true)
    	assert.Equal(t, installReady.Load(), true)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. cmd/storage-rest-client.go

    	if values == nil {
    		values = make(url.Values)
    	}
    	values.Set(storageRESTDiskID, *client.diskID.Load())
    	respBody, err := client.restClient.Call(ctx, method, values, body, length)
    	if err != nil {
    		return nil, toStorageErr(err)
    	}
    	return respBody, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  3. tests/joins_test.go

    		if users2[idx].Manager == nil {
    			t.Fatalf("Failed to load Manager")
    		}
    		// manager
    		CheckUser(t, *user.Manager, *users2[idx].Manager)
    		// user pet
    		if users2[idx].NamedPet == nil {
    			t.Fatalf("Failed to load NamedPet")
    		}
    		CheckPet(t, *user.NamedPet, *users2[idx].NamedPet)
    		// manager pet
    		if users2[idx].Manager.NamedPet == nil {
    			t.Fatalf("Failed to load NamedPet")
    		}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  4. cmd/routers.go

    	registerStorageRESTHandlers(router, endpointServerPools, globalGrid.Load())
    
    	// Register peer REST router only if its a distributed setup.
    	registerPeerRESTHandlers(router, globalGrid.Load())
    
    	// Register bootstrap REST router for distributed setups.
    	registerBootstrapRESTHandlers(globalGrid.Load())
    
    	// Register distributed namespace lock routers.
    	registerLockRESTHandlers()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 19:08:18 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  5. internal/logger/target/testlogger/testlogger.go

    func (t *testLogger) IsOnline(ctx context.Context) bool {
    	return t.current.Load() != nil
    }
    
    func (t *testLogger) Cancel() {
    	t.current.Store(nil)
    }
    
    func (t *testLogger) Send(ctx context.Context, entry interface{}) error {
    	tb := t.current.Load()
    	var logf func(format string, args ...any)
    	if tb != nil {
    		tbb := *tb
    		tbb.Helper()
    		switch t.action.Load() {
    		case errorMessage:
    			logf = tbb.Errorf
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    				break
    			}
    		}
    		mappedPolicy, ok := cache.iamUserPolicyMap.Load(name)
    		if !ok {
    			mappedPolicy, ok = cache.iamSTSPolicyMap.Load(name)
    		}
    		if !ok {
    			// Attempt to load parent user mapping for STS accounts
    			store.loadMappedPolicy(context.TODO(), name, stsUser, false, cache.iamSTSPolicyMap)
    			mappedPolicy, ok = cache.iamSTSPolicyMap.Load(name)
    			if !ok {
    				return u, errNoSuchUser
    			}
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  7. cni/pkg/nodeagent/net_test.go

    	err := netServer.RemovePodFromMesh(ctx, pod)
    	assert.NoError(t, err)
    	assert.Equal(t, ztunnelServer.deletedPods.Load(), 1)
    	assert.Equal(t, nlDeps.DelInpodMarkIPRuleCnt.Load(), 1)
    	assert.Equal(t, nlDeps.DelLoopbackRoutesCnt.Load(), 1)
    	// make sure the uid was taken from cache and netns closed
    	netns := fixture.podNsMap.Take(string(pod.UID))
    	assert.Equal(t, nil, netns)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  8. cmd/http-stats.go

    		APIStats: st.currentS3Requests.Load(toLowerKeys),
    	}
    	serverStats.TotalS3Requests = ServerHTTPAPIStats{
    		APIStats: st.totalS3Requests.Load(toLowerKeys),
    	}
    	serverStats.TotalS3Errors = ServerHTTPAPIStats{
    		APIStats: st.totalS3Errors.Load(toLowerKeys),
    	}
    	serverStats.TotalS34xxErrors = ServerHTTPAPIStats{
    		APIStats: st.totalS34xxErrors.Load(toLowerKeys),
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_test.go

    		b.ResetTimer()
    		b.SetBytes(855) // number of versions...
    		for i := 0; i < b.N; i++ {
    			err = xl.Load(data)
    			if err != nil {
    				b.Fatal(err)
    			}
    		}
    	})
    }
    
    func Test_xlMetaV2Shallow_Load(t *testing.T) {
    	// Load Legacy
    	data, err := os.ReadFile("testdata/xl.meta-v1.2.zst")
    	if err != nil {
    		t.Fatal(err)
    	}
    	dec, _ := zstd.NewReader(nil)
    	data, err = dec.DecodeAll(data, nil)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 08 17:50:48 GMT 2024
    - 36.4K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/pod_cache_test.go

    	}
    
    	if !reflect.DeepEqual(netns1, netns2) {
    		t.Fatalf("Expected the same Netns for the same uid, got %v and %v", netns1, netns2)
    	}
    
    	if counter.Load() != 2 {
    		t.Fatalf("Expected openNetns to be called twice, got %d", counter.Load())
    	}
    }
    
    func TestUpsertPodCacheWithNewInode(t *testing.T) {
    	counter.Store(0)
    
    	p := newPodNetnsCache(openNsTestOverrideWithInodes(1, 2))
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top