installer

package
v0.0.0-...-ee7303f Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(baseURL, version, os, arch, path string) error

Install attempts to download a release of contrast-go matching version, os, and arch into path and chmod it to an executable.

Types

type ErrBadPlatform

type ErrBadPlatform struct {
	Available []string
	Arch, OS  string
}

func (*ErrBadPlatform) Error

func (err *ErrBadPlatform) Error() string

type ErrBadVersion

type ErrBadVersion struct {
	AvailableVersions versions
	BadVersion        string
}

func (*ErrBadVersion) Error

func (err *ErrBadVersion) Error() string

Jump to

Keyboard shortcuts

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