install

package
v0.19.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatch = errors.New("no file matched binaries to install")

ErrNoMatch is returned when not file patched binaries specs

Functions

This section is empty.

Types

type Direct

type Direct struct {
}

Direct installs directly downloaded binaries

func (Direct) Install

func (d Direct) Install(src, dst, version string, mapper mapping.Mapper) error

Install will move the binary from src to dst

type GZip added in v0.2.0

type GZip struct {
}

GZip handles gzip files

func (GZip) Install added in v0.2.0

func (z GZip) Install(src, dst, version string, mapper mapping.Mapper) error

Install files from gzip file

type Install

type Install struct {
	Type     string   `yaml:"type"`
	Binaries []string `yaml:"binaries"`
}

Install defines the install config struct

func (Install) Factory

func (i Install) Factory(filters []string) Installer

Factory returns instances that comply to Installer interface

type Installer

type Installer interface {
	Install(src, dst, version string, mapper mapping.Mapper) error
}

Installer should implement installation

type TarXZ added in v0.7.0

type TarXZ struct {
	// contains filtered or unexported fields
}

TarXZ handles xz files

func (TarXZ) Install added in v0.7.0

func (x TarXZ) Install(src, dst, version string, mapper mapping.Mapper) error

Install file from xz file

type Tbz added in v0.15.0

type Tbz struct {
	// contains filtered or unexported fields
}

Tbz handles bzip2 files

func (Tbz) Install added in v0.15.0

func (x Tbz) Install(src, dst, version string, mapper mapping.Mapper) error

Install file from bzip2 file

type Tgz

type Tgz struct {
	// contains filtered or unexported fields
}

Tgz handles zip files

func (Tgz) Install

func (t Tgz) Install(src, dst, version string, mapper mapping.Mapper) error

Install files from tgz file

type XZ added in v0.7.0

type XZ struct {
}

XZ handles xz files

func (XZ) Install added in v0.7.0

func (x XZ) Install(src, dst, version string, mapper mapping.Mapper) error

Install file from xz file

type Zip

type Zip struct {
	// contains filtered or unexported fields
}

Zip handles zip files

func (Zip) Install

func (z Zip) Install(src, dst, version string, mapper mapping.Mapper) error

Install files from zip file

Jump to

Keyboard shortcuts

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