Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 53 for Getcwd (0.25 sec)

  1. cmd/generic-handlers.go

    		}
    		h.ServeHTTP(w, r)
    	})
    }
    
    // setBucketForwardingMiddleware middleware forwards the path style requests
    // on a bucket to the right bucket location, bucket to IP configuration
    // is obtained from centralized etcd configuration service.
    func setBucketForwardingMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. pkg/kube/util.go

    		deployMeta.Name = pod.Name
    	}
    
    	return deployMeta, typeMetadata
    }
    
    // MaxRequestBodyBytes represents the max size of Kubernetes objects we read. Kubernetes allows a 2x
    // buffer on the max etcd size
    // (https://github.com/kubernetes/kubernetes/blob/0afa569499d480df4977568454a50790891860f5/staging/src/k8s.io/apiserver/pkg/server/config.go#L362).
    // We allow an additional 2x buffer, as it is still fairly cheap (6mb)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    	cacher, _, err := newTestCacher(etcdStorage)
    	if err != nil {
    		t.Fatalf("Couldn't create cacher: %v", err)
    	}
    	defer cacher.Stop()
    
    	// Given that cacher is always initialized from the "current" version of etcd,
    	// we now have a cacher with an empty cache of watch events and a resourceVersion of rv.
    	// It should support establishing watches from rv and higher, but not older.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    
    	if createdMeta.GetResourceVersion() != updatedMeta.GetResourceVersion() {
    		t.Errorf("no-op update should be ignored and not written to etcd")
    	}
    }
    
    func TestStoreUpdateHooks(t *testing.T) {
    	// To track which hooks were called in what order.  Not all hooks can
    	// mutate the object.
    	var milestones []string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  5. src/os/exec/exec_test.go

    	}
    
    	return exeOnce.path
    }
    
    var exeOnce struct {
    	path string
    	err  error
    	sync.Once
    }
    
    func chdir(t *testing.T, dir string) {
    	t.Helper()
    
    	prev, err := os.Getwd()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err := os.Chdir(dir); err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("Chdir(%#q)", dir)
    
    	t.Cleanup(func() {
    		if err := os.Chdir(prev); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    func StartTestTLSServer(t TestErrHandler, instanceType string, cert, key []byte) TestServer {
    	// Fetch TLS key and pem files from test-data/ directory.
    	//	dir, _ := os.Getwd()
    	//	testDataDir := filepath.Join(filepath.Dir(dir), "test-data")
    	//
    	//	pemFile := filepath.Join(testDataDir, "server.pem")
    	//	keyFile := filepath.Join(testDataDir, "server.key")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  7. cmd/api-errors.go

    	if err == errInvalidDecompressedSize {
    		apiErr = ErrInvalidDecompressedSize
    	}
    
    	if apiErr != ErrNone {
    		// If there was a match in the above switch case.
    		return apiErr
    	}
    
    	// etcd specific errors, a key is always a bucket for us return
    	// ErrNoSuchBucket in such a case.
    	if errors.Is(err, dns.ErrNoEntriesFound) {
    		return ErrNoSuchBucket
    	}
    
    	switch err.(type) {
    	case StorageFull:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  8. cmd/iam-store.go

    		return v, ok
    	}
    	return cache.iamUserPolicyMap.Load(name)
    }
    
    // GroupNotificationHandler - updates in-memory cache on notification of
    // change (e.g. peer notification for object storage and etcd watch
    // notification).
    func (store *IAMStoreSys) GroupNotificationHandler(ctx context.Context, group string) error {
    	cache := store.lock()
    	defer store.unlock()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    		testCases = append(testCases,
    			newTestSuiteIAM(bt, false),
    			newTestSuiteIAM(bt, true),
    		)
    	}
    	for i, testCase := range testCases {
    		etcdStr := ""
    		if testCase.withEtcdBackend {
    			etcdStr = " (with etcd backend)"
    		}
    		t.Run(
    			fmt.Sprintf("Test: %d, ServerType: %s%s", i+1, testCase.serverType, etcdStr),
    			func(t *testing.T) {
    				runAllIAMSTSTests(testCase, &check{t, testCase.serverType})
    			},
    		)
    	}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 18:45:50 UTC 2024
    - 90K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    	objectEncryption := crypto.Requested(r.Header)
    	objectEncryption = objectEncryption || crypto.IsSourceEncrypted(srcInfo.UserDefined)
    
    	var compressMetadata map[string]string
    	// No need to compress for remote etcd calls
    	// Pass the decompressed stream to such calls.
    	isDstCompressed := isCompressible(r.Header, dstObject) &&
    		length > minCompressibleSize &&
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
Back to top