blob

package
v0.0.0-...-3650d88 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(packageName string) error

Install looks for a matching binary package and, if found, installs it

func Update

func Update(args []string) error

Update checks for updates to binary packages, installing any it finds

Types

type BinaryPackage

type BinaryPackage struct {
	URL               string
	Name              string
	Selector          string
	Regexp            string
	PackageType       string   `mapstructure:"package_type"`
	DownloadURL       string   `mapstructure:"download_url"`
	VersionCommand    []string `mapstructure:"version_command"`
	VersionRegex      string   `mapstructure:"version_regex"`
	InstallPreCommand string   `mapstructure:"install_pre_command"`
	InstallCommands   []string `mapstructure:"install_commands"`
	VersionURL        string   `mapstructure:"version_url"`
	VersionURLRegex   string   `mapstructure:"version_url_regex"`
	GithubRepo        string   `mapstructure:"github"`
}

BinaryPackage describes how a downloadable package or other binary can be downloaded, version checked and installed

type Config

type Config struct {
	BinaryBlobs map[string]BinaryPackage `mapstructure:"binary_blobs"`
}

type Meta

type Meta struct {
	Version        string
	HomeBinPath    string
	DownloadedFile string
	Name           string
	TempDir        string
}

Jump to

Keyboard shortcuts

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