Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for Itoa (0.12 sec)

  1. tests/helper_test.go

    	for i := 0; i < config.Pets; i++ {
    		user.Pets = append(user.Pets, &Pet{Name: name + "_pet_" + strconv.Itoa(i+1)})
    	}
    
    	for i := 0; i < config.Toys; i++ {
    		user.Toys = append(user.Toys, Toy{Name: name + "_toy_" + strconv.Itoa(i+1)})
    	}
    
    	for i := 0; i < config.Tools; i++ {
    		user.Tools = append(user.Tools, Tools{Name: name + "_tool_" + strconv.Itoa(i+1)})
    	}
    
    	if config.Company {
    		user.Company = Company{Name: "company-" + name}
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 8K bytes
    - Viewed (0)
  2. cmd/healthcheck-handler.go

    	}
    	result := objLayer.Health(ctx, opts)
    	w.Header().Set(xhttp.MinIOWriteQuorum, strconv.Itoa(result.WriteQuorum))
    	w.Header().Set(xhttp.MinIOStorageClassDefaults, strconv.FormatBool(result.UsingDefaults))
    	// return how many drives are being healed if any
    	if result.HealingDrives > 0 {
    		w.Header().Set(xhttp.MinIOHealingDrives, strconv.Itoa(result.HealingDrives))
    	}
    	if !result.Healthy {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 03 21:13:20 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. internal/bucket/replication/replication.go

    			targetMap[r.Destination.Bucket] = struct{}{}
    		}
    		if err := r.Validate(bucket, sameTarget); err != nil {
    			return err
    		}
    		if _, ok := priorityMap[strconv.Itoa(r.Priority)]; ok {
    			return errReplicationUniquePriority
    		}
    		priorityMap[strconv.Itoa(r.Priority)] = struct{}{}
    
    		if r.Destination.LegacyArn() {
    			legacyArn = true
    		}
    		if c.RoleArn == "" && !r.Destination.TargetArn() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. cmd/metrics-v3-cluster-erasure-set.go

    	m.Set(erasureSetOverallWriteQuorum, float64(result.WriteQuorum))
    	m.Set(erasureSetOverallHealth, b2f(result.Healthy))
    
    	for _, h := range result.ESHealth {
    		poolLV := strconv.Itoa(h.PoolID)
    		setLV := strconv.Itoa(h.SetID)
    		m.Set(erasureSetReadQuorum, float64(h.ReadQuorum),
    			poolIDL, poolLV, setIDL, setLV)
    		m.Set(erasureSetWriteQuorum, float64(h.WriteQuorum),
    			poolIDL, poolLV, setIDL, setLV)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  5. cmd/benchmark-utils_test.go

    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		// insert the object.
    		objInfo, err := obj.PutObject(context.Background(), bucket, "object"+strconv.Itoa(i),
    			mustGetPutObjReader(b, bytes.NewReader(textData), int64(len(textData)), md5hex, sha256hex), ObjectOptions{})
    		if err != nil {
    			b.Fatal(err)
    		}
    		if objInfo.ETag != md5hex {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  6. internal/http/check_port_test.go

    		{"127.0.0.1", port, fmt.Errorf("listen tcp 127.0.0.1:%v: bind: address already in use", port)},
    	}
    
    	for _, testCase := range testCases {
    		err := CheckPortAvailability(testCase.host, strconv.Itoa(testCase.port), TCPOptions{})
    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    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)
  7. cmd/object_api_suite_test.go

    	}
    	for i := 0; i < 10; i++ {
    		randomPerm := rand.Perm(100)
    		randomString := ""
    		for _, num := range randomPerm {
    			randomString += strconv.Itoa(num)
    		}
    
    		expectedETaghex := getMD5Hash([]byte(randomString))
    
    		key := "obj" + strconv.Itoa(i)
    		objects[key] = []byte(randomString)
    		metadata := make(map[string]string)
    		metadata["etag"] = expectedETaghex
    		var objInfo ObjectInfo
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  8. buildscripts/gen-ldflags.go

    package main
    
    import (
    	"fmt"
    	"os"
    	"os/exec"
    	"strconv"
    	"strings"
    	"time"
    )
    
    func genLDFlags(version string) string {
    	releaseTag, date := releaseTag(version)
    	copyrightYear := strconv.Itoa(date.Year())
    	ldflagsStr := "-s -w"
    	ldflagsStr += " -X github.com/minio/minio/cmd.Version=" + version
    	ldflagsStr += " -X github.com/minio/minio/cmd.CopyrightYear=" + copyrightYear
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/clusters/clusters.go

    	fmt.Fprintln(w, "ENDPOINT\tSTATUS\tOUTLIER CHECK\tCLUSTER")
    	for _, ce := range clusterEndpoint {
    		var endpoint string
    		if ce.port != 0 {
    			endpoint = ce.address + ":" + strconv.Itoa(ce.port)
    		} else {
    			endpoint = ce.address
    		}
    		fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", endpoint, core.HealthStatus_name[int32(ce.status)], printFailedOutlierCheck(ce.failedOutlierCheck), ce.cluster)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 5.8K bytes
    - Viewed (0)
  10. cmd/http-tracer.go

    		}
    
    		// Calculate input body size with headers
    		reqHeaders := r.Header.Clone()
    		reqHeaders.Set("Host", r.Host)
    		if len(r.TransferEncoding) == 0 {
    			reqHeaders.Set("Content-Length", strconv.Itoa(int(r.ContentLength)))
    		} else {
    			reqHeaders.Set("Transfer-Encoding", strings.Join(r.TransferEncoding, ","))
    		}
    		inputBytes := reqRecorder.Size()
    		for k, v := range reqHeaders {
    			inputBytes += len(k) + len(v)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
Back to top