installer

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 15 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

func NativeLibPath added in v2.0.4

func NativeLibPath() string

NativeLibPath returns the absolute path to the go package used to link to the native rust library

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