Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 84 of 84 for Value (0.13 sec)

  1. cmd/object-handlers.go

    	return defaultMeta, nil
    }
    
    // getRemoteInstanceTransport contains a roundtripper for external (not peers) servers
    var remoteInstanceTransport atomic.Value
    
    func setRemoteInstanceTransport(tr http.RoundTripper) {
    	remoteInstanceTransport.Store(tr)
    }
    
    func getRemoteInstanceTransport() http.RoundTripper {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

        x_trace: str = Header(default=..., title="Tracing header"),
    ):
        return {"message": "Hello World"}
    ```
    
    ...all these parameters are required because the default value is `...` (Ellipsis).
    
    But now it's possible and supported to just omit the default value, as would be done with Pydantic fields, and the parameters would still be required.
    
    ✨ For example, this is now supported:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  3. cmd/erasure-server-pool.go

    			}
    		}
    		var maxUsedPct int
    		for _, disk := range zinfo {
    			if disk == nil || disk.Total == 0 {
    				continue
    			}
    			available += disk.Total - disk.Used
    
    			// set maxUsedPct to the value from the disk with the least space percentage.
    			if pctUsed := int(disk.Used * 100 / disk.Total); pctUsed > maxUsedPct {
    				maxUsedPct = pctUsed
    			}
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  4. cmd/site-replication.go

    		}
    
    		for pname := range allPolicies {
    			if _, ok := policyStats[pname]; !ok {
    				policyStats[pname] = make([]srPolicy, numSites)
    			}
    
    			// if pname is not present in the map, the zero value
    			// will be returned.
    			pi := sri.Policies[pname]
    			policyStats[pname][i] = srPolicy{SRIAMPolicy: pi, DeploymentID: sri.DeploymentID}
    		}
    		for user := range allUserWPolicies {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
Back to top