Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 2,558 for case (0.04 sec)

  1. internal/bucket/lifecycle/filter.go

    		return errInvalidFilter
    	}
    
    	var err error
    	switch pType {
    	case nonePred:
    	// S3 supports empty <Filter></Filter>
    	case prefixPred:
    	case andPred:
    		err = f.And.Validate()
    	case tagPred:
    		err = f.Tag.Validate()
    	case sizeLtPred:
    		if f.ObjectSizeLessThan < 0 {
    			err = errXMLNotWellFormed
    		}
    	case sizeGtPred:
    		if f.ObjectSizeGreaterThan < 0 {
    			err = errXMLNotWellFormed
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 04 17:01:26 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. internal/http/server_test.go

    			})
    		}
    		if server == nil {
    			t.Fatalf("Case %v: server: expected: <non-nil>, got: <nil>", (i + 1))
    		} else if !reflect.DeepEqual(server.Addrs, testCase.addrs) {
    			t.Fatalf("Case %v: server.Addrs: expected: %v, got: %v", (i + 1), testCase.addrs, server.Addrs)
    		}
    
    		if testCase.certFn == nil {
    			if server.TLSConfig != nil {
    				t.Fatalf("Case %v: server.TLSConfig: expected: <nil>, got: %v", (i + 1), server.TLSConfig)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. clause/expression.go

    		switch value := v.(type) {
    		case sql.NamedArg:
    			namedMap[value.Name] = value.Value
    		case map[string]interface{}:
    			for k, v := range value {
    				namedMap[k] = v
    			}
    		default:
    			var appendFieldsToMap func(reflect.Value)
    			appendFieldsToMap = func(reflectValue reflect.Value) {
    				reflectValue = reflect.Indirect(reflectValue)
    				switch reflectValue.Kind() {
    				case reflect.Struct:
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 06:45:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  4. cmd/iam-etcd-store.go

    	var basePrefix string
    	switch userType {
    	case svcUser:
    		basePrefix = iamConfigServiceAccountsPrefix
    	case stsUser:
    		basePrefix = iamConfigSTSPrefix
    	default:
    		basePrefix = iamConfigUsersPrefix
    	}
    
    	cctx, cancel := context.WithTimeout(ctx, defaultContextTimeout)
    	defer cancel()
    
    	// Retrieve all keys and values to avoid too many calls to etcd in case of
    	// a large number of users
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  5. cmd/postpolicyform.go

    func toInteger(val interface{}) (int64, error) {
    	switch v := val.(type) {
    	case float64:
    		return int64(v), nil
    	case int64:
    		return v, nil
    	case int:
    		return int64(v), nil
    	case string:
    		i, err := strconv.Atoi(v)
    		return int64(i), err
    	default:
    		return 0, errors.New("Invalid number format")
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. cmd/admin-bucket-handlers.go

    					tgt.Endpoint = target.Endpoint
    				}
    			case madmin.SyncUpdateType:
    				tgt.ReplicationSync = target.ReplicationSync
    			case madmin.ProxyUpdateType:
    				tgt.DisableProxy = target.DisableProxy
    			case madmin.PathUpdateType:
    				tgt.Path = target.Path
    			case madmin.BandwidthLimitUpdateType:
    				tgt.BandwidthLimit = target.BandwidthLimit
    			case madmin.HealthCheckDurationUpdateType:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. cmd/metrics-v2_gen.go

    				return
    			}
    		case "dependGlobalKMS":
    			z.dependGlobalKMS, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "dependGlobalKMS")
    				return
    			}
    		case "bucketOnly":
    			z.bucketOnly, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "bucketOnly")
    				return
    			}
    		case "dependGlobalLambdaTargetList":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        this.network = createNetwork(edgeType);
      }
    
      private static MutableNetwork<Integer, String> createNetwork(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return NetworkBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
            return NetworkBuilder.directed().allowsSelfLoops(true).build();
        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        this.network = createNetwork(edgeType);
      }
    
      private static MutableNetwork<Integer, String> createNetwork(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return NetworkBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
            return NetworkBuilder.directed().allowsSelfLoops(true).build();
        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/arch/s390x.go

    }
    
    func s390xRegisterNumber(name string, n int16) (int16, bool) {
    	switch name {
    	case "AR":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_AR0 + n, true
    		}
    	case "F":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_F0 + n, true
    		}
    	case "R":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_R0 + n, true
    		}
    	case "V":
    		if 0 <= n && n <= 31 {
    			return s390x.REG_V0 + n, true
    		}
    	}
    	return 0, false
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 17 14:55:25 UTC 2019
    - 1.2K bytes
    - Viewed (0)
Back to top