lib

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer interface {
	Install(constraint string)
}

func CreateInstaller

func CreateInstaller(config *configuration.Config, database db.Database, installer Resolver) Installer

type LocalInstaller

type LocalInstaller struct {
	Config  *configuration.Config
	DB      db.Database
	BinPath string
	Target  Resolver
}

func (*LocalInstaller) Install

func (installer *LocalInstaller) Install(constraint string)

Install : Install the provided version in the argument

type Resolver

type Resolver interface {
	ListVersions() ([]string, error)
	Name() string
	AddNewVersion(version string, destination string) error
}

Jump to

Keyboard shortcuts

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