install

package
v3.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: BSD-2-Clause Imports: 40 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 DownloadBundle

func DownloadBundle(doer binary.TntIoDoer, bundleName, bundleSource, dst string) error

DownloadBundle downloads a bundle file from the given source URL into the destination directory. It handles potential redirects and uses the provided token for authentication via cookies.

func FillCtx

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

func Install

func Install(installCtx InstallCtx) error

Install prepares a program and its environment, then activates it as the final step.

func NewTntIoDownloader

func NewTntIoDownloader(token string) *httpDownloader

NewTntIoDownloader configures and returns an HTTP client suitable for downloading bundles.

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

type InstallCtx struct {
	binary.BinaryContext

	// 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
	// KeepTemp is a flag. If it is set,
	// install will don't remove tmp files.
	KeepTemp bool
	// LocalRepo is the source directory: --local-repo for Git repositories,
	// or --local-dir for SDK/EE/TCM archives. An empty path selects remote installation.
	LocalRepo string
	// CredentialsFile contains customer-zone credentials for remote EE, TCM, and SDK downloads.
	CredentialsFile string
	// BuildInDocker is set if tarantool must be built in docker container.
	BuildInDocker bool
	// SourceBuild always compiles Community releases instead of using prebuilt packages.
	SourceBuild bool

	// Dynamic flag enables dynamic linking.
	Dynamic bool
	// FromBuild is an existing Tarantool build directory to link into the selected scope.
	FromBuild string
	// IncDir is the source header directory for --from-build.
	IncDir string
	// Install development build.
	DevBuild bool
	// 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