install

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: BSD-2-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PrettyNameRe is a regexp for PrettyName in os-release file.
	PrettyNameRe = regexp.MustCompile(`^PRETTY_NAME=(.*)$`)
	// IDRe is a regexp for ID in os-release file.
	IDRe = regexp.MustCompile(`^ID=(.*)$`)
	// VersionIDRe is a regexp for VersionID in os-release file.
	VersionIDRe = regexp.MustCompile(`^VERSION_ID=(.*)$`)
)

Functions

func FillCtx added in v0.3.0

func FillCtx(cmdCtx *cmdcontext.CmdCtx, installCtx *InstallCtx, args []string) error

func Install

func Install(binDir string, includeDir string, installCtx InstallCtx,
	local string, cliOpts *config.CliOpts) error

Install installs program.

func IsTarantoolDev added in v1.2.0

func IsTarantoolDev(tarantoolBinarySymlink, binDir string) (string, bool, error)

IsTarantoolDev returns true if tarantoolBinarySymlink is `tarantool-dev` version.

Types

type DistroInfo

type DistroInfo struct {
	Name         string
	Vendor       string
	Version      string
	Architecture string
}

DistroInfo is a struct containing info about linux distro.

type InstallCtx added in v0.3.0

type InstallCtx struct {
	// Reinstall is a flag. If it is set,
	// target application will be reinstalled if already exists.
	Reinstall bool
	// Force is a flag which disables dependency check if enabled.
	Force bool
	// Noclean is a flag. If it is set,
	// install will don't remove tmp files.
	Noclean bool
	// Local is a flag. If it is set,
	// install will do local installation.
	Local bool
	// BuildInDocker is set if tarantool must be built in docker container.
	BuildInDocker bool
	// ProgramName is a program name to install.
	ProgramName string

	// Dynamic flag enables dynamic linking.
	Dynamic bool

	// IncDir is the directory, where the tarantool headers are located.
	IncDir string
	// contains filtered or unexported fields
}

InstallCtx contains information for program installation.

type Package

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

Package is a struct containing sys and install name of the package.

Jump to

Keyboard shortcuts

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