installer

package
v0.0.0-...-8e866c8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	WithHTTPClient(c *http.Client)
	Download(u *url.URL, filename string) error
}

Downloader fetches a file given url

func NewDownloader

func NewDownloader() Downloader

NewDownloader returns downloader

type Extractor

type Extractor interface {
	Extract(dst string, src string) error
}

Extractor extract tar gzip

func NewExtractor

func NewExtractor() Extractor

NewExtractor returns Extractor

type Python

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

Python installer

func NewPython

func NewPython() *Python

NewPython returns Python installer

func (*Python) Install

func (p *Python) Install(pkg origin.Package, o PythonOptions) error

Install installs given Python version

type PythonOptions

type PythonOptions struct {
	Force         bool
	Verbose       bool
	ConfigureOpts []string
	NoEnsurepip   bool
	NoSymlink     bool
	Jobs          int
}

PythonOptions represents Python installer options

Jump to

Keyboard shortcuts

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