Documentation ¶
Index ¶
- func CheckContextAndAppendStepLogFile(ctx context.Context, data []byte) (bool, error)
- func CheckContextAndGetStepLogFile(ctx context.Context) (*os.File, bool, error)
- func CmdPipeline(cmds ...*exec.Cmd) (pipeLineOutput, collectedStandardError []byte, pipeLineError error)
- type ExecCmd
- func (ec *ExecCmd) CommandString() string
- func (ec *ExecCmd) Marshal() ([]byte, error)
- func (ec *ExecCmd) Run() error
- func (ec *ExecCmd) SetStderrMultiWriter(writers ...io.Writer) *ExecCmd
- func (ec *ExecCmd) SetStdoutMultiWriter(writers ...io.Writer) *ExecCmd
- func (ec *ExecCmd) StdErr() string
- func (ec *ExecCmd) StdOut() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContextAndAppendStepLogFile ¶
CheckContextAndAppendStepLogFile checks whether the context contains instance data and append data to log file.
func CheckContextAndGetStepLogFile ¶
CheckContextAndGetStepLogFile checks whether the context contains instance data. Caution: when check is true, you should close the file descriptor.
Types ¶
type ExecCmd ¶
func RunCmdWithContext ¶
func (*ExecCmd) CommandString ¶
String returns a human-readable description of command
func (*ExecCmd) SetStderrMultiWriter ¶
SetStderrMultiWriter with multi stderr writer
func (*ExecCmd) SetStdoutMultiWriter ¶
SetStdoutMultiWriter with multi stdout writer
Click to show internal directories.
Click to hide internal directories.