ezutil

package
v0.0.0-...-a04f391 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidURL

func IsValidURL(urlPath string) bool

IsValidURL - check whether a given url is valid

func SSHConnect

func SSHConnect(sshInfo ezcfg.SSHInfo, hostIP string) (*ssh.Session, *ssh.Client, *ssh.Client, error)

SSHConnect - Utility function to create a ssh connection using information (credentials) provided

func SSHRunCmd

func SSHRunCmd(sshInfo ezcfg.SSHInfo, hostIP string, runCmd string, outputFilePath string) error

SSHRunCmd - Run a ssh command and redirect stdout to a file. If file path is empty, then just use os.stdout

func SSHTransferFile

func SSHTransferFile(sshInfo ezcfg.SSHInfo, hostIP string, srcFilePath string, dstPath string, perms string) error

SSHTransferFile - Utility function to transfer a file from local host to the remote node using ssh information provided

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL