Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for Itoa (0.15 sec)

  1. cmd/storage-rest-server.go

    	_, err = s.getStorage().ReadFile(r.Context(), volume, filePath, int64(offset), buf, verifier)
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    	w.Header().Set(xhttp.ContentLength, strconv.Itoa(len(buf)))
    	w.Write(buf)
    }
    
    // ReadFileStreamHandler - read section of a file.
    func (s *storageRESTServer) ReadFileStreamHandler(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		return
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  2. cmd/auth-handler.go

    	conditions["object-lock-retain-until-date"] = []string{retDate.UTC().Format(time.RFC3339)}
    	if retDays > 0 {
    		conditions["object-lock-remaining-retention-days"] = []string{strconv.Itoa(retDays)}
    	}
    	if retMode == objectlock.RetGovernance && byPassSet {
    		byPassSet = globalIAMSys.IsAllowed(policy.Args{
    			AccountName:     cred.AccessKey,
    			Groups:          cred.Groups,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    		return err
    	}
    
    	c.SetAppInfo("minio-"+batchJobPrefix, r.APIVersion+" "+job.ID)
    	core := &miniogo.Core{Client: c}
    
    	workerSize, err := strconv.Atoi(env.Get("_MINIO_BATCH_REPLICATION_WORKERS", strconv.Itoa(runtime.GOMAXPROCS(0)/2)))
    	if err != nil {
    		return err
    	}
    
    	wk, err := workers.New(workerSize)
    	if err != nil {
    		// invalid worker size.
    		return err
    	}
    
    	retryAttempts := ri.RetryAttempts
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  4. schema/field.go

    				field.ReflectValueOf(ctx, value).SetString(utils.ToString(data))
    			case float64, float32:
    				field.ReflectValueOf(ctx, value).SetString(fmt.Sprintf("%."+strconv.Itoa(field.Precision)+"f", data))
    			default:
    				return fallbackSetter(ctx, value, v, field.Set)
    			}
    			return err
    		}
    	default:
    		fieldValue := reflect.New(field.FieldType)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  5. cmd/xl-storage.go

    				res["free-versions"] = strconv.Itoa(len(fivs.FreeVersions))
    			}
    
    			if sizeS.versions > 0 {
    				res["versions"] = strconv.FormatUint(sizeS.versions, 10)
    			}
    			res["size"] = strconv.FormatInt(sizeS.totalSize, 10)
    			for name, tier := range sizeS.tiers {
    				res["tier-size-"+name] = strconv.FormatUint(tier.TotalSize, 10)
    				res["tier-versions-"+name] = strconv.Itoa(tier.NumVersions)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  6. misc/ios/go_ios_exec.go

    		return fmt.Errorf("runSimulator: couldn't find processID from `simctl launch`: %v (%q)", err, out)
    	}
    	_, err = runLLDB("ios-simulator", appdir, strconv.Itoa(processID), args)
    	return err
    }
    
    func runDevice(appdir, bundleID string, args []string) error {
    	attempt := 0
    	for {
    		// The device app path reported by the device might be stale, so retry
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  7. cmd/metacache-set.go

    }
    
    // objectPath returns the object path of the cache.
    func (o *listPathOptions) objectPath(block int) string {
    	return pathJoin(metacachePrefixForID(o.Bucket, o.ID), "block-"+strconv.Itoa(block)+".s2")
    }
    
    func (o *listPathOptions) SetFilter() {
    	switch {
    	case metacacheSharePrefix:
    		return
    	case o.Prefix == o.BaseDir:
    		// No additional prefix
    		return
    	}
    	// Remove basedir.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  8. cmd/object-api-utils_test.go

    					"content-type": "application/octet-stream",
    					"etag":         "b3ff3ef3789147152fbfbc50efba4bfd-2",
    				},
    			},
    			result: false,
    		},
    	}
    	for i, test := range testCases {
    		t.Run(strconv.Itoa(i), func(t *testing.T) {
    			got := test.objInfo.IsCompressed()
    			if got != test.result {
    				t.Errorf("IsCompressed: Expected %v but received %v",
    					test.result, got)
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  9. cmd/object-handlers.go

    	var update bool
    	if cachedResult {
    		rc := &cache.CondCheck{}
    		h := r.Header.Clone()
    		if opts.PartNumber > 0 {
    			h.Set(xhttp.PartNumber, strconv.Itoa(opts.PartNumber))
    		}
    		rc.Init(bucket, object, h)
    
    		ci, err := globalCacheConfig.Get(rc)
    		if ci != nil {
    			tgs, ok := ci.Metadata[xhttp.AmzObjectTagging]
    			if ok {
    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)
  10. cmd/api-response.go

    		statusCode = http.StatusInternalServerError
    	}
    	setCommonHeaders(w)
    	if mType != mimeNone {
    		w.Header().Set(xhttp.ContentType, string(mType))
    	}
    	w.Header().Set(xhttp.ContentLength, strconv.Itoa(len(response)))
    	w.WriteHeader(statusCode)
    	if response != nil {
    		w.Write(response)
    	}
    }
    
    // mimeType represents various MIME type used API responses.
    type mimeType string
    
    const (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
Back to top