Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 383 for Case (0.14 sec)

  1. cmd/bucket-replication.go

    				}
    				traceFn(err)
    				select {
    				case <-ctx.Done():
    					return
    				case <-s.resyncCancelCh:
    					return
    				case resultCh <- st:
    				}
    			}
    		}(ctx, i)
    	}
    	for obj := range objInfoCh {
    		select {
    		case <-s.resyncCancelCh:
    			resyncStatus = ResyncCanceled
    			return
    		case <-ctx.Done():
    			return
    		default:
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  2. docs/debugging/pprofgoparser/main.go

    		skip, record bool
    	)
    
    	for s.Scan() {
    		line := s.Text()
    		switch {
    		case skip && line != "":
    		case skip && line == "":
    			skip = false
    		case record && line == "":
    			stackTrace := bf.String()
    			reset()
    			record = false
    			if searchRE == nil || searchRE.MatchString(stackTrace) {
    				ret[t] = append(ret[t], stackTrace)
    			}
    		case record:
    			save(line)
    		default:
    			z := goroutinesRE.FindStringSubmatch(line)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 06 11:43:16 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  3. internal/grid/connection.go

    	switch m.Op {
    	case OpMuxServerMsg:
    		c.handleMuxServerMsg(ctx, m)
    	case OpResponse:
    		c.handleResponse(m)
    	case OpMuxClientMsg:
    		c.handleMuxClientMsg(ctx, m)
    	case OpUnblockSrvMux:
    		c.handleUnblockSrvMux(m)
    	case OpUnblockClMux:
    		c.handleUnblockClMux(m)
    	case OpDisconnectServerMux:
    		c.handleDisconnectServerMux(m)
    	case OpDisconnectClientMux:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  4. cmd/storage-rest-common_gen.go

    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "id":
    			z.DiskID, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "DiskID")
    				return
    			}
    		case "m":
    			z.ScanMode, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "ScanMode")
    				return
    			}
    		case "c":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  5. internal/config/identity/openid/jwks.go

    			E: int(e.Int64()),
    			N: &n,
    		}, nil
    	case "EC":
    		if key.Crv == "" || key.X == "" || key.Y == "" {
    			return nil, errMalformedJWKECKey
    		}
    
    		var curve elliptic.Curve
    		switch key.Crv {
    		case "P-224":
    			curve = elliptic.P224()
    		case "P-256":
    			curve = elliptic.P256()
    		case "P-384":
    			curve = elliptic.P384()
    		case "P-521":
    			curve = elliptic.P521()
    		default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 23:02:35 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. 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"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  7. cmd/handler-utils_test.go

    		serverConfigRegion string
    		expectedCode       APIErrorCode
    	}{
    		// Test case - 1.
    		{createExpectedRequest(&http.Request{}, "eu-central-1"), globalMinioDefaultRegion, ErrNone},
    		// Test case - 2.
    		// In case of empty request body ErrNone is returned.
    		{createExpectedRequest(&http.Request{}, ""), globalMinioDefaultRegion, ErrNone},
    		// Test case - 3
    		// In case of garbage request body ErrMalformedXML is returned.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  8. operator/cmd/mesh/profile-dump.go

    	switch outputFormat {
    	case jsonOutput, yamlOutput, flagsOutput:
    	default:
    		return fmt.Errorf("unknown output format: %s", outputFormat)
    	}
    	return nil
    }
    
    // yamlToFormat converts the generated yaml config to the expected format
    func yamlToFormat(yaml, outputFormat string) (string, error) {
    	var output string
    	switch outputFormat {
    	case jsonOutput:
    		j, err := yamlToPrettyJSON(yaml)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  9. cmd/peer-rest-client.go

    		select {
    		case listenCh <- *b:
    		default:
    			// Do not block on slow receivers.
    			b.Recycle()
    		}
    		return nil
    	})
    }
    
    // Listen - listen on peers.
    func (client *peerRESTClient) Listen(ctx context.Context, listenCh chan<- []byte, v url.Values) {
    	go func() {
    		for {
    			client.doListen(ctx, listenCh, v)
    			select {
    			case <-ctx.Done():
    				return
    			default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  10. cmd/sftp-server.go

    			}
    			publicIP = host
    		case "ssh-private-key":
    			sshPrivateKey = tokens[1]
    		case "pub-key-algos":
    			allowPubKeys = filterAlgos(arg, strings.Split(tokens[1], ","), supportedPubKeyAuthAlgos)
    		case "kex-algos":
    			allowKexAlgos = filterAlgos(arg, strings.Split(tokens[1], ","), supportedKexAlgos)
    		case "cipher-algos":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top