Documentation
¶
Overview ¶
Package selfupdate installs a verified Multiversa CLI release over the executable that invoked the operation. It never escalates privileges.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Version string
Target string
GOOS string
GOARCH string
ReleaseBaseURL string
Client *http.Client
}
Options identifies the release and executable to replace. Target, platform, client and base URL are injectable so the updater is testable without changing the process that runs the test.
type Result ¶
type Result struct {
Version string `json:"version"`
Path string `json:"path"`
BackupPath string `json:"backup_path"`
Checksum string `json:"checksum"`
Pending bool `json:"pending,omitempty"`
StatusPath string `json:"status_path,omitempty"`
}
Result is evidence that the verified release replaced the intended binary.
Click to show internal directories.
Click to hide internal directories.