installer

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package installer is responsible for finding, acquiring and addressing runtime dependencies for this package (e.g. Ruby standalone, Rust bindings etc.)

Index

Constants

View Source
const (
	FFIPackage = "libpact_ffi"
)

Variables

View Source
var LibRegistry = map[string]Versioner{}

Functions

This section is empty.

Types

type Installer

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

Installer is used to check the Pact Go installation is setup correctly, and can automatically install packages if required

func NewInstaller

func NewInstaller(opts ...installerConfig) (*Installer, error)

NewInstaller creates a new initialised Installer

func (*Installer) CheckInstallation

func (i *Installer) CheckInstallation() error

CheckInstallation checks installation of all of the required libraries and downloads if they aren't present

func (*Installer) CheckPackageInstall

func (i *Installer) CheckPackageInstall() error

CheckPackageInstall discovers any existing packages, and checks installation of a given binary using semver-compatible checks

func (*Installer) Force

func (i *Installer) Force(force bool)

Force installs over the top

func (*Installer) SetLibDir

func (i *Installer) SetLibDir(dir string)

SetLibDir overrides the default library dir

type Versioner

type Versioner interface {
	Version() string
}

Jump to

Keyboard shortcuts

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