Versions in this module Expand all Collapse all v0 v0.0.0 Aug 1, 2022 Changes in this version + const HTTP2_GOAWAY_CHECK + const MD5 + const SHA1 + const SHA256 + func Bash(script string) (string, error) + func BashTmpScriptWithArgs(script string, args []string) (string, error) + func BillyCalcDirHash(dir string, FS billy.Filesystem) (string, error) + func BillyCalcFileHash(filename string, FS billy.Filesystem) (string, error) + func BillyCalcHash(FS billy.Filesystem) (string, error) + func BillyFilenames(dir string, FS billy.Filesystem) ([]string, error) + func BillyGetFilelist(FS billy.Filesystem) ([]os.FileInfo, error) + func BillyGlobCalcDirHash(dir string, FS billy.Filesystem, includes, excludes []string) (string, error) + func BillyGlobCalcHash(FS billy.Filesystem, include, exclude []string) (string, error) + func BillyGlobLoadFromZip(zReader *zip.Reader, FS billy.Filesystem, includes, excludes []string) error + func BillyGlobWriteDirToOS(baseDir string, dir string, FS billy.Filesystem, includes, excludes []string) error + func BillyLoadFromZip(zReader *zip.Reader, FS billy.Filesystem, trimFirstDir bool) error + func BillyReadAll(filename string, FS billy.Filesystem) ([]byte, error) + func BillyReadAllString(filename string, FS billy.Filesystem) (string, error) + func BillyWriteDirToOS(baseDir string, dir string, FS billy.Filesystem) error + func BillyWriteFileToOS(baseDir string, file string, FS billy.Filesystem) error + func BuildRequest(url string) *gorequest.SuperAgent + func CheckPathExists(path string) (bool, error) + func CheckShouldInclude(filename string, includes, excludes []string) (bool, error) + func CloneRepoIntoDir(srcUrl, srcVer, dest string) error + func CloneRepoIntoTmp(srcUrl, srcVer string) (string, error) + func CopyDir(src string, dst string) error + func CopyFile(src, dst string) error + func Exec(args []string) (string, error) + func FilesFromGlobs(patterns []string) ([]string, error) + func FindIdFromName(basePath, name, listOutput string, res interface{}) (string, error) + func GetHash(path string, hashAlgorithm string) (string, error) + func IsValidUUID(uuid string) bool + func Mkdir(dir string) error + func NetrcMachines() map[string]NetrcMachine + func NewHash(name *string) (hash.Hash, error) + func OpenBrowserCmd(url string) (*exec.Cmd, error) + func RenderDir(src string, dst string, data interface{}) error + func RenderDirNameSub(src string, dst string, data interface{}) error + func RenderFile(src, dst string, data interface{}) error + func RenderFileNameSub(src, dst string, data interface{}) error + func RenderString(template string, data interface{}) (string, error) + func SendGaEvent(cfg GaConfig, evt GaEvent) (string, error) + func SendGaEvents(cfg GaConfig, evts []GaEvent) (string, error) + func SendRequest(host, queryTemplate string, vars interface{}) (interface{}, error) + func SetupGitAuth(srcUrl, srcVer string, co *git.CloneOptions) error + func SetupGitOptions(srcUrl, srcVer string) (*git.CloneOptions, error) + func SimpleGet(url string) (string, error) + func SwapDelimits(content, fromLL, fromLR, fromSL, fromSR, toLL, toLR, toSL, toSR string) string + type GaConfig struct + CID string + CM string + CN string + CS string + IP string + TID string + UA string + type GaEvent struct + Action string + Category string + Label string + Source string + Type string + Value int + type GaPageview struct + Action string + Category string + Label string + Source string + Type string + Value int + type NetrcMachine struct + Login string + Password string + func NetrcCredentials(machine string) (NetrcMachine, error) + type SSHMachine struct + Keys *ssh.PublicKeys + User string + func SSHCredentials(machine string) (SSHMachine, error)