Documentation ¶
Index ¶
- Constants
- func ConnectToClient(connCtx context.Context, opts *SSHOpts, currentClient *ssh.Client, ...) (*ssh.Client, int32, error)
- func CpHostToRemote(client *ssh.Client, sourcePath string, destPath string) error
- func DetectShell(client *ssh.Client) (string, error)
- func GetClientArch(client *ssh.Client) (string, error)
- func GetClientOs(client *ssh.Client) (string, error)
- func GetHomeDir(client *ssh.Client) string
- func GetWshPath(client *ssh.Client) string
- func GetWshVersion(client *ssh.Client) (string, error)
- func InstallClientRcFiles(client *ssh.Client) error
- func IsPowershell(shellPath string) bool
- func NormalizeConfigPattern(pattern string) string
- func WaveSshConfigUserSettings() *ssh_config.UserSettings
- type ConnectionDebugInfo
- type ConnectionError
- type HostKeyAlgorithms
- type SSHOpts
- type SshKeywords
- type UserInputCancelError
Constants ¶
View Source
const SshProxyJumpMaxDepth = 10
Variables ¶
This section is empty.
Functions ¶
func ConnectToClient ¶
func CpHostToRemote ¶
func GetHomeDir ¶
func GetWshPath ¶
func InstallClientRcFiles ¶
func IsPowershell ¶
func NormalizeConfigPattern ¶
func WaveSshConfigUserSettings ¶ added in v0.9.0
func WaveSshConfigUserSettings() *ssh_config.UserSettings
Types ¶
type ConnectionDebugInfo ¶ added in v0.9.0
type ConnectionError ¶ added in v0.9.0
type ConnectionError struct { *ConnectionDebugInfo Err error }
func (ConnectionError) Error ¶ added in v0.9.0
func (ce ConnectionError) Error() string
type HostKeyAlgorithms ¶
type SSHOpts ¶
type SshKeywords ¶
type SshKeywords struct { User string HostName string Port string IdentityFile []string BatchMode bool PubkeyAuthentication bool PasswordAuthentication bool KbdInteractiveAuthentication bool PreferredAuthentications []string AddKeysToAgent bool IdentityAgent string ProxyJump []string UserKnownHostsFile []string GlobalKnownHostsFile []string }
type UserInputCancelError ¶
type UserInputCancelError struct {
Err error
}
func (UserInputCancelError) Error ¶
func (uice UserInputCancelError) Error() string
Click to show internal directories.
Click to hide internal directories.