net

package
v0.0.0-...-0a8da31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHub = iota + 1
	Others
)

Variables

This section is empty.

Functions

func CheckUpdates

func CheckUpdates(b models.Binaries) (models.Binaries, error)

CheckUpdates Does four things:

1. Get the current version of the binary 2. Find the provider of the binary 3. Check for the new version of the binary 4. Compare the current version with the new version

func DownloadAndMoveFiles

func DownloadAndMoveFiles(b models.Binaries) error

DownloadAndMoveFiles Does five things:

1. Download the file 2. Verify the file 3. Uncompress the file 4. Move the files to the install location 5. Verify the new binary

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL