download

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package download handles fetching, verifying, and extracting the KubeSolo binary from GitHub Releases, as well as offline installation from a local archive or binary file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadBundle

func DownloadBundle(outDir, archiveName, installerName, version string, sameArch bool) error

DownloadBundle downloads the KubeSolo release tarball and the kubesoloctl binary for the target into outDir, verifies both against the release's published checksums, and writes a SHA256SUMS beside them, producing a self-contained offline bundle for an air-gapped machine. The SHA256SUMS is what an offline install or upgrade on that machine checks the archive against.

  • archiveName is the kubesolo release tarball, e.g. "kubesolo-v1.2.2-linux-amd64.tar.gz"
  • installerName is the target's kubesoloctl asset, e.g. "kubesoloctl-linux-arm64"
  • version is the kubesolo release tag, e.g. "v1.2.2"

When the target is this host, the running kubesoloctl is copied rather than downloaded. Otherwise the target's own build is downloaded: a copy of this one would not run there.

func Install

func Install(offlineSrc, archiveName, version string) error

Install places the KubeSolo binary at /usr/local/bin/kubesolo. If offlineSrc is non-empty it is used as the source instead of downloading. Supported formats: .tar.gz / .tgz (archive containing the kubesolo binary), or any other path (treated as a raw binary and copied directly). Otherwise the binary is fetched from GitHub Releases using archiveName and version to build the URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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