Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 1,392 for case1 (0.03 sec)

  1. cmd/healthcheck-handler.go

    		return
    	}
    
    	if int(globalHTTPStats.loadRequestsInQueue()) > globalAPIConfig.getRequestsPoolCapacity() {
    		apiErr := getAPIError(ErrBusy)
    		switch r.Method {
    		case http.MethodHead:
    			writeResponse(w, apiErr.HTTPStatusCode, nil, mimeNone)
    		case http.MethodGet:
    			writeErrorResponse(r.Context(), w, apiErr, r.URL)
    		}
    		return
    	}
    
    	// Verify if KMS is reachable if its configured
    	if GlobalKMS != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 26 07:44:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. cmd/signature-v4-utils_test.go

    		expectedResult bool
    	}{
    		// Test case - 1.
    		// Test case with "X-Amz-Content-Sha256" header set, but to empty value but we can't skip.
    		{"X-Amz-Content-Sha256", "", "", "", false},
    
    		// Test case - 2.
    		// Test case with "X-Amz-Content-Sha256" not set so we can skip.
    		{"", "", "", "", true},
    
    		// Test case - 3.
    		// Test case with "X-Amz-Content-Sha256" header set to  "UNSIGNED-PAYLOAD"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. internal/dsync/lock-args_gen.go

    					err = msgp.WrapError(err, "Resources", za0001)
    					return
    				}
    			}
    		case "Owner":
    			z.Owner, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Owner")
    				return
    			}
    		case "Source":
    			z.Source, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Source")
    				return
    			}
    		case "Quorum":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. cmd/warm-backend-s3.go

    	if err != nil {
    		return nil, err
    	}
    
    	// Validation code
    	switch {
    	case conf.AWSRoleWebIdentityTokenFile == "" && conf.AWSRoleARN != "" || conf.AWSRoleWebIdentityTokenFile != "" && conf.AWSRoleARN == "":
    		return nil, errors.New("both the token file and the role ARN are required")
    	case conf.AccessKey == "" && conf.SecretKey != "" || conf.AccessKey != "" && conf.SecretKey == "":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. internal/config/scanner/scanner.go

    	case "fastest":
    		cfg.Delay, cfg.MaxWait, cfg.Cycle = 0, 0, time.Second
    	case "fast":
    		cfg.Delay, cfg.MaxWait, cfg.Cycle = 1, 100*time.Millisecond, time.Minute
    	case "default":
    		cfg.Delay, cfg.MaxWait, cfg.Cycle = 2, time.Second, time.Minute
    	case "slow":
    		cfg.Delay, cfg.MaxWait, cfg.Cycle = 10, 15*time.Second, time.Minute
    	case "slowest":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. utils/utils_windows_test.go

    package utils
    
    import (
    	"testing"
    )
    
    func TestSourceDir(t *testing.T) {
    	cases := []struct {
    		file string
    		want string
    	}{
    		{
    			file: `C:/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go`,
    			want: `C:/Users/name/go/pkg/mod/gorm.io/`,
    		},
    		{
    			file: `C:/go/work/proj/gorm/utils/utils.go`,
    			want: `C:/go/work/proj/gorm/`,
    		},
    		{
    			file: `C:/go/work/proj/gorm_alias/utils/utils.go`,
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Nov 21 02:48:13 UTC 2022
    - 715 bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

            Mac m;
            byte[] signingKey;
            switch ( dialect ) {
            case Smb2Constants.SMB2_DIALECT_0202:
            case Smb2Constants.SMB2_DIALECT_0210:
                m = Mac.getInstance("HmacSHA256");
                signingKey = sessionKey;
                break;
            case Smb2Constants.SMB2_DIALECT_0300:
            case Smb2Constants.SMB2_DIALECT_0302:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/av/AvPairs.java

            switch ( avId ) {
            case AvPair.MsvAvFlags:
                return new AvFlags(raw);
            case AvPair.MsvAvTimestamp:
                return new AvTimestamp(raw);
            case AvPair.MsvAvTargetName:
                return new AvTargetName(raw);
            case AvPair.MsvAvSingleHost:
                return new AvSingleHost(raw);
            case AvPair.MsvAvChannelBindings:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  9. cmd/bucket-replication-stats.go

    		return
    	}
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-r.wTimer.C:
    			r.wlock.Lock()
    			r.workers.update()
    			r.wlock.Unlock()
    
    		}
    	}
    }
    
    func (r *ReplicationStats) collectQueueMetrics(ctx context.Context) {
    	if r == nil {
    		return
    	}
    
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-r.qTimer.C:
    			r.qCache.update()
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            case SMB_COM_FIND_CLOSE2:
                c = "SMB_COM_FIND_CLOSE2";
                break;
            case SMB_COM_TREE_DISCONNECT:
                c = "SMB_COM_TREE_DISCONNECT";
                break;
            case SMB_COM_LOGOFF_ANDX:
                c = "SMB_COM_LOGOFF_ANDX";
                break;
            case SMB_COM_ECHO:
                c = "SMB_COM_ECHO";
                break;
            case SMB_COM_MOVE:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 32.7K bytes
    - Viewed (0)
Back to top