Documentation
¶
Index ¶
- Variables
- func Cloak(text string) (string, error)
- func CompareDir(a, b string) (bool, error)
- func CompareFileContents(a, b string) (bool, error)
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func DownloadFile(uri, username, password, targetPath string) error
- func GetMD5Walker(basePath string, h hash.Hash) func(fp string, fi os.FileInfo, err error) error
- func GzipFile(source, target string) error
- func HttpExists(uri, username, password string) (bool, error)
- func MD5Dir(basePath string) ([]byte, error)
- func MD5File(filePath string, h hash.Hash) error
- func MergeMaps(maps ...map[string]string) map[string]string
- func PathExists(name string) bool
- func RunCommand(cwd string, env []string, cmd string, args ...string) (string, string, error)
- func TarDir(source, target string) error
- func Uncloak(text string) (string, error)
- func UngzipFile(source, target string) error
- func UntarDir(tarball, target string) error
- func UnzipDir(archive, target string) error
- func UploadFile(uri, username, password, filepath string) error
- func ZipDir(source, target string, compress bool) error
Constants ¶
This section is empty.
Variables ¶
var (
PathSeparatorString = fmt.Sprintf("%c", os.PathSeparator)
)
Functions ¶
func Cloak ¶ added in v0.10.0
Simple obfuscation function to help avoid over-the-shoulder viewing of passwords and other data. Not intended to be cryptographically secure.
func CompareDir ¶
func CompareFileContents ¶
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist. Symlinks are ignored and skipped.
func CopyFile ¶
CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.
func DownloadFile ¶ added in v0.10.0
func GetMD5Walker ¶
func HttpExists ¶ added in v0.10.0
func PathExists ¶ added in v0.8.0
func RunCommand ¶ added in v0.3.0
func Uncloak ¶ added in v0.10.0
Simple obfuscation function to help avoid over-the-shoulder viewing of passwords and other data. No intended to be cryptographically secure.
func UngzipFile ¶
func UploadFile ¶ added in v0.10.0
Types ¶
This section is empty.