Documentation
¶
Overview ¶
Package updater downloads verified native installers into a temporary directory.
Index ¶
Constants ¶
const VersionFile = "pencode-version"
Variables ¶
This section is empty.
Functions ¶
func Installation ¶
Types ¶
type Client ¶
func (Client) Check ¶
Check finds the newest eligible version with a published installer and checksums.
func (Client) Stage ¶
func (c Client) Stage(ctx context.Context, root, executable string, r Release, report func(done, total int64)) (stage string, err error)
Stage streams the installer to disk and checks its digest in the same pass. report receives byte counts during transfer. An unknown total is -1.