Documentation
¶
Index ¶
- func CheckSSHPort(host string, port int, timeout time.Duration) bool
- func DownloadFile(client *ssh.Client, remotePath, localFile string) error
- func ExecCommand(client *ssh.Client, command string) ([]byte, error)
- func ExecuteSSHShell(cfg SSHConfig) error
- func GetDefaultPrivateKeys() []cssh.AuthMethod
- func InitMultiClients(selectedConfigs []SSHConfig) ([]*cssh.Client, error)
- func LoadIdentifyFile(privateKeyPath string) (cssh.Signer, error)
- func LoadSCPHistory(path string) error
- func PutExecEntry(host string, entry ExecHistoryEntry)
- func PutSCPDownloadEntry(host string, entry SCPHistoryEntry)
- func PutSCPUploadEntry(host string, entry SCPHistoryEntry)
- func SSHClient(cfg SSHConfig) (*cssh.Client, error)
- func UploadFile(client *ssh.Client, localFile, remotePath string) error
- type ExecHistoryEntry
- type HostHistoryEntry
- type SCPHistoryEntry
- type SSHConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecCommand ¶ added in v0.3.0
func ExecuteSSHShell ¶
func GetDefaultPrivateKeys ¶ added in v0.2.0
func GetDefaultPrivateKeys() []cssh.AuthMethod
func InitMultiClients ¶ added in v0.3.3
func LoadSCPHistory ¶ added in v0.2.0
func PutExecEntry ¶ added in v0.3.0
func PutExecEntry(host string, entry ExecHistoryEntry)
func PutSCPDownloadEntry ¶ added in v0.2.0
func PutSCPDownloadEntry(host string, entry SCPHistoryEntry)
func PutSCPUploadEntry ¶ added in v0.2.0
func PutSCPUploadEntry(host string, entry SCPHistoryEntry)
Types ¶
type ExecHistoryEntry ¶ added in v0.3.0
type ExecHistoryEntry struct {
Command string
}
func GetExecEntry ¶ added in v0.3.0
func GetExecEntry(host string) ExecHistoryEntry
type HostHistoryEntry ¶ added in v0.3.0
type HostHistoryEntry struct { SCPHistoryEntry ExecHistoryEntry }
type SCPHistoryEntry ¶ added in v0.2.0
func GetSCPDownloadEntry ¶ added in v0.2.0
func GetSCPDownloadEntry(host string) SCPHistoryEntry
func GetSCPUploadEntry ¶ added in v0.2.0
func GetSCPUploadEntry(host string) SCPHistoryEntry
Click to show internal directories.
Click to hide internal directories.