Documentation ¶
Index ¶
- Variables
- func FillCtx(cmdCtx *cmdcontext.CmdCtx, installCtx *InstallCtx, args []string) error
- func Install(binDir string, includeDir string, installCtx InstallCtx, local string, ...) error
- func IsTarantoolDev(tarantoolBinarySymlink, binDir string) (string, bool, error)
- type DistroInfo
- type InstallCtx
- type Package
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
Types ¶
type DistroInfo ¶
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.
Click to show internal directories.
Click to hide internal directories.