Documentation
¶
Index ¶
- func ApplyLocalUpdate(ctx context.Context, tag, staged, target string, desktopStaged ...string) error
- func ApplyUpdateForTest(ctx context.Context, tag string, ops UpdateOpsForTest) error
- func HotInstall(ctx context.Context, target, defaultDevDir string, install func() error) error
- func HotInstallForTest(target string, install func() error, ops UpdateOpsForTest) error
- func ProcessIdentityForTest(pid int) string
- func RegisterClient(ctx context.Context, kind string, args []string) (<-chan struct{}, func(), error)
- func RunUpdateCommand(args []string) bool
- func StopClientForTest(executable string, pid int) error
- func WaitProcessExitForTest(ctx context.Context, pid int, identity string) error
- type DesktopProcessForTest
- type UpdateOpsForTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyLocalUpdate ¶
func ApplyLocalUpdate(ctx context.Context, tag, staged, target string, desktopStaged ...string) error
ApplyLocalUpdate applies a verified local build using the same runtime handoff.
func ApplyUpdateForTest ¶
func ApplyUpdateForTest(ctx context.Context, tag string, ops UpdateOpsForTest) error
func HotInstall ¶
HotInstall replaces the local installation while its daemon and native clients are stopped, then starts fresh processes in the daemon's previous mode.
func HotInstallForTest ¶
func HotInstallForTest(target string, install func() error, ops UpdateOpsForTest) error
func ProcessIdentityForTest ¶
func RegisterClient ¶
func RegisterClient(ctx context.Context, kind string, args []string) (<-chan struct{}, func(), error)
RegisterClient provides a graceful stop handshake independent of OS signals. The coordinator verifies both the executable and process creation time.
func RunUpdateCommand ¶
func StopClientForTest ¶
Types ¶
type DesktopProcessForTest ¶
func DesktopProcessesForTest ¶
func DesktopProcessesForTest(executable string) ([]DesktopProcessForTest, error)
func UpdateClientsForTest ¶
func UpdateClientsForTest(executable string) ([]DesktopProcessForTest, error)
type UpdateOpsForTest ¶
type UpdateOpsForTest struct {
Prepare func() (string, string, error)
Stop func(string) error
Commit func(string, string) error
Start func(string) error
Restore func(string) error
Quiesce func() error
}
UpdateOpsForTest lets the repository's top-level tests exercise recovery without touching any running application or external release.