package
0.0.0-20171204033802-445020fd2782
Repository: https://github.com/xshellinc/tools.git
Documentation: pkg.go.dev

# Functions

Returns an absolute path of the path.
AddPathSuffix joins path parts based on the OS.
Appends a string to the provided file.
Gets an exit code from the error.
No description provided by the author
Copy a file.
Copy a directory recursively.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeleteHost deletes host from ssh file or any other provided.
DirExists returns whether the given file or directory exists or not.
No description provided by the author
DownloadFromUrl downloads target file to destination folder create destination dir if does not exist download file if does not already exist shows progress bar.
DownloadFromUrl downloads target file to destination folder, creates destination dir if does not exist download file if does not already exist shows progress bar.
Downloads From url with retries.
Downloads from the url asynchronously.
No description provided by the author
Downloads From url with retries.
Checks connection.
Executes command.
ExecStandardStd executes standard command and all in and out channels are redirected to os (i.e.
Executes commands via sudo.
No description provided by the author
Exits with the code 1 in case of any error.
return true if the given file is writable/readable/executable using the given mask by an owner.
Gets a filename from the path.
Generic command run over ssh, which configures ssh detail and calls RunSshWithTimeout method.
No description provided by the author
Returns a default bin path.
Returns extract command based on the filename.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetTempDir returns OS specific tmp folder location without trailing slash.
GetZipFiles - gets the list of files inside zip archive.
HasAnySuffixes returns true if file contains any of the supplied suffixes.
HashFileMD5 returns md5 hash for a specified file.
Get local interfaces with inited ip.
No description provided by the author
Logs an error if any.
TODO should replace WaitAndSpin.
Create new proxy reader over bar Takes io.Reader or io.ReadCloser.
Run ssh command.
Run ssh echo password | sudo command.
Run ssh echo password | sudo command with timeout.
Scp file using 22 port.
Scp file.
Separator returns the string separator.
Separators returns Os dependent separator.
Stream easy ssh.
No description provided by the author
Unzip into the destination folder.
Gets homedir based on Os.
ValidURL checks if the provided string is a valid URL.
Shows the message and rotates a spinner while `progress` is true and isn't closed.
No description provided by the author
No description provided by the author
Writes a string to the provided file.

# Constants

# Structs

BackgroundJob contains 2 chans errors and progress indicating if task is in progress.
It's proxy reader, implement io.Reader.
Iface represents an entity with interfaceName hardware and ipv4.
No description provided by the author

# Interfaces

No description provided by the author