install

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direct

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

Direct installs directly downloaded binaries

func (Direct) Install

func (d Direct) Install(src, dst, version string) error

Install will move the binary from src to dst

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) error
}

Installer should implement installation

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) error

Install files from tgz 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) error

Install files from zip file

Jump to

Keyboard shortcuts

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