package
0.0.0-20240625190017-a0fef5fe53bc
Repository: https://github.com/clearlinux/clr-installer.git
Documentation: pkg.go.dev

# Functions

CopyAllFiles copy all of the files in a directory recursively.
CopyFile copies src file to dest.
ExpandVariables iterates over vars map and replace all the occurrences of ${var} or $var in the str string.
FileExists returns true if the file or directory exists else it returns false and the associated error.
HostHasEFI check if the running host supports EFI booting.
IntSliceContains returns true if is contains value, returns false otherwise.
IsCheckCoverage returns true if CHECK_COVERAGE variable is set.
IsClearLinux checks if the current OS is Clear by looking for Swupd Mostly used in Go Testing.
No description provided by the author
IsRoot checks if the current User is root (UID 0) Mostly used in Go Testing.
IsStdoutTTY returns true if the stdout is attached to a tty.
IsVirtualBox returns true if the running system is executed from within VirtualBox Attempt to parse the System Management BIOS (SMBIOS) and Desktop Management Interface (DMI) to determine if we are executing inside a VirtualBox.
LookupISOTemplateDir returns the directory to use for reading template files for ISO creation.
LookupLocaleDir returns the directory to use for reading locale files for the UI.
LookupThemeDir returns the directory to use for reading theme files for the UI.
MkdirAll similar to go's standard os.MkdirAll() this function creates a directory named path, along with any necessary parents but also checks if path exists and takes no action if that's true.
ParseOSClearVersion parses the current version of the Clear Linux OS.
RunDiskPartitionTool creates and executes a script which launches the disk partitioning tool and then returns to the installer.
SetLocale sets the locale of the installer based on the selected language.
StringSliceContains returns true if sl contains str, returns false otherwise.
VerifyRootUser returns an error if we're not running as root.
VersionStringUint converts string version to an uint version.
VersionUintString converts an uint version to the string version.

# Variables

ClearVersion is running version of the OS.
Locale is used to access the localization functions.