Documentation
¶
Overview ¶
Package archive verifies and installs platform release archives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReleaseAsset ¶
type ReleaseAsset = model.ReleaseAsset
type ReleaseInstaller ¶
ReleaseInstaller installs an already verified release for the current platform.
func NewReleaseInstaller ¶
func NewReleaseInstaller(options ReleaseInstallerOptions) ReleaseInstaller
NewReleaseInstaller creates the production archive updater. Every write is delayed until the signed release manifest, its Ed25519 signatures, the archive SHA-256 and the extracted binary SHA-256 all match.
type ReleaseInstallerOptions ¶
type ReleaseInstallerOptions struct {
HTTPClient *http.Client
ExecutablePath func() (string, error)
GOOS string
GOARCH string
Keyring *manifest.Keyring
Replacer func(string, string) error
AssetURLValidator func(model.Release, model.ReleaseAsset) error
}
ReleaseInstallerOptions injects system boundaries for deterministic tests.
Click to show internal directories.
Click to hide internal directories.