Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for FormatUint (0.21 sec)

  1. cmd/signature-v4-utils.go

    			// But some clients deviate from this rule. Hence we consider Content-Length for signature
    			// calculation to be compatible with such clients.
    			extractedSignedHeaders.Set(header, strconv.FormatInt(r.ContentLength, 10))
    		default:
    			return nil, ErrUnsignedHeaders
    		}
    	}
    	return extractedSignedHeaders, ErrNone
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. cmd/signature-v4.go

    	// Verify signature.
    	if !compareSignatureV4(req.Form.Get(xhttp.AmzSignature), newSignature) {
    		return ErrSignatureDoesNotMatch
    	}
    
    	r.Header.Set("x-amz-signature-age", strconv.FormatInt(UTCNow().Sub(pSignValues.Date).Milliseconds(), 10))
    
    	return ErrNone
    }
    
    // doesSignatureMatch - Verify authorization header with calculated header in accordance with
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. cmd/api-headers.go

    	}
    
    	// For providing ranged content
    	start, rangeLen, err = rs.GetOffsetLength(totalObjectSize)
    	if err != nil {
    		return err
    	}
    
    	// Set content length.
    	w.Header().Set(xhttp.ContentLength, strconv.FormatInt(rangeLen, 10))
    	if rs != nil {
    		contentRange := fmt.Sprintf("bytes %d-%d/%d", start, start+rangeLen-1, totalObjectSize)
    		w.Header().Set(xhttp.ContentRange, contentRange)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
  4. istioctl/pkg/wait/wait.go

    		if err != nil {
    			return err
    		}
    		for w := range watch.ResultChan() {
    			o, ok := w.Object.(metav1.Object)
    			if !ok {
    				continue
    			}
    			if o.GetName() == nf {
    				result <- strconv.FormatInt(o.GetGeneration(), 10)
    			}
    			select {
    			case <-ictx.Done():
    				return ictx.Err()
    			default:
    				continue
    			}
    		}
    
    		return nil
    	})
    	return g
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 17 12:24:17 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    						start, rangeLen, err := rs.GetOffsetLength(ci.Size)
    						if err != nil {
    							start, rangeLen = 0, ci.Size
    						}
    
    						// Set content length.
    						w.Header().Set(xhttp.ContentLength, strconv.FormatInt(rangeLen, 10))
    						if rs != nil {
    							contentRange := fmt.Sprintf("bytes %d-%d/%d", start, start+rangeLen-1, ci.Size)
    							w.Header().Set(xhttp.ContentRange, contentRange)
    						}
    
    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)
  6. src/archive/tar/common.go

    			if paxKey == paxNone {
    				whyNoPAX = fmt.Sprintf("PAX cannot encode %s=%d", name, n)
    				format.mustNotBe(FormatPAX)
    			} else {
    				paxHdrs[paxKey] = strconv.FormatInt(n, 10)
    			}
    		}
    		if v, ok := h.PAXRecords[paxKey]; ok && v == strconv.FormatInt(n, 10) {
    			paxHdrs[paxKey] = v
    		}
    	}
    	verifyTime := func(ts time.Time, size int, name, paxKey string) {
    		if ts.IsZero() {
    			return // Always okay
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  7. cmd/apierrorcode_string.go

    func (i APIErrorCode) String() string {
    	if i < 0 || i >= APIErrorCode(len(_APIErrorCode_index)-1) {
    		return "APIErrorCode(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return _APIErrorCode_name[_APIErrorCode_index[i]:_APIErrorCode_index[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  8. internal/grid/grid_test.go

    var stateIndex = [...]uint8{0, 11, 21, 30, 45, 53}
    
    func (i State) String() string {
    	if i >= State(len(stateIndex)-1) {
    		return "State(" + strconv.FormatInt(int64(i), 10) + ")"
    	}
    	return stateName[stateIndex[i]:stateIndex[i+1]]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  9. cmd/erasure-multipart.go

    	if opts.ReplicationRequest {
    		fi.Metadata[ReservedMetadataPrefix+"actual-size"] = opts.UserDefined["X-Minio-Internal-Actual-Object-Size"]
    	} else {
    		fi.Metadata[ReservedMetadataPrefix+"actual-size"] = strconv.FormatInt(objectActualSize, 10)
    	}
    
    	if opts.DataMovement {
    		fi.SetDataMov()
    	}
    
    	// Update all erasure metadata, make sure to not modify fields like
    	// checksum which are different on each disks.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  10. cmd/api-errors.go

    			}
    		case InvalidRange:
    			apiErr = APIError{
    				Code:           "InvalidRange",
    				Description:    e.Error(),
    				HTTPStatusCode: errorCodes[ErrInvalidRange].HTTPStatusCode,
    				ObjectSize:     strconv.FormatInt(e.ResourceSize, 10),
    				RangeRequested: fmt.Sprintf("%d-%d", e.OffsetBegin, e.OffsetEnd),
    			}
    		case InvalidArgument:
    			apiErr = APIError{
    				Code:           "InvalidArgument",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
Back to top