- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for StreamWithContext (0.28 sec)
-
staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator_test.go
Stdin: bytes.NewReader(randomData), Stdout: &stdout, } errorChan := make(chan error) go func() { // Start the streaming on the WebSocket "exec" client. errorChan <- exec.StreamWithContext(context.Background(), *options) }() select { case <-time.After(wait.ForeverTestTimeout): t.Fatalf("expect stream to be closed after connection is closed.") case err := <-errorChan: if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 23:21:55 UTC 2024 - 36.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator.go
// Start the SPDY client with connected streams. Output from the WebSocket server // streams will be forwarded into the SPDY client. Report SPDY execution errors // through the websocket error stream. err = spdyExecutor.StreamWithContext(req.Context(), opts) if err != nil { //nolint:errcheck // Ignore writeStatus returned error if statusErr, ok := err.(*apierrors.StatusError); ok { websocketStreams.writeStatus(statusErr)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 23:21:55 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/client/tests/remotecommand_test.go
if err != nil { t.Fatalf("%s: unexpected error: %v", name, err) } err = e.StreamWithContext(context.Background(), remoteclient.StreamOptions{ Stdin: streamIn, Stdout: streamOut, Stderr: streamErr, Tty: testCase.Tty, }) hasErr := err != nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 06:08:18 UTC 2023 - 10.2K bytes - Viewed (0) -
pkg/kube/client.go
} exec, err := remotecommand.NewSPDYExecutorForTransports(wrapper, upgrader, "POST", req.URL()) if err != nil { return "", "", err } var stdoutBuf, stderrBuf bytes.Buffer err = exec.StreamWithContext(context.Background(), remotecommand.StreamOptions{ Stdin: nil, Stdout: &stdoutBuf, Stderr: &stderrBuf, Tty: false, }) stdout = stdoutBuf.String() stderr = stderrBuf.String()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 14:44:17 UTC 2024 - 39K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.26.md
- Added a method `StreamWithContext` to `remotecommand.Executor` to support cancelable SPDY executor stream. ([#103177](https://github.com/kubernetes/kubernetes/pull/103177), [@arkbriar](https://github.com/arkbriar))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 16:24:51 UTC 2024 - 425.7K bytes - Viewed (0)