binary

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OfflineDir string

OfflineDir, when set, makes EnsureInstalled copy binaries from this directory instead of downloading. Used for SCP/offline installs.

Functions

func CheckUpdate

func CheckUpdate() (newVersion string, downloadURL string, err error)

CheckUpdate checks GitHub releases for a newer version. Dev builds prefer the latest dev release; stable builds check latest stable.

func Download

func Download(url string) (string, error)

Download fetches a URL to a temp file.

func DownloadBase added in v1.4.0

func DownloadBase() string

DownloadBase returns the base URL for slipgate binary downloads. Dev builds prefer the latest dev release; if none exists, fall back to the latest stable release. Production builds always use stable.

func EnsureInstalled

func EnsureInstalled(name string) error

EnsureInstalled checks if a binary exists. If not, copies from OfflineDir (if set) or downloads from GitHub releases.

Types

This section is empty.

Jump to

Keyboard shortcuts

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