Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for isTerminal (0.18 sec)

  1. 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)
  2. subprojects/core/src/main/java/org/gradle/process/internal/DefaultExecHandle.java

            } finally {
                lock.unlock();
            }
    
            ExecResultImpl newResult = new ExecResultImpl(exitValue, execExceptionFor(failureCause, currentState), displayName);
            if (!currentState.isTerminal() && newState != ExecHandleState.DETACHED) {
                try {
                    broadcast.getSource().executionFinished(this, newResult);
                } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. pkg/api/v1/pod/util_test.go

    			expected: false,
    		},
    	}
    
    	for i, test := range tests {
    		pod := newPod(now, true, 0)
    		pod.Status.Phase = test.podPhase
    		isTerminal := IsPodTerminal(pod)
    		if isTerminal != test.expected {
    			t.Errorf("[tc #%d] expected terminal pod: %t, got: %t", i, test.expected, isTerminal)
    		}
    	}
    }
    
    func TestGetContainerStatus(t *testing.T) {
    	type ExpectedStruct struct {
    		status v1.ContainerStatus
    		exists bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 32.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. istioctl/pkg/analyze/analyze.go

    	var readers []local.ReaderSource
    	for _, f := range args {
    		var r *os.File
    
    		// Handle "-" as stdin as a special case.
    		if f == "-" {
    			if isatty.IsTerminal(os.Stdin.Fd()) && !isJSONorYAMLOutputFormat() {
    				fmt.Fprint(cmd.OutOrStdout(), "Reading from stdin:\n")
    			}
    			r = os.Stdin
    			readers = append(readers, local.ReaderSource{Name: f, Reader: r})
    			continue
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 17K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/commands.go

    // the screen.
    func awayFromTTY(format string) PostProcessor {
    	return func(input io.Reader, output io.Writer, ui plugin.UI) error {
    		if output == os.Stdout && (ui.IsTerminal() || interactiveMode) {
    			tempFile, err := newTempFile("", "profile", "."+format)
    			if err != nil {
    				return err
    			}
    			ui.PrintErr("Generating report in ", tempFile.Name())
    			output = tempFile
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. 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)
  10. pkg/kubelet/pod_workers.go

    			continue
    		}
    
    		podUID, podRef := podUIDAndRefForUpdate(update.Options)
    
    		klog.V(4).InfoS("Processing pod event", "pod", podRef, "podUID", podUID, "updateType", update.WorkType)
    		var isTerminal bool
    		err := func() error {
    			// The worker is responsible for ensuring the sync method sees the appropriate
    			// status updates on resyncs (the result of the last sync), transitions to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
Back to top