Documentation
¶
Overview ¶
Package mocks contains mocks for IManagerHelper type
Index ¶
- type IManagerHelper
- func (_m *IManagerHelper) ExecCommandWithOutput(_a0 log.T, cmd string, workingDir string, outputRoot string, stdOut string, ...) (int, updateconstants.UpdateScriptExitCode, *bytes.Buffer, *bytes.Buffer, error)
- func (_m *IManagerHelper) GetExitCode(err error) int
- func (_m *IManagerHelper) IsCommandAvailable(cmd string) bool
- func (_m *IManagerHelper) IsExitCodeError(err error) bool
- func (_m *IManagerHelper) IsTimeoutError(err error) bool
- func (_m *IManagerHelper) RunCommand(cmd string, args ...string) (string, error)
- func (_m *IManagerHelper) RunCommandWithCustomTimeout(timeout time.Duration, cmd string, args ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IManagerHelper ¶
IManagerHelper is an autogenerated mock type for the IManagerHelper type
func (*IManagerHelper) ExecCommandWithOutput ¶
func (_m *IManagerHelper) ExecCommandWithOutput(_a0 log.T, cmd string, workingDir string, outputRoot string, stdOut string, stdErr string) (int, updateconstants.UpdateScriptExitCode, *bytes.Buffer, *bytes.Buffer, error)
ExecCommandWithOutput provides a mock function with given fields: _a0, cmd, workingDir, outputRoot, stdOut, stdErr
func (*IManagerHelper) GetExitCode ¶
func (_m *IManagerHelper) GetExitCode(err error) int
GetExitCode provides a mock function with given fields: err
func (*IManagerHelper) IsCommandAvailable ¶
func (_m *IManagerHelper) IsCommandAvailable(cmd string) bool
IsCommandAvailable provides a mock function with given fields: cmd
func (*IManagerHelper) IsExitCodeError ¶
func (_m *IManagerHelper) IsExitCodeError(err error) bool
IsExitCodeError provides a mock function with given fields: err
func (*IManagerHelper) IsTimeoutError ¶
func (_m *IManagerHelper) IsTimeoutError(err error) bool
IsTimeoutError provides a mock function with given fields: err
func (*IManagerHelper) RunCommand ¶
func (_m *IManagerHelper) RunCommand(cmd string, args ...string) (string, error)
RunCommand provides a mock function with given fields: cmd, args
func (*IManagerHelper) RunCommandWithCustomTimeout ¶
func (_m *IManagerHelper) RunCommandWithCustomTimeout(timeout time.Duration, cmd string, args ...string) (string, error)
RunCommandWithCustomTimeout provides a mock function with given fields: timeout, cmd, args