updateutil

package
v0.0.0-...-955c50f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package updateutil contains updater specific utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.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

func (m *Mock) CreateUpdateDownloadFolder() (folder string, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL