Documentation
¶
Index ¶
- Constants
- func CleanupString(str string) string
- func CopyFile(src string, dst string) error
- func DetectTarballFormat(filepath string) string
- func DetectURLType(url string) string
- func DirInit(path string) error
- func FileExists(path string) bool
- func GetTarArgs(format string) string
- func IsDir(name string) bool
- func OpenLogFile(prefix string, name string) *os.File
- func OpenResultsFile(filepath string) *os.File
- func PathExists(path string) bool
Constants ¶
const ( // FormatBZ2 represents a bz2 file FormatBZ2 = "bz2" // FormatGZ represents a GZ file FormatGZ = "gz" // FormatTGZ represents a GZ file FormatTGZ = "tgz" // FormatTAR represents a simple TAR file FormatTAR = "tar" // UnkownFormat is the value returned when the format cannot be detected UnknownFormat = "" )
Constants defining the format of the MPI package
const ( // UnsupportedURLTyps is a constant for a type of URL that we do not support yet UnsupportedURLType = "" // FileURL is a constant for a file-based URL FileURL = "file" // HttpURL is a constant for a HTTP-based URL HttpURL = "http" // GitURL is a constant for a Git URL GitURL = "git" )
Constants defining the URL types
Variables ¶
This section is empty.
Functions ¶
func CleanupString ¶
CleanupString cleans up a string. This is convenient when a benchmark returns colored text to the terminal that we then try to parse.
func DetectTarballFormat ¶
DectectTarballFormat detects the format of a tarball so we can know how to untar it.
func DetectURLType ¶
DetectURLType detects the type of the URL that is passed in.
func FileExists ¶
FileExists is a utility function that checks whether a file exists or not. If the file exits, FileExists return true; otherwise it returns false.
func GetTarArgs ¶
GetTarOpts returns the arguments to use with tar based on the format of the tarball
func OpenLogFile ¶
OpenLogFile opens the log file for the execution of a command
func OpenResultsFile ¶
OpenResultsFile opens the result files associated to the experiments
Types ¶
This section is empty.