Documentation ¶
Index ¶
- func CSVtoArray(tagcsv string) []string
- func Copy(src, dst string) (int64, error)
- func DmidecodeProduct() (string, error)
- func EmptyString(s string) bool
- func Error2ExitCode(err error) int
- func ExecToFile(cli string, ofile string) (err error)
- func FileExists(filename string) (bool, error)
- func GetFirstFile(rootpath string, hint string) string
- func GetPrivateSSHKey() string
- func Grep(path string, musthave string, mustnothave string) ([]string, error)
- func Gunzip(dst string, r io.Reader) error
- func Hostname() (string, error)
- func MD5sumChunk(filePath string, chunkSize int64)
- func MD5sumFile(filePath string) (string, error)
- func Move(src, dst string) error
- func Popen3(output_buffer *bytes.Buffer, stack ...*exec.Cmd) (err error)
- func Popen3Grep(cmd string, musthave string, mustnothave string) ([]string, error)
- func Popen3GrepFast(cmd string, musthave string, mustnothave string) ([]string, error)
- func PopentoString(cmd string) (string, error)
- func PopentoStringAwk(cmd string, awk int) (string, error)
- func ReadFileToSlice(filename string, force bool) ([]string, error)
- func SSHPopenToString(hostname string, command string) (string, error)
- func SetPrivateSSHKey(newkey string)
- func SliceContains(haystack []string, needle string) bool
- func Spinny(sigChan chan bool)
- func StringToFileOverSSH(outputContent string, remoteserver string, outputfile string) error
- func System3(cmd string) (err error)
- func System3AndSpin(cmd string, redirect string) (err error)
- func Touch(fileName string) error
- func TrimSuffix(s, suffix string) string
- func Untar(dst string, r io.Reader) error
- func Unzip(destination string, r *zip.ReadCloser) error
- func WriteSliceToFile(filename string, content []string) error
- func WriteStringToFile(filename string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSVtoArray ¶
func DmidecodeProduct ¶
func EmptyString ¶
func Error2ExitCode ¶
func ExecToFile ¶
func FileExists ¶
func GetFirstFile ¶
func GetPrivateSSHKey ¶
func GetPrivateSSHKey() string
func Gunzip ¶
Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files
func MD5sumChunk ¶
work in progress; want to return string of hash for a partial file
func MD5sumFile ¶
func Popen3Grep ¶
func Popen3GrepFast ¶
func PopentoString ¶
func SetPrivateSSHKey ¶
func SetPrivateSSHKey(newkey string)
func SliceContains ¶
func StringToFileOverSSH ¶
write otuput content (including new lines) to file outputfile (including full absolute path) on remoteserver over SSH
func System3AndSpin ¶
func TrimSuffix ¶
func Untar ¶
Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files
func Unzip ¶
func Unzip(destination string, r *zip.ReadCloser) error
Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files
func WriteSliceToFile ¶
func WriteStringToFile ¶
Types ¶
This section is empty.