- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for SetStdout (0.13 sec)
-
pkg/probe/exec/exec.go
// errors if any. func (pr execProber) Probe(e exec.Cmd) (probe.Result, string, error) { var dataBuffer bytes.Buffer writer := ioutils.LimitWriter(&dataBuffer, maxReadLength) e.SetStderr(writer) e.SetStdout(writer) err := e.Start() if err == nil { err = e.Wait() } data := dataBuffer.Bytes() klog.V(4).Infof("Exec probe response: %q", string(data)) if err != nil { exit, ok := err.(exec.ExitError)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/probe/exec/exec_test.go
return f.out, f.err } func (f *FakeCmd) Output() ([]byte, error) { return f.stdout, f.err } func (f *FakeCmd) SetDir(dir string) {} func (f *FakeCmd) SetStdin(in io.Reader) {} func (f *FakeCmd) SetStdout(out io.Writer) { f.writer = out } func (f *FakeCmd) SetStderr(out io.Writer) { f.writer = out } func (f *FakeCmd) SetEnv(env []string) {} func (f *FakeCmd) Stop() {}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/AbstractLongRunningOperation.java
return getThis(); } @Override public T setStandardOutput(OutputStream outputStream) { operationParamsBuilder.setStdout(outputStream); return getThis(); } @Override public T setStandardError(OutputStream outputStream) { operationParamsBuilder.setStderr(outputStream); return getThis(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 6.8K bytes - Viewed (0) -
pkg/util/iptables/monitor_test.go
func (mfc *monitorFakeCmd) Output() ([]byte, error) { panic("should not be reached") } func (mfc *monitorFakeCmd) SetDir(dir string) { panic("should not be reached") } func (mfc *monitorFakeCmd) SetStdout(out io.Writer) { panic("should not be reached") } func (mfc *monitorFakeCmd) SetStderr(out io.Writer) { panic("should not be reached") } func (mfc *monitorFakeCmd) SetEnv(env []string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 9.3K bytes - Viewed (0) -
pkg/kubelet/prober/prober.go
} func (eic *execInContainer) SetDir(dir string) { // unimplemented } func (eic *execInContainer) SetStdin(in io.Reader) { // unimplemented } func (eic *execInContainer) SetStdout(out io.Writer) { eic.writer = out } func (eic *execInContainer) SetStderr(out io.Writer) { eic.writer = out } func (eic *execInContainer) SetEnv(env []string) { // unimplemented }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 10:50:13 UTC 2024 - 8.7K bytes - Viewed (0) -
pkg/kubelet/prober/prober_test.go
exec := prober.newExecInContainer(ctx, container, containerID, cmd, 0) var dataBuffer bytes.Buffer writer := ioutils.LimitWriter(&dataBuffer, int64(limit)) exec.SetStderr(writer) exec.SetStdout(writer) err := exec.Start() if err == nil { err = exec.Wait() } actualOutput := dataBuffer.Bytes() if e, a := containerID, runner.ContainerID; e != a {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:17:35 UTC 2023 - 9.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/parameters/ConsumerOperationParameters.java
return this; } public Builder setParameters(ConnectionParameters parameters) { this.parameters = parameters; return this; } public Builder setStdout(OutputStream stdout) { this.stdout = stdout; return this; } public Builder setStderr(OutputStream stderr) { this.stderr = stderr; return this;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 19 19:46:37 UTC 2023 - 16.3K bytes - Viewed (0) -
pkg/util/iptables/iptables.go
args := []string{"-t", string(table)} klog.V(4).InfoS("Running", "command", iptablesSaveCmd, "arguments", args) cmd := runner.exec.Command(iptablesSaveCmd, args...) cmd.SetStdout(buffer) stderrBuffer := bytes.NewBuffer(nil) cmd.SetStderr(stderrBuffer) err := cmd.Run() if err != nil { stderrBuffer.WriteTo(buffer) // ignore error, since we need to return the original error }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 28.6K bytes - Viewed (0) -
.github/workflows/CheckBadMerge.groovy
return getStdout("git branch -r --contains $commit") .readLines() .collect { it.replace("*", "") } // remove the * from the current branch, e.g. * master -> master .collect { it.trim() } .grep { !it.isEmpty() } } static List<String> parentCommitsOf(String commit) { return getStdout("git show --format=%P --no-patch $commit")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 19 10:35:44 UTC 2023 - 6.5K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/util/internal/RedirectStdOutAndErr.java
} public PrintStream getStdErrPrintStream() { return stdErrPrintStream; } public String getStdErr() { return stderrContent.toString(); } public String getStdOut() { return stdoutContent.toString(); } private static class RedirectingOutputStream extends ProxyOutputStream { RedirectingOutputStream(OutputStream out) { super(out); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.5K bytes - Viewed (0)