install

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package install implements installation functionality of binq.

Index

Constants

This section is empty.

Variables

View Source
var ErrVersionNotNewerThanThreshold = errors.New("Item version is not newer than given threshold")

Functions

func Run

func Run(opt RunOption) (err error)

Types

type Mode

type Mode int
const (
	ModeDLOnly Mode = 1 << iota
	ModeExtract
	ModeExecutable
	ModeDefault = ModeExtract | ModeExecutable
)

type RunOption

type RunOption struct {
	Mode      Mode
	Source    string
	DestDir   string
	DestFile  string
	Output    io.Writer
	LogLevel  lv.Level
	ServerURL string
	NewerThan string
}

type Runner

type Runner struct {
	Mode      Mode
	Source    string
	DestDir   string
	DestFile  string
	Logger    lv.Granular
	ServerURL *url.URL
	NewerThan string
	// contains filtered or unexported fields
}

func (*Runner) Run

func (r *Runner) Run() (err error)

Jump to

Keyboard shortcuts

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