Documentation
¶
Index ¶
- func ExecCmd(le *logrus.Entry, cmd *exec.Cmd) error
- func InterpretCmdErr(err error, stderrBuf bytes.Buffer) error
- func NewCmd(ctx context.Context, proc string, args ...string) *exec.Cmd
- func SetCmdLogger(le *logrus.Entry, cmd *exec.Cmd, buf *bytes.Buffer)
- func StartAndWait(ctx context.Context, le *logrus.Entry, ecmd *exec.Cmd) error
- func StartCmd(le *logrus.Entry, cmd *exec.Cmd) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterpretCmdErr ¶ added in v1.28.1
InterpretCmdErr interprets command errors and extracts meaningful error messages
func SetCmdLogger ¶ added in v1.28.1
SetCmdLogger configures logging for the command
func StartAndWait ¶
StartAndWait runs the given process and waits for ctx or process to complete.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.