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 BinaryChecker ¶
BinaryChecker validates a downloaded binary before it can replace javdb.
func NewBinaryChecker ¶
func NewBinaryChecker() BinaryChecker
NewBinaryChecker returns the production checker for a staged javdb binary.
type BinaryCheckerFunc ¶
BinaryCheckerFunc adapts a function for installer tests and调用方注入。
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.