Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 742 for Sprintf (0.19 sec)

  1. cmd/metrics-v3-handler.go

    }
    
    func (md metricDisplay) String() string {
    	return fmt.Sprintf("Name: %s\nType: %s\nHelp: %s\nLabels: {%s}\n", md.Name, md.Type, md.Help, strings.Join(md.Labels, ","))
    }
    
    func (md metricDisplay) TableRow() string {
    	labels := strings.Join(md.Labels, ",")
    	if labels == "" {
    		labels = ""
    	} else {
    		labels = "`" + labels + "`"
    	}
    	return fmt.Sprintf("| `%s` | `%s` | %s | %s |\n", md.Name, md.Type, md.Help, labels)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. internal/hash/errors.go

    type SizeTooSmall struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeTooSmall) Error() string {
    	return fmt.Sprintf("Size small: got %d, want %d", e.Got, e.Want)
    }
    
    // SizeTooLarge reader size too large
    type SizeTooLarge struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeTooLarge) Error() string {
    	return fmt.Sprintf("Size large: got %d, want %d", e.Got, e.Want)
    }
    
    // SizeMismatch error size mismatch
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon May 15 21:08:54 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  3. internal/logger/utils.go

    	"fmt"
    	"net/http"
    	"regexp"
    	"runtime"
    
    	"github.com/minio/minio/internal/color"
    )
    
    var ansiRE = regexp.MustCompile("(\x1b[^m]*m)")
    
    // Print ANSI Control escape
    func ansiEscape(format string, args ...interface{}) {
    	Esc := "\x1b"
    	fmt.Printf("%s%s", Esc, fmt.Sprintf(format, args...))
    }
    
    func ansiMoveRight(n int) {
    	if runtime.GOOS == "windows" {
    		return
    	}
    	if color.IsTerminal() {
    		ansiEscape("[%dC", n)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 04 23:10:08 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  4. docs/debugging/reorder-disks/main.go

    	for _, disk := range localDisks {
    		expectedDisksName[fmt.Sprintf("%d-%d", disk.index/setSize, disk.index%setSize)] = disk.path
    		format, err := getFormatJSON(disk.path)
    		if err != nil {
    			log.Printf("Unable to read format.json from `%s`, error: %v\n", disk.path, err)
    			continue
    		}
    		foundDiskLoc, err := getDiskLocation(format)
    		if err != nil {
    			log.Printf("Unable to get disk location of `%s`, error: %v\n", disk.path, err)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. istioctl/pkg/precheck/precheck.go

    See %s for more information about causes and resolutions.`, url.ConfigAnalysis)
    					return errors.New(e)
    				}
    			}
    			return nil
    		},
    	}
    	cmd.PersistentFlags().BoolVar(&skipControlPlane, "skip-controlplane", false, "skip checking the control plane")
    	cmd.PersistentFlags().Var(&outputThreshold, "output-threshold",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. internal/config/dns/etcd_dns.go

    // List - Retrieves list of DNS entries for the domain.
    func (c *CoreDNS) List() (map[string][]SrvRecord, error) {
    	srvRecords := map[string][]SrvRecord{}
    	for _, domainName := range c.domainNames {
    		key := msg.Path(fmt.Sprintf("%s.", domainName), c.prefixPath)
    		records, err := c.list(key+etcdPathSeparator, true)
    		if err != nil {
    			return srvRecords, err
    		}
    		for _, record := range records {
    			if record.Key == "" {
    				continue
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  7. internal/pubsub/pubsub_test.go

    	}
    	val := maskString("hello")
    	ps.Publish(val)
    
    	msg1 := <-ch1
    	msg2 := <-ch2
    	if msg1 != val && msg2 != val {
    		t.Fatalf(fmt.Sprintf("expected both subscribers to have%s , found %s and  %s", val, msg1, msg2))
    	}
    
    	select {
    	case msg := <-ch3:
    		t.Fatalf(fmt.Sprintf("unexpected msg, f got %s", msg))
    	default:
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  8. docs/sts/web-identity.go

    		Endpoint: oauth2.Endpoint{
    			AuthURL:  ddoc.AuthEndpoint,
    			TokenURL: ddoc.TokenEndpoint,
    		},
    		RedirectURL: fmt.Sprintf("http://10.0.0.67:%d/oauth2/callback", port),
    		Scopes:      scopes,
    	}
    
    	state := randomState()
    
    	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
    		log.Printf("%s %s", r.Method, r.RequestURI)
    		if r.RequestURI != "/" {
    			http.NotFound(w, r)
    			return
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  9. internal/s3select/sql/utils.go

    	if i.Unquoted != nil {
    		return *i.Unquoted
    	}
    	return string(*i.Quoted)
    }
    
    func (o *ObjectKey) String() string {
    	if o.Lit != nil {
    		return fmt.Sprintf("['%s']", string(*o.Lit))
    	}
    	return fmt.Sprintf(".%s", o.ID.String())
    }
    
    func (o *ObjectKey) keyString() string {
    	if o.Lit != nil {
    		return string(*o.Lit)
    	}
    	return o.ID.String()
    }
    
    // getLastKeypathComponent checks if the given expression is a path
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Nov 10 16:12:50 GMT 2021
    - 3.6K bytes
    - Viewed (0)
  10. cmd/update.go

    			Code:       AdminUpdateUnexpectedFailure,
    			Message:    fmt.Sprintf("No response from server to download URL %s", u),
    			StatusCode: http.StatusInternalServerError,
    		}
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	if resp.StatusCode != http.StatusOK {
    		return content, AdminError{
    			Code:       AdminUpdateUnexpectedFailure,
    			Message:    fmt.Sprintf("Error downloading URL %s. Response: %v", u, resp.Status),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top