Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for dumb (0.14 sec)

  1. internal/color/color.go

    package color
    
    import (
    	"fmt"
    
    	"github.com/fatih/color"
    )
    
    // global colors.
    var (
    	// Check if we stderr, stdout are dumb terminals, we do not apply
    	// ansi coloring on dumb terminals.
    	IsTerminal = func() bool {
    		return !color.NoColor
    	}
    
    	Bold = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. cmd/api-response.go

    	listPartsResponse.Key = s3EncodeName(partsInfo.Object, encodingType)
    	listPartsResponse.UploadID = partsInfo.UploadID
    	listPartsResponse.StorageClass = globalMinioDefaultStorageClass
    
    	// Dumb values not meaningful
    	listPartsResponse.Initiator = Initiator{
    		ID:          globalMinioDefaultOwnerID,
    		DisplayName: globalMinioDefaultOwnerID,
    	}
    	listPartsResponse.Owner = Owner{
    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)
  3. cmd/common-main.go

    )
    
    func init() {
    	if !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) {
    		color.TurnOff()
    	}
    	if env.Get("NO_COLOR", "") != "" || env.Get("TERM", "") == "dumb" {
    		color.TurnOff()
    	}
    
    	if runtime.GOOS == "windows" {
    		if mousetrap.StartedByExplorer() {
    			fmt.Printf("Don't double-click %s\n", os.Args[0])
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  4. internal/rest/client.go

    		r.errorStatusOnce.Do(func() {
    			atomic.AddUint64(&globalStats.errs, 1)
    		})
    	}
    }
    
    // dumpHTTP - dump HTTP request and response.
    func (c *Client) dumpHTTP(req *http.Request, resp *http.Response) {
    	// Starts http dump.
    	_, err := fmt.Fprintln(c.TraceOutput, "---------START-HTTP---------")
    	if err != nil {
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  5. docs/debugging/inspect/main.go

    	}
    }
    
    func generateKeys() {
    	privatekey, err := rsa.GenerateKey(crand.Reader, 2048)
    	if err != nil {
    		fmt.Printf("error generating key: %s n", err)
    		os.Exit(1)
    	}
    
    	// dump private key to file
    	privateKeyBytes := x509.MarshalPKCS1PrivateKey(privatekey)
    	privateKeyBlock := &pem.Block{
    		Type:  "RSA PRIVATE KEY",
    		Bytes: privateKeyBytes,
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  6. internal/grid/grid_test.go

    	go func() {
    		select {
    		case <-cc:
    			return
    		case <-c:
    			buf := make([]byte, 1<<20)
    			stacklen := runtime.Stack(buf, true)
    			fmt.Printf("=== Timeout, assuming deadlock ===\n*** goroutine dump...\n%s\n*** end\n", string(buf[:stacklen]))
    			os.Exit(2)
    		}
    	}()
    	return func() {
    		close(cc)
    	}
    }
    
    func assertNoActive(t *testing.T, c *Connection) {
    	t.Helper()
    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)
  7. cmd/utils.go

    	// Return extension of profile
    	Extension() string
    }
    
    // Global profiler to be used by service go-routine.
    var (
    	globalProfiler   map[string]minioProfiler
    	globalProfilerMu sync.Mutex
    )
    
    // dump the request into a string in JSON format.
    func dumpRequest(r *http.Request) string {
    	header := r.Header.Clone()
    	header.Set("Host", r.Host)
    	// Replace all '%' to '%%' so that printer format parser
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  8. cmd/xl-storage-format_test.go

    					fi.VersionID = ids[rng.Intn(size)]
    					// Update...
    					err = xl.UpdateObjectVersion(fi)
    					if err != nil {
    						b.Fatal(err)
    					}
    					// Save...
    					dump, err = xl.AppendTo(dump[:0])
    					if err != nil {
    						b.Fatal(err)
    					}
    				}
    			})
    			b.Run("DeleteVersion", func(b *testing.B) {
    				b.SetBytes(int64(size))
    				b.ResetTimer()
    				b.ReportAllocs()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
Back to top