Documentation
¶
Index ¶
- Variables
- func DownloadBundle(doer binary.TntIoDoer, bundleName, bundleSource, dst string) error
- func FillCtx(cmdCtx *cmdcontext.CmdCtx, installCtx *InstallCtx, args []string) error
- func Install(installCtx InstallCtx) error
- func NewTntIoDownloader(token string) *httpDownloader
- func PrepareProjectEnvironment() error
- func ProjectActivateCommand() string
- type DistroInfo
- type InstallCtx
- type Package
Constants ¶
This section is empty.
Variables ¶
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 ¶
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.
func PrepareProjectEnvironment ¶
func PrepareProjectEnvironment() error
PrepareProjectEnvironment writes the project's .env/activate.sh and deactivate.sh when they are missing, as the first tt binary install in project scope does: for a command that puts programs into the project's .tarantool/bin by other means.
func ProjectActivateCommand ¶
func ProjectActivateCommand() string
ProjectActivateCommand returns the command that activates the project's binaries, as typed in the working directory.
Types ¶
type DistroInfo ¶
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.