Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 172 for strconv (0.14 sec)

  1. cmd/httprange.go

    func (h *HTTPRangeSpec) ToHeader() (string, error) {
    	if h == nil {
    		return "", nil
    	}
    	start := strconv.Itoa(int(h.Start))
    	end := strconv.Itoa(int(h.End))
    	switch {
    	case h.Start >= 0 && h.End >= 0:
    		if h.Start > h.End {
    			return "", errInvalidRange
    		}
    	case h.IsSuffixLength:
    		end = strconv.Itoa(int(h.Start * -1))
    		start = ""
    	case h.Start > -1:
    		end = ""
    	default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2_string.go

    // Code generated by "stringer -type VersionType,ErasureAlgo -output=xl-storage-format-v2_string.go xl-storage-format-v2.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[invalidVersionType-0]
    	_ = x[ObjectType-1]
    	_ = x[DeleteType-2]
    	_ = x[LegacyType-3]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 02 19:29:16 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  3. src/archive/tar/stat_unix.go

    		if u, ok := userMap.Load(h.Uid); ok {
    			h.Uname = u.(string)
    		} else if u, err := user.LookupId(strconv.Itoa(h.Uid)); err == nil {
    			h.Uname = u.Username
    			userMap.Store(h.Uid, h.Uname)
    		}
    		if g, ok := groupMap.Load(h.Gid); ok {
    			h.Gname = g.(string)
    		} else if g, err := user.LookupGroupId(strconv.Itoa(h.Gid)); err == nil {
    			h.Gname = g.Name
    			groupMap.Store(h.Gid, h.Gname)
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. cmd/authtype_string.go

    // Code generated by "stringer -type=authType -trimprefix=authType auth-handler.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[authTypeUnknown-0]
    	_ = x[authTypeAnonymous-1]
    	_ = x[authTypePresigned-2]
    	_ = x[authTypePresignedV2-3]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 06 02:53:12 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  5. cmd/stserrorcode_string.go

    // Code generated by "stringer -type=STSErrorCode -trimprefix=Err sts-errors.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[ErrSTSNone-0]
    	_ = x[ErrSTSAccessDenied-1]
    	_ = x[ErrSTSMissingParameter-2]
    	_ = x[ErrSTSInvalidParameterValue-3]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 03 20:24:25 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  6. cmd/osmetric_string.go

    // Code generated by "stringer -type=osMetric -trimprefix=osMetric os-instrumented.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[osMetricRemoveAll-0]
    	_ = x[osMetricMkdirAll-1]
    	_ = x[osMetricMkdir-2]
    	_ = x[osMetricRename-3]
    	_ = x[osMetricOpenFileW-4]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. cmd/generic-handlers_test.go

    func generateHeader(size, usersize int) http.Header {
    	header := http.Header{}
    	for i := 0; i < size; i++ {
    		header.Set(strconv.Itoa(i), "")
    	}
    	userlength := 0
    	for i := 0; userlength < usersize; i++ {
    		userlength += len(userMetadataKeyPrefixes[0] + strconv.Itoa(i))
    		header.Set(userMetadataKeyPrefixes[0]+strconv.Itoa(i), "")
    	}
    	return header
    }
    
    func TestIsHTTPHeaderSizeTooLarge(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. internal/http/check_port_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package http
    
    import (
    	"fmt"
    	"net"
    	"runtime"
    	"strconv"
    	"testing"
    )
    
    // Tests for port availability logic written for server startup sequence.
    func TestCheckPortAvailability(t *testing.T) {
    	if runtime.GOOS != "linux" {
    		t.Skip()
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 03 21:12:25 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  9. cmd/healingmetric_string.go

    // Code generated by "stringer -type=healingMetric -trimprefix=healingMetric erasure-healing.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[healingMetricBucket-0]
    	_ = x[healingMetricObject-1]
    	_ = x[healingMetricCheckAbandonedParts-2]
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 28 18:20:55 GMT 2022
    - 789 bytes
    - Viewed (0)
  10. cmd/metacache-marker.go

    		case "id":
    			o.ID = kv[1]
    		case "return":
    			o.ID = mustGetUUID()
    			o.Create = true
    		case "p": // pool
    			v, err := strconv.ParseInt(kv[1], 10, 64)
    			if err != nil {
    				o.ID = mustGetUUID()
    				o.Create = true
    				continue
    			}
    			o.pool = int(v)
    		case "s": // set
    			v, err := strconv.ParseInt(kv[1], 10, 64)
    			if err != nil {
    				o.ID = mustGetUUID()
    				o.Create = true
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top