Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isTerminal (0.13 sec)

  1. internal/color/color.go

    	// ansi coloring on dumb terminals.
    	IsTerminal = func() bool {
    		return !color.NoColor
    	}
    
    	Bold = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.Bold).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	RedBold = func() func(a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed, color.Bold).SprintFunc()
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. cmd/server-startup-msg.go

    	apiEndpointStr := strings.TrimSpace(strings.Join(apiEndpoints, "  "))
    	// Colorize the message and print.
    	logger.Info(color.Blue("API: ") + color.Bold(fmt.Sprintf("%s ", apiEndpointStr)))
    	if color.IsTerminal() && (!globalServerCtxt.Anonymous && !globalServerCtxt.JSON && globalAPIConfig.permitRootAccess()) {
    		logger.Info(color.Blue("   RootUser: ") + color.Bold("%s ", cred.AccessKey))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go

    	// For line-based UI, PrintErr writes to standard error.
    	PrintErr(...interface{})
    
    	// IsTerminal returns whether the UI is known to be tied to an
    	// interactive terminal (as opposed to being redirected to a file).
    	IsTerminal() bool
    
    	// WantBrowser indicates whether a browser should be opened with the -http option.
    	WantBrowser() bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/driver/driver.go

    	// For line-based UI, PrintErr writes to standard error.
    	PrintErr(...interface{})
    
    	// IsTerminal returns whether the UI is known to be tied to an
    	// interactive terminal (as opposed to being redirected to a file).
    	IsTerminal() bool
    
    	// WantBrowser indicates whether browser should be opened with the -http option.
    	WantBrowser() bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_test.go

    			pod.Annotations[kubetypes.ConfigSourceAnnotationKey] = "file"
    			pods := []*v1.Pod{pod}
    			kl.podManager.SetPods(pods)
    			isTerminal, err := kl.SyncPod(context.Background(), tt.updateType, pod, nil, &kubecontainer.PodStatus{})
    			assert.NoError(t, err)
    			if isTerminal {
    				t.Fatalf("pod should not be terminal: %#v", pod)
    			}
    			podFullName := kubecontainer.GetPodFullName(pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  6. pkg/kubelet/pod_workers_test.go

    	isTerminal, err := s.fn(ctx, updateType, pod, mirrorPod, podStatus)
    	if err != nil {
    		return false, err
    	}
    	if !isTerminal {
    		s.lock.Lock()
    		defer s.lock.Unlock()
    		isTerminal = s.terminal.Has(string(pod.UID))
    	}
    	return isTerminal, nil
    }
    
    func (s *terminalPhaseSync) SetTerminal(uid types.UID) {
    	s.lock.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  7. cmd/common-main.go

    	serverDebugLog     = env.Get("_MINIO_SERVER_DEBUG", config.EnableOff) == config.EnableOn
    	currentReleaseTime time.Time
    	orchestrated       = IsKubernetes() || IsDocker()
    )
    
    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" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet.go

    	))
    	klog.V(4).InfoS("SyncPod enter", "pod", klog.KObj(pod), "podUID", pod.UID)
    	defer func() {
    		klog.V(4).InfoS("SyncPod exit", "pod", klog.KObj(pod), "podUID", pod.UID, "isTerminal", isTerminal)
    		otelSpan.End()
    	}()
    
    	// Latency measurements for the main workflow are relative to the
    	// first time the pod was seen by kubelet.
    	var firstSeenTime time.Time
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top