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 ¶
Types ¶
type DistroInfo ¶
DistroInfo is a struct containing info about linux distro.
type InstallationFlag ¶
type InstallationFlag struct {
// Reinstall is a flag. If it is set,
// target application will be reinstalled if already exists.
Reinstall bool
// Force is a flag. If it is set, install will force
// requirements errors.
Force bool
// Verbose is a flag.
// If it is set, install will print log to stderr.
Verbose 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
}
InstallationFlag is a struct that contains all install flags.
Click to show internal directories.
Click to hide internal directories.