utils

package
v0.0.0-...-f5c84ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArchivePath = "shift-pack.tar.zst"
View Source
var TempDestination string

Functions

func AssetList

func AssetList(partial string) []string

AssetList given a path, return a glob matching all files in the archive

func AssetPath

func AssetPath(partial string) string

func CreateDirectory

func CreateDirectory(path string, mode os.FileMode) error

CreateDirectory

func ExecCommand

func ExecCommand(envVariables []string, commandName string, args ...string) (string, error)

ExecCommand performs a process execution outside of Go

func GetSha256

func GetSha256(path string) string

func InvalidPath

func InvalidPath(path string) bool

InvalidPath checks if the given path exists

func IsAMD64

func IsAMD64() bool

func IsLinux

func IsLinux() bool

func IsRHEL

func IsRHEL() bool

func IsUserRoot

func IsUserRoot() bool

func PlaceAsset

func PlaceAsset(source string, destination string)

func RunPreflightChecks

func RunPreflightChecks()

func RunTarballChecksumValidate

func RunTarballChecksumValidate()

func SilentExecCommand

func SilentExecCommand(envVariables []string, commandName string, args ...string) error

SilentExecCommand

func VerifyBinary

func VerifyBinary(binary string) bool

VerifyBinary returns true if binary is available

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL