Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetString (0.91 sec)

  1. cmd/endpoint.go

    // HTTPS - returns true if secure for URLEndpointType.
    func (endpoints Endpoints) HTTPS() bool {
    	return endpoints[0].HTTPS()
    }
    
    // GetString - returns endpoint string of i-th endpoint (0-based),
    // and empty string for invalid indexes.
    func (endpoints Endpoints) GetString(i int) string {
    	if i < 0 || i >= len(endpoints) {
    		return ""
    	}
    	return endpoints[i].String()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    	// Existing formats are available (i.e. ok), so save it in
    	// result, also populate disks to be healed.
    	for i, format := range formats {
    		drive := endpoints.GetString(i)
    		state := madmin.DriveStateCorrupt
    		switch {
    		case format != nil:
    			state = madmin.DriveStateOk
    		case sErrs[i] == errUnformattedDisk:
    			state = madmin.DriveStateMissing
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 37.7K bytes
    - Viewed (5)
Back to top