proxy.golang.org : github.com/chanwit/go-dexec
Package dexec provides an interface similar to os/exec to run external commands inside containers. Please read documentation carefully about semantic differences between os/exec and dexec. This utility is intended to provide an execution environment without changing the existing code a lot to execute a command on a remote machine (or a pool of machines) running Docker engine or locally to limit resource usage and have extra security. The package needs the following dependencies to work: - You may receive empty stdout/stderr from commands if the executed command does not end with a trailing new line or has a different flushing behavior. - StdinPipe/StdoutPipe/StderrPipe should be used with goroutines (one that executes Cmd.Wait() and another one that writes to/reads from the pipe. Otherwise, the code may hang 10% of the time due to some timing issue.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/chanwit/go-dexec
License: Apache-2.0
Latest release: almost 9 years ago
First release: almost 9 years ago
Namespace: github.com/chanwit
Last synced: 1 day ago