Documentation
¶
Overview ¶
Package process 管理更新流程中的命令执行、候选二进制校验和平台替换。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupPendingWindowsUpdate ¶
func CleanupPendingWindowsUpdate() error
CleanupPendingWindowsUpdate has no work outside Windows.
func ExecutableName ¶
ExecutableName returns the platform-specific javdb executable name.
func ReplaceExecutable ¶
ReplaceExecutable performs an atomic same-filesystem replacement on Unix-like hosts.
func ResolveExecutablePath ¶
ResolveExecutablePath resolves an executable path and follows a symlink when the platform replacement must target the real binary.
Types ¶
type CommandRunner ¶
CommandRunner executes package-manager commands without shell interpolation.
func NewCommandRunner ¶
func NewCommandRunner(stdout, stderr io.Writer) CommandRunner
NewCommandRunner returns the production package-manager runner.
Click to show internal directories.
Click to hide internal directories.