Documentation ¶
Index ¶
- Variables
- func AssetList(partial string) []string
- func AssetPath(partial string) string
- func CreateDirectory(path string, mode os.FileMode) error
- func ExecCommand(envVariables []string, commandName string, args ...string) (string, error)
- func InvalidPath(path string) bool
- func IsAMD64() bool
- func IsLinux() bool
- func IsRHEL() bool
- func IsUserRoot() bool
- func IsValidHostName() bool
- func ListDirectories(directory string) []string
- func PlaceAsset(source string, destination string)
- func RunPreflightChecks()
- func SilentExecCommand(envVariables []string, commandName string, args ...string) error
- func VerifyBinary(binary string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ArchivePath = "shift-pack.tar.zst"
View Source
var TempDestination string
View Source
var TempPathPrefix = "shift-pack-"
Functions ¶
func ExecCommand ¶
ExecCommand performs a process execution outside of Go
func IsUserRoot ¶
func IsUserRoot() bool
func IsValidHostName ¶
func IsValidHostName() bool
func ListDirectories ¶
func PlaceAsset ¶
func RunPreflightChecks ¶
func RunPreflightChecks()
func SilentExecCommand ¶
SilentExecCommand
func VerifyBinary ¶
VerifyBinary returns true if binary is available
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.