Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 54 for FormatUint (0.1 sec)

  1. 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
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K 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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. internal/config/notify/legacy.go

    		},
    		config.KV{
    			Key:   target.NATSTLSSkipVerify,
    			Value: config.FormatBool(cfg.Secure),
    		},
    		config.KV{
    			Key:   target.NATSPingInterval,
    			Value: strconv.FormatInt(cfg.PingInterval, 10),
    		},
    		config.KV{
    			Key:   target.NATSQueueDir,
    			Value: cfg.QueueDir,
    		},
    		config.KV{
    			Key:   target.NATSQueueLimit,
    			Value: strconv.Itoa(int(cfg.QueueLimit)),
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 19 04:37:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. internal/rest/client.go

    			req.GetBody = func() (io.ReadCloser, error) { return http.NoBody, nil }
    		}
    	}
    
    	if c.auth != nil {
    		req.Header.Set("Authorization", "Bearer "+c.auth())
    	}
    	req.Header.Set("X-Minio-Time", strconv.FormatInt(time.Now().UnixNano(), 10))
    
    	if tc, ok := ctx.Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt); ok {
    		req.Header.Set(xhttp.AmzRequestID, tc.AmzReqID)
    	}
    
    	return req, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  5. internal/s3select/sql/value.go

    	switch x := v.value.(type) {
    	case nil, Missing:
    		return ""
    	case bool:
    		if x {
    			return "true"
    		}
    		return "false"
    	case string:
    		return x
    	case int64:
    		return strconv.FormatInt(x, 10)
    	case float64:
    		return strconv.FormatFloat(x, 'g', -1, 64)
    	case time.Time:
    		return FormatSQLTimestamp(x)
    	case []byte:
    		return string(x)
    	case []Value:
    		b, _ := json.Marshal(x)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
  6. cmd/object-handlers.go

    		// Preserving the compression metadata.
    		compressMetadata[ReservedMetadataPrefix+"compression"] = compressionAlgorithmV2
    		compressMetadata[ReservedMetadataPrefix+"actual-size"] = strconv.FormatInt(actualSize, 10)
    
    		reader = etag.NewReader(ctx, reader, nil, nil)
    		wantEncryption := crypto.Requested(r.Header)
    		s2c, cb := newS2CompressReader(reader, actualSize, wantEncryption)
    		dstOpts.IndexCB = cb
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  7. 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]]
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    		if v := opts.UserDefined[ReservedMetadataPrefix+"Actual-Object-Size"]; v != "" {
    			fi.Metadata[ReservedMetadataPrefix+"actual-size"] = v
    		}
    	} 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.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    		wantSize  int64
    		wantName  string
    		wantErr   error
    	}{{
    		inputHdrs: nil,
    		wantErr:   nil,
    	}, {
    		inputHdrs: map[string]string{
    			paxGNUSparseNumBlocks: strconv.FormatInt(math.MaxInt64, 10),
    			paxGNUSparseMap:       "0,1,2,3",
    		},
    		wantErr: ErrHeader,
    	}, {
    		inputHdrs: map[string]string{
    			paxGNUSparseNumBlocks: "4\x00",
    			paxGNUSparseMap:       "0,1,2,3",
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K 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",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top