Documentation
¶
Index ¶
- type CommandOutput
- func (o *CommandOutput) CheckExitSuccess(verbose bool) (err error)
- func (c *CommandOutput) GetCmdRunError() (cmdRunError *error, err error)
- func (o *CommandOutput) GetCmdRunErrorStringOrEmptyStringIfUnset() (cmdRunErrorString string)
- func (c *CommandOutput) GetFirstLineOfStdoutAsString() (firstLine string, err error)
- func (o *CommandOutput) GetReturnCode() (returnCode int, err error)
- func (c *CommandOutput) GetStderr() (stderr *[]byte, err error)
- func (o *CommandOutput) GetStderrAsString() (stderr string, err error)
- func (o *CommandOutput) GetStderrAsStringOrEmptyIfUnset() (stderr string)
- func (c *CommandOutput) GetStdout() (stdout *[]byte, err error)
- func (o *CommandOutput) GetStdoutAsBytes() (stdout []byte, err error)
- func (c *CommandOutput) GetStdoutAsFloat64() (stdout float64, err error)
- func (o *CommandOutput) GetStdoutAsLines(removeLastLineIfEmpty bool) (stdoutLines []string, err error)
- func (o *CommandOutput) GetStdoutAsString() (stdout string, err error)
- func (o *CommandOutput) IsExitSuccess() (isSuccess bool)
- func (c *CommandOutput) IsStderrEmpty() (isEmpty bool, err error)
- func (c *CommandOutput) IsStdoutAndStderrEmpty() (isEmpty bool, err error)
- func (c *CommandOutput) IsStdoutEmpty() (isEmpty bool, err error)
- func (o *CommandOutput) IsTimedOut() (IsTimedOut bool, err error)
- func (c *CommandOutput) LogStdoutAsInfo() (err error)
- func (o *CommandOutput) SetCmdRunError(err error)
- func (o *CommandOutput) SetReturnCode(returnCode int) (err error)
- func (o *CommandOutput) SetStderr(stderr []byte) (err error)
- func (o *CommandOutput) SetStderrByString(stderr string) (err error)
- func (o *CommandOutput) SetStdout(stdout []byte) (err error)
- func (o *CommandOutput) SetStdoutByString(stdout string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOutput ¶
type CommandOutput struct { ReturnCode *int Stdout *[]byte Stderr *[]byte // contains filtered or unexported fields }
func NewCommandOutput ¶
func NewCommandOutput() (c *CommandOutput)
func (*CommandOutput) CheckExitSuccess ¶
func (o *CommandOutput) CheckExitSuccess(verbose bool) (err error)
func (*CommandOutput) GetCmdRunError ¶
func (c *CommandOutput) GetCmdRunError() (cmdRunError *error, err error)
func (*CommandOutput) GetCmdRunErrorStringOrEmptyStringIfUnset ¶
func (o *CommandOutput) GetCmdRunErrorStringOrEmptyStringIfUnset() (cmdRunErrorString string)
func (*CommandOutput) GetFirstLineOfStdoutAsString ¶
func (c *CommandOutput) GetFirstLineOfStdoutAsString() (firstLine string, err error)
func (*CommandOutput) GetReturnCode ¶
func (o *CommandOutput) GetReturnCode() (returnCode int, err error)
func (*CommandOutput) GetStderr ¶
func (c *CommandOutput) GetStderr() (stderr *[]byte, err error)
func (*CommandOutput) GetStderrAsString ¶
func (o *CommandOutput) GetStderrAsString() (stderr string, err error)
func (*CommandOutput) GetStderrAsStringOrEmptyIfUnset ¶
func (o *CommandOutput) GetStderrAsStringOrEmptyIfUnset() (stderr string)
func (*CommandOutput) GetStdout ¶
func (c *CommandOutput) GetStdout() (stdout *[]byte, err error)
func (*CommandOutput) GetStdoutAsBytes ¶
func (o *CommandOutput) GetStdoutAsBytes() (stdout []byte, err error)
func (*CommandOutput) GetStdoutAsFloat64 ¶
func (c *CommandOutput) GetStdoutAsFloat64() (stdout float64, err error)
func (*CommandOutput) GetStdoutAsLines ¶
func (o *CommandOutput) GetStdoutAsLines(removeLastLineIfEmpty bool) (stdoutLines []string, err error)
func (*CommandOutput) GetStdoutAsString ¶
func (o *CommandOutput) GetStdoutAsString() (stdout string, err error)
func (*CommandOutput) IsExitSuccess ¶
func (o *CommandOutput) IsExitSuccess() (isSuccess bool)
func (*CommandOutput) IsStderrEmpty ¶
func (c *CommandOutput) IsStderrEmpty() (isEmpty bool, err error)
func (*CommandOutput) IsStdoutAndStderrEmpty ¶
func (c *CommandOutput) IsStdoutAndStderrEmpty() (isEmpty bool, err error)
func (*CommandOutput) IsStdoutEmpty ¶
func (c *CommandOutput) IsStdoutEmpty() (isEmpty bool, err error)
func (*CommandOutput) IsTimedOut ¶
func (o *CommandOutput) IsTimedOut() (IsTimedOut bool, err error)
func (*CommandOutput) LogStdoutAsInfo ¶
func (c *CommandOutput) LogStdoutAsInfo() (err error)
func (*CommandOutput) SetCmdRunError ¶
func (o *CommandOutput) SetCmdRunError(err error)
func (*CommandOutput) SetReturnCode ¶
func (o *CommandOutput) SetReturnCode(returnCode int) (err error)
func (*CommandOutput) SetStderr ¶
func (o *CommandOutput) SetStderr(stderr []byte) (err error)
func (*CommandOutput) SetStderrByString ¶
func (o *CommandOutput) SetStderrByString(stderr string) (err error)
func (*CommandOutput) SetStdout ¶
func (o *CommandOutput) SetStdout(stdout []byte) (err error)
func (*CommandOutput) SetStdoutByString ¶
func (o *CommandOutput) SetStdoutByString(stdout string) (err error)
Click to show internal directories.
Click to hide internal directories.