Documentation
¶
Overview ¶
Package updateutil contains updater specific utilities.
Index ¶
- type Mock
- func (m *Mock) CreateUpdateDownloadFolder() (folder string, err error)
- func (m *Mock) ExeCommand(log log.T, cmd string, workingDir string, updaterRoot string, stdOut string, ...) (pid int, exitCode updateconstants.UpdateScriptExitCode, err error)
- func (m *Mock) SaveUpdatePluginResult(log log.T, updaterRoot string, updateResult *updateutil.UpdatePluginResult) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
Mock stands for a mocked updateutil.
func NewMockDefault ¶
func NewMockDefault() *Mock
NewMockDefault returns an instance of Mock with default expectations set.
func (*Mock) CreateUpdateDownloadFolder ¶
CreateUpdateDownloadFolder mocks the CreateUpdateDownloadFolder function.
func (*Mock) ExeCommand ¶
func (m *Mock) ExeCommand(log log.T, cmd string, workingDir string, updaterRoot string, stdOut string, stdErr string, isAsync bool) (pid int, exitCode updateconstants.UpdateScriptExitCode, err error)
ExeCommand mocks the ExeCommand function.
func (*Mock) SaveUpdatePluginResult ¶
func (m *Mock) SaveUpdatePluginResult(log log.T, updaterRoot string, updateResult *updateutil.UpdatePluginResult) (err error)
SaveUpdatePluginResult mocks the SaveUpdatePluginResult function.
Click to show internal directories.
Click to hide internal directories.